CVE-2013-4330 Improper Control of Generation of Code in Apache Camel

Medium 6.8 Published Updated

Remote attackers can execute arbitrary code by injecting expressions into message headers in Apache Camel file or FTP producers.

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

What is CVE-2013-4330?

CVE-2013-4330 is a medium-severity code injection vulnerability in Apache Camel, published on 4 Oct 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Camel before 2.9.7, 2.10.0 before 2.10.7, 2.11.0 before 2.11.2, and 2.12.0 allows remote attackers to execute arbitrary simple language expressions by including "$simple{}" in a CamelFileName message header to a (1) FILE or (2) FTP producer.

Weakness: CWE-94

Which versions are affected by CVE-2013-4330?

8 open source packages ship an affected version, including org.apache.camel:camel-core. It affects 1 product.

PackageAffectedFixed in
org.apache.camel:camel-core MavenAll versions2.9.7
org.apache.camel:camel-core MavenAll versions2.9.7
org.apache.camel:camel-core MavenFrom 2.10.02.10.7
org.apache.camel:camel-core MavenFrom 2.10.02.10.7
org.apache.camel:camel-core MavenFrom 2.11.02.11.2
org.apache.camel:camel-core MavenFrom 2.11.02.11.2
2 more packages
org.apache.camel:camel-core MavenFrom 2.12.02.12.1
org.apache.camel:camel-core MavenFrom 2.12.02.12.1

Products include Apache Camel.

How do I fix CVE-2013-4330?

Upgrade org.apache.camel:camel-core to a fixed version for your release line: 2.9.7, 2.10.7, 2.11.2 or 2.12.1.

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

Is CVE-2013-4330 being exploited?

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

All Apache Camel vulnerabilities

Sources

Also known as GHSA-x9fv-c87w-55wc.

Is CVE-2013-4330 in your software?

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

Check your SBOMs for free