CVE-2022-42468 Apache Flume prior to 1.11.0 has an Improper Input Validation (JNDI Injection) in JMSSource

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code via JNDI injection in Apache Flume when using a JMS Source with an unsafe providerURL.

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

What is CVE-2022-42468?

CVE-2022-42468 is a critical code injection vulnerability in Apache Flume, published on 26 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Flume versions 1.4.0 through 1.10.1 are vulnerable to a remote code execution (RCE) attack when a configuration uses a JMS Source with an unsafe providerURL. This issue is fixed by limiting JNDI to allow only the use of the java protocol or no protocol.

Weakness: CWE-74, CWE-20

Which versions are affected by CVE-2022-42468?

2 open source packages ship an affected version, including org.apache.flume.flume-ng-sources:flume-jms-source. It affects 1 product.

PackageAffectedFixed in
org.apache.flume.flume-ng-sources:flume-jms-source MavenAll versions1.11.0
org.apache.flume.flume-ng-sources:flume-jms-source MavenAll versions1.11.0

Products include Apache Flume.

How do I fix CVE-2022-42468?

Upgrade org.apache.flume.flume-ng-sources:flume-jms-source to 1.11.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-42468 being exploited?

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

Sources

Also known as GHSA-9w4g-fp9h-3q2v.

Is CVE-2022-42468 in your software?

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

Check your SBOMs for free