[Git][java-team/axis][master] 11 commits: Apply multi-arch hints.
Emmanuel Bourg (@ebourg)
gitlab at salsa.debian.org
Tue Oct 20 10:38:58 BST 2026
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / axis
Commits:
c53ff1b2 by Debian Janitor at 2026-10-20T11:34:17+02:00
Apply multi-arch hints.
+ libaxis-java-doc: Add Multi-Arch: foreign.
Changes-By: apply-multiarch-hints
- - - - -
83c1ced0 by Emmanuel Bourg at 2026-10-20T11:34:17+02:00
Depend on libservlet-api-java instead of libservlet3.1-java
- - - - -
76c93470 by Emmanuel Bourg at 2026-10-20T11:34:17+02:00
Standards-Version updated to 4.7.4
- - - - -
07d9dce4 by Emmanuel Bourg at 2026-10-20T11:34:17+02:00
Removed the Priority field
- - - - -
bfcff341 by Emmanuel Bourg at 2026-10-20T11:34:18+02:00
Removed Torsten Werner from the Uploaders (Closes: #1139094)
- - - - -
ec1fe91f by Emmanuel Bourg at 2026-10-20T11:34:18+02:00
Fixed CVE-2019-0227: XMLUtils followed the HTTP redirections when fetching a resource by URL, enabling server side request forgery (Closes: #929266)
- - - - -
481ee5f1 by Emmanuel Bourg at 2026-10-20T11:34:18+02:00
Fixed CVE-2023-51441: ServiceFactory accepted the IIOP and CORBANAME JNDI names, enabling server side request forgery from the admin service (Closes: #1060169)
- - - - -
e8f99937 by Emmanuel Bourg at 2026-10-20T11:34:18+02:00
Converted debian/watch to the version 5 format
- - - - -
f35fcbb1 by Emmanuel Bourg at 2026-10-20T11:34:18+02:00
Removed the libaxis-java-doc package
- - - - -
c03ff187 by Emmanuel Bourg at 2026-10-20T11:34:18+02:00
Fixed the instantiation of arbitrary classes named by the exceptionName of a SOAP fault, enabling unauthenticated remote code execution with a suitable gadget on the classpath
- - - - -
d89998ea by Emmanuel Bourg at 2026-10-20T11:34:18+02:00
Upload to unstable
- - - - -
10 changed files:
- debian/changelog
- debian/control
- − debian/libaxis-java-doc.doc-base
- − debian/libaxis-java-doc.install
- + debian/patches/CVE-2019-0227.patch
- + debian/patches/CVE-2023-51441.patch
- debian/patches/series
- + debian/patches/soap-fault-class-instantiation.patch
- debian/rules
- debian/watch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,23 @@
+axis (1.4-30) unstable; urgency=medium
+
+ * Depend on libservlet-api-java instead of libservlet3.1-java
+ * Standards-Version updated to 4.7.4
+ * Removed the Priority field
+ * Removed Torsten Werner from the Uploaders (Closes: #1139094)
+ * Fixed CVE-2019-0227: XMLUtils followed the HTTP redirections when
+ fetching a resource by URL, enabling server side request forgery
+ (Closes: #929266)
+ * Fixed CVE-2023-51441: ServiceFactory accepted the IIOP and CORBANAME
+ JNDI names, enabling server side request forgery from the admin
+ service (Closes: #1060169)
+ * Converted debian/watch to the version 5 format
+ * Removed the libaxis-java-doc package
+ * Fixed the instantiation of arbitrary classes named by the
+ exceptionName of a SOAP fault, enabling unauthenticated remote code
+ execution with a suitable gadget on the classpath
+
+ -- Emmanuel Bourg <ebourg at apache.org> Tue, 20 Oct 2026 11:15:15 +0200
+
axis (1.4-29) unstable; urgency=medium
* Team upload.
=====================================
debian/control
=====================================
@@ -1,9 +1,7 @@
Source: axis
Section: java
-Priority: optional
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Uploaders:
- Torsten Werner <twerner at debian.org>,
Jakub Adam <jakub.adam at ktknet.cz>,
Emmanuel Bourg <ebourg at apache.org>
Build-Depends:
@@ -15,10 +13,10 @@ Build-Depends:
libcommons-httpclient-java,
libcommons-logging-java,
libmail-java,
- libservlet3.1-java,
+ libservlet-api-java,
libwsdl4j-java,
maven-repo-helper
-Standards-Version: 4.6.2
+Standards-Version: 4.7.4
Vcs-Git: https://salsa.debian.org/java-team/axis.git
Vcs-Browser: https://salsa.debian.org/java-team/axis
Homepage: http://ws.apache.org/axis/
@@ -27,8 +25,6 @@ Package: libaxis-java
Architecture: all
Recommends:
ant
-Suggests:
- libaxis-java-doc
Depends:
libcommons-discovery-java,
libcommons-httpclient-java,
@@ -50,27 +46,3 @@ Description: SOAP implementation in Java
procedure calls and responses.
.
This project is a follow-on to the Apache SOAP project.
-
-Package: libaxis-java-doc
-Architecture: all
-Section: doc
-Depends:
- ${misc:Depends}
-Suggests:
- libaxis-java
-Description: SOAP implementation in Java (documentation)
- Apache AXIS is an implementation of the SOAP ("Simple Object Access Protocol")
- submission to W3C.
- .
- From the draft W3C specification:
- .
- SOAP is a lightweight protocol for exchange of information in a decentralized,
- distributed environment. It is an XML based protocol that consists of three
- parts: an envelope that defines a framework for describing what is in a message
- and how to process it, a set of encoding rules for expressing instances of
- application-defined datatypes, and a convention for representing remote
- procedure calls and responses.
- .
- This project is a follow-on to the Apache SOAP project.
- .
- This package contains the Javadoc API documentation.
=====================================
debian/libaxis-java-doc.doc-base deleted
=====================================
@@ -1,10 +0,0 @@
-Document: libaxis-java-doc
-Title: API Javadoc for Axis
-Author: Apache Axis
-Abstract: This is the API Javadoc provided by the Apache Axis library.
-Section: Programming
-
-Format: HTML
-Index: /usr/share/doc/libaxis-java/api/index.html
-Files: /usr/share/doc/libaxis-java/api/*
-
=====================================
debian/libaxis-java-doc.install deleted
=====================================
@@ -1 +0,0 @@
-build/api/ /usr/share/doc/libaxis-java/
=====================================
debian/patches/CVE-2019-0227.patch
=====================================
@@ -0,0 +1,16 @@
+Description: Fix CVE-2019-0227: Disable the redirections when fetching a resource by URL in XMLUtils
+Author: Robert Lazarski <robertlazarski at apache.org>
+Origin: backport, https://github.com/apache/axis-axis1-java/commit/3fcac2ce6f5c6f6c68c42dc8d76564a3ef0575e9
+Bug-Debian: https://bugs.debian.org/929266
+Forwarded: not-needed
+--- a/src/org/apache/axis/utils/XMLUtils.java
++++ b/src/org/apache/axis/utils/XMLUtils.java
+@@ -819,7 +819,7 @@
+ uconn.setDefaultUseCaches(false);
+ uconn.setDoInput(true);
+ uconn.setDoOutput(false);
+- uconn.setInstanceFollowRedirects(true);
++ uconn.setInstanceFollowRedirects(false);
+ uconn.setUseCaches(false);
+
+ // username/password info in the URL overrides passed in values
=====================================
debian/patches/CVE-2023-51441.patch
=====================================
@@ -0,0 +1,40 @@
+Description: Fix CVE-2023-51441: Reject the IIOP and CORBANAME JNDI names in ServiceFactory.getService()
+Author: Robert Lazarski <rlazarski at alphatheory.com>
+Origin: backport, https://github.com/apache/axis-axis1-java/commit/685c309febc64aa393b2d64a05f90e7eb9f73e06
+ https://github.com/apache/axis-axis1-java/commit/2c0d66018480e0cb73d5005c99c68ef55558d2a3
+Bug-Debian: https://bugs.debian.org/1060169
+Forwarded: not-needed
+--- a/src/org/apache/axis/client/ServiceFactory.java
++++ b/src/org/apache/axis/client/ServiceFactory.java
+@@ -17,9 +17,11 @@
+ package org.apache.axis.client;
+
+ import org.apache.axis.EngineConfiguration;
++import org.apache.axis.components.logger.LogFactory;
+ import org.apache.axis.configuration.EngineConfigurationFactoryFinder;
+ import org.apache.axis.utils.ClassUtils;
+ import org.apache.axis.utils.Messages;
++import org.apache.commons.logging.Log;
+
+ import javax.naming.Context;
+ import javax.naming.InitialContext;
+@@ -47,6 +49,9 @@
+ public class ServiceFactory extends javax.xml.rpc.ServiceFactory
+ implements ObjectFactory
+ {
++ protected static Log log =
++ LogFactory.getLog(ServiceFactory.class.getName());
++
+ // Constants for RefAddrs in the Reference.
+ public static final String SERVICE_CLASSNAME = "service classname";
+ public static final String WSDL_LOCATION = "WSDL location";
+@@ -107,7 +112,8 @@
+ if (context != null) {
+ String name = (String)environment.get("jndiName");
+
+- if(name!=null && (name.toUpperCase().indexOf("LDAP")!=-1 || name.toUpperCase().indexOf("RMI")!=-1 || name.toUpperCase().indexOf("JMS")!=-1 || name.toUpperCase().indexOf("JMX")!=-1) || name.toUpperCase().indexOf("JRMP")!=-1 || name.toUpperCase().indexOf("JAVA")!=-1 || name.toUpperCase().indexOf("DNS")!=-1) {
++ if(name!=null && (name.toUpperCase().indexOf("LDAP")!=-1 || name.toUpperCase().indexOf("RMI")!=-1 || name.toUpperCase().indexOf("JMS")!=-1 || name.toUpperCase().indexOf("JMX")!=-1 || name.toUpperCase().indexOf("JRMP")!=-1 || name.toUpperCase().indexOf("JAVA")!=-1 || name.toUpperCase().indexOf("DNS")!=-1 || name.toUpperCase().indexOf("IIOP")!=-1 || name.toUpperCase().indexOf("CORBANAME")!=-1)) {
++ log.warn("returning null, jndiName received by ServiceFactory.getService() is not supported by this method: " + name);
+ return null;
+ }
+ if (name == null) {
=====================================
debian/patches/series
=====================================
@@ -9,3 +9,6 @@ java9-compatibility.patch
java11-compatibility.patch
CVE-2018-8032.patch
CVE-2023-40743.patch
+CVE-2019-0227.patch
+CVE-2023-51441.patch
+soap-fault-class-instantiation.patch
=====================================
debian/patches/soap-fault-class-instantiation.patch
=====================================
@@ -0,0 +1,183 @@
+Description: Prevent the instantiation of arbitrary classes from the exceptionName of a SOAP fault
+ The class named in the <detail><exceptionName> element of an inbound fault
+ was loaded and constructed with attacker-controlled data before any type
+ check. Only AxisFault subtypes are now accepted, loaded without running
+ their static initializer.
+Author: Robert Lazarski <robertlazarski at gmail.com>
+Origin: backport, https://github.com/apache/axis-axis1-java/commit/41f3b4e8d04e310ca81f86b92630ab2c11d608bd
+Forwarded: not-needed
+--- a/src/org/apache/axis/message/SOAPFaultBuilder.java
++++ b/src/org/apache/axis/message/SOAPFaultBuilder.java
+@@ -161,14 +161,21 @@
+ // We need to create the exception,
+ // passing the data to the constructor.
+ Class argClass = ConvertWrapper(faultData.getClass());
+- try {
+- Constructor con =
+- faultClass.getConstructor(
+- new Class[] { argClass });
+- f = (AxisFault) con.newInstance(new Object[] { faultData });
+- } catch(Exception e){
+- // Don't do anything here, since a problem above means
+- // we'll just fall through and use a plain AxisFault.
++ // Only construct genuine AxisFault subtypes: the
++ // constructor runs before the (AxisFault) cast below,
++ // so reflectively constructing an arbitrary class here
++ // would let an unauthenticated caller execute its
++ // constructor with attacker-controlled data.
++ if (AxisFault.class.isAssignableFrom(faultClass)) {
++ try {
++ Constructor con =
++ faultClass.getConstructor(
++ new Class[] { argClass });
++ f = (AxisFault) con.newInstance(new Object[] { faultData });
++ } catch(Exception e){
++ // Don't do anything here, since a problem above means
++ // we'll just fall through and use a plain AxisFault.
++ }
+ }
+ if (f == null && faultData instanceof Exception) {
+ f = AxisFault.makeFault((Exception)faultData);
+--- a/src/org/apache/axis/message/SOAPFaultDetailsBuilder.java
++++ b/src/org/apache/axis/message/SOAPFaultDetailsBuilder.java
+@@ -28,6 +28,8 @@
+ import org.apache.axis.soap.SOAPConstants;
+ import org.apache.axis.utils.ClassUtils;
+ import org.apache.axis.utils.Messages;
++import org.apache.commons.logging.Log;
++import org.apache.commons.logging.LogFactory;
+ import org.xml.sax.Attributes;
+ import org.xml.sax.SAXException;
+
+@@ -42,6 +44,9 @@
+ */
+ public class SOAPFaultDetailsBuilder extends SOAPHandler implements Callback
+ {
++ protected static Log log =
++ LogFactory.getLog(SOAPFaultDetailsBuilder.class.getName());
++
+ protected SOAPFaultBuilder builder;
+
+ public SOAPFaultDetailsBuilder(SOAPFaultBuilder builder) {
+@@ -180,8 +185,19 @@
+ } else if ("exceptionName".equals(hint)) {
+ String faultClassName = (String) value;
+ try {
+- Class faultClass = ClassUtils.forName(faultClassName);
+- builder.setFaultClass(faultClass);
++ // The class name here comes straight from the inbound message
++ // and is therefore untrusted. Load it without initializing it
++ // (so no static initializer runs) and only accept it if it is
++ // an AxisFault subtype. This prevents an unauthenticated caller
++ // from loading and instantiating arbitrary classpath classes
++ // via a <detail><exceptionName> element.
++ Class faultClass = ClassUtils.forName(faultClassName, false);
++ if (AxisFault.class.isAssignableFrom(faultClass)) {
++ builder.setFaultClass(faultClass);
++ } else if (log.isDebugEnabled()) {
++ log.debug("Ignoring fault exceptionName '" + faultClassName
++ + "': not an org.apache.axis.AxisFault subtype");
++ }
+ } catch (ClassNotFoundException e) {
+ // Just create an AxisFault, no custom exception
+ }
+--- a/src/org/apache/axis/utils/ClassUtils.java
++++ b/src/org/apache/axis/utils/ClassUtils.java
+@@ -97,7 +97,23 @@
+ */
+ public static Class forName(String className)
+ throws ClassNotFoundException {
+- return loadClass(className);
++ return loadClass(className, true);
++ }
++
++ /**
++ * Use this method instead of Class.forName when the class should be
++ * located but not necessarily initialized. Passing <code>false</code>
++ * avoids running the named class's static initializer, which is
++ * important when the class name comes from untrusted input.
++ *
++ * @param className Class name
++ * @param initialize whether to initialize the class
++ * @return java class
++ * @throws ClassNotFoundException if the class is not found
++ */
++ public static Class forName(String className, boolean initialize)
++ throws ClassNotFoundException {
++ return loadClass(className, initialize);
+ }
+
+ /**
+@@ -117,14 +133,15 @@
+ // Create final vars for doPrivileged block
+ final String className = _className;
+ final ClassLoader loader = _loader;
++ final boolean initialize = init;
+ try {
+ // Get the class within a doPrivleged block
+- Object ret =
++ Object ret =
+ AccessController.doPrivileged(
+ new PrivilegedAction() {
+ public Object run() {
+ try {
+- return Class.forName(className, true, loader);
++ return Class.forName(className, initialize, loader);
+ } catch (Throwable e) {
+ return e;
+ }
+@@ -139,7 +156,7 @@
+ throw new ClassNotFoundException(_className);
+ }
+ } catch (ClassNotFoundException cnfe) {
+- return loadClass(className);
++ return loadClass(className, init);
+ }
+ }
+
+@@ -148,16 +165,18 @@
+ * getDefaultClassLoader().forName
+ *
+ * @param _className Class name
++ * @param initialize whether to initialize the class
+ * @return java class
+ * @throws ClassNotFoundException if the class is not found
+ */
+- private static Class loadClass(String _className)
++ private static Class loadClass(String _className, boolean initialize)
+ throws ClassNotFoundException {
+ // Create final vars for doPrivileged block
+ final String className = _className;
++ final boolean init = initialize;
+
+ // Get the class within a doPrivleged block
+- Object ret =
++ Object ret =
+ AccessController.doPrivileged(
+ new PrivilegedAction() {
+ public Object run() {
+@@ -165,7 +184,7 @@
+ // Check if the class is a registered class then
+ // use the classloader for that class.
+ ClassLoader classLoader = getClassLoader(className);
+- return Class.forName(className, true, classLoader);
++ return Class.forName(className, init, classLoader);
+ } catch (ClassNotFoundException cnfe) {
+ } catch (SecurityException cnfe) {
+ }
+@@ -174,13 +193,13 @@
+ // Try the context class loader
+ ClassLoader classLoader =
+ Thread.currentThread().getContextClassLoader();
+- return Class.forName(className, true, classLoader);
++ return Class.forName(className, init, classLoader);
+ } catch (ClassNotFoundException cnfe2) {
+ try {
+ // Try the classloader that loaded this class.
+ ClassLoader classLoader =
+ ClassUtils.class.getClassLoader();
+- return Class.forName(className, true, classLoader);
++ return Class.forName(className, init, classLoader);
+ } catch (ClassNotFoundException cnfe3) {
+ // Try the default class loader.
+ try {
=====================================
debian/rules
=====================================
@@ -4,7 +4,7 @@ export CLASSPATH=/usr/share/java/commons-logging.jar \
:/usr/share/java/commons-discovery.jar \
:/usr/share/java/commons-httpclient.jar \
:/usr/share/java/javax.mail.jar \
- :/usr/share/java/servlet-api-3.1.jar \
+ :/usr/share/java/servlet-api.jar \
:/usr/share/java/wsdl4j.jar \
:/usr/share/java/xmlParserAPIs.jar \
:/usr/share/java/xercesImpl.jar
@@ -13,8 +13,7 @@ export CLASSPATH=/usr/share/java/commons-logging.jar \
dh $@ --with maven-repo-helper
override_dh_auto_build:
- dh_auto_build -- -Dcompile.debug=true compile javadocs -debug
- mv build/javadocs build/api
+ dh_auto_build -- -Dcompile.debug=true compile -debug
mkdir -p build/bnd/
for BNDFILE in debian/bnd/*.bnd; do \
=====================================
debian/watch
=====================================
@@ -1,3 +1,4 @@
-version=3
-opts=uversionmangle=s/_/./ \
-https://archive.apache.org/dist/ws/axis/1_4/ axis-src-(.*).tar.gz
+Version: 5
+Source: https://archive.apache.org/dist/ws/axis/1_4/
+Matching-Pattern: axis-src-(.*)\.tar\.gz
+Uversion-Mangle: s/_/./
View it on GitLab: https://salsa.debian.org/java-team/axis/-/compare/cee428f3a001d86a9613f2447d6f5c266294c7dc...d89998eafa29fb372c765ba9573d423c31042da6
--
View it on GitLab: https://salsa.debian.org/java-team/axis/-/compare/cee428f3a001d86a9613f2447d6f5c266294c7dc...d89998eafa29fb372c765ba9573d423c31042da6
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20261020/7dc6a52a/attachment.htm>
More information about the pkg-java-commits
mailing list