CVE-2017-9801 Improper Input Validation in Apache Commons Email

High 7.5 Published Updated

Attackers can inject arbitrary SMTP headers via line breaks in email subjects, potentially altering email metadata or behavior.

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

What is CVE-2017-9801?

CVE-2017-9801 is a high-severity vulnerability in Apache Commons Email, published on 7 Aug 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

When a call-site passes a subject for an email that contains line-breaks in Apache Commons Email 1.0 through 1.4, the caller can add arbitrary SMTP headers.

Weakness: CWE-20

Which versions are affected by CVE-2017-9801?

2 open source packages ship an affected version, including org.apache.commons:commons-email. It affects 1 product.

PackageAffectedFixed in
org.apache.commons:commons-email MavenFrom 1.01.5
org.apache.commons:commons-email MavenFrom 1.01.5
Linux distribution packages (1)
apache-commons-email openSUSE:TumbleweedAll versions1.5-3.10

Products include Apache Commons Email.

How do I fix CVE-2017-9801?

Upgrade org.apache.commons:commons-email to 1.5 or later.

Is CVE-2017-9801 being exploited?

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

Sources

Also known as GHSA-p7vm-phxx-g722, MGASA-2017-0322, openSUSE-SU-2024:10619-1.

Is CVE-2017-9801 in your software?

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

Check your SBOMs for free