CVE-2018-8041 Apache Camel's Mail is vulnerable to path traversal

Medium 5.3 Published Updated

Attackers can exploit path traversal in Apache Camel Mail component to read or modify arbitrary files on the server.

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

What is CVE-2018-8041?

CVE-2018-8041 is a medium-severity path traversal vulnerability in Apache Camel, published on 17 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Camel's Mail 2.20.0 through 2.20.3, 2.21.0 through 2.21.1 and 2.22.0 is vulnerable to path traversal.

Weakness: CWE-22

Which versions are affected by CVE-2018-8041?

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

PackageAffectedFixed in
org.apache.camel:camel-mail MavenFrom 2.20.02.20.4
org.apache.camel:camel-mail MavenFrom 2.20.02.20.4
org.apache.camel:camel-mail MavenFrom 2.21.02.21.2
org.apache.camel:camel-mail MavenFrom 2.21.02.21.2
org.apache.camel:camel-mail MavenFrom 2.22.02.22.1
org.apache.camel:camel-mail MavenFrom 2.22.02.22.1

Products include Apache Camel.

How do I fix CVE-2018-8041?

Upgrade org.apache.camel:camel-mail to a fixed version for your release line: 2.20.4, 2.21.2 or 2.22.1.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-8041 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

All Apache Camel vulnerabilities

Sources

Also known as GHSA-jv74-f9pj-xp3f.

Is CVE-2018-8041 in your software?

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

Check your SBOMs for free