CVE-2023-40743 Apache Axis 1.x (EOL) may allow RCE when untrusted input is passed to getService

Critical 9.8 Published Updated

Attackers can trigger SSRF, DoS, or RCE by passing untrusted input to the getService method in the unsupported Apache Axis 1.x library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-40743?

CVE-2023-40743 is a critical server-side request forgery vulnerability in Apache Axis, published on 5 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

** UNSUPPORTED WHEN ASSIGNED ** When integrating Apache Axis 1.x in an application, it may not have been obvious that looking up a service through "ServiceFactory.getService" allows potentially dangerous lookup mechanisms such as LDAP. When passing untrusted input to this API method, this could expose the application to DoS, SSRF and even attacks leading to RCE.

As Axis 1 has been EOL we recommend you migrate to a different SOAP engine, such as Apache Axis 2/Java. As a workaround, you may review your code to verify no untrusted or unsanitized input is passed to "ServiceFactory.getService", or by applying the patch from https://github.com/apache/axis-axis1-java/commit/7e66753427466590d6def0125e448d2791723210 . The Apache Axis project does not expect to create an Axis 1.x release fixing this problem, though contributors that would like to work towards this are welcome.

Weakness: CWE-75, CWE-20

Which versions are affected by CVE-2023-40743?

4 open source packages ship an affected version, including org.apache.axis:axis and axis:axis. It affects 1 product.

PackageAffectedFixed in
org.apache.axis:axis MavenAll versions to 1.4None
org.apache.axis:axis MavenAll versions to 1.4None
axis:axis MavenAll versions to 1.4None
axis:axis MavenAll versions to 1.4None

Products include Apache Axis.

How do I fix CVE-2023-40743?

Product is end of life, replace it.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2023-40743 being exploited?

There is no known exploitation of CVE-2023-40743 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2023-40743, DLA-3622-1, GHSA-rmqp-9w4c-gc7w, UBUNTU-CVE-2023-40743, USN-6470-1.

Is CVE-2023-40743 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free