CVE-2022-25167 Apache Flume vulnerable to a JNDI RCE in JMSSource
Attackers can execute arbitrary code in Apache Flume if JMS Source uses a malicious LDAP JNDI URI, requiring specific configuration.
- 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-25167?
CVE-2022-25167 is a critical code injection vulnerability in Apache Flume, published on 14 Jun 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.9.0 are vulnerable to a remote code execution (RCE) attack when a configuration uses a JMS Source with a JNDI LDAP data source URI when an attacker has control of the target LDAP server. This issue is fixed by limiting JNDI to allow only the use of the java protocol or no protocol.
Which versions are affected by CVE-2022-25167?
2 open source packages ship an affected version, including org.apache.flume.flume-ng-sources:flume-jms-source. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.flume.flume-ng-sources:flume-jms-source Maven | From 1.4.0 | 1.10.0 |
org.apache.flume.flume-ng-sources:flume-jms-source Maven | From 1.4.0 | 1.10.0 |
Products include Apache Flume.
How do I fix CVE-2022-25167?
Upgrade org.apache.flume.flume-ng-sources:flume-jms-source to 1.10.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-25167 being exploited?
There is no known exploitation of CVE-2022-25167 in the wild and no public exploit code.
Other vulnerabilities in Apache Flume
Sources
Also known as GHSA-x5m7-rwfx-w7qm.