CVE-2017-15697 Apache NiFi XSS issue in context path handling

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code via malicious X-ProxyContextPath or X-Forwarded-Context headers in Apache NiFi.

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-15697?

CVE-2017-15697 is a critical code injection vulnerability in Apache Nifi, published on 23 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A malicious X-ProxyContextPath or X-Forwarded-Context header containing external resources or embedded code could cause remote code execution. The fix to properly handle these headers was applied on the Apache NiFi 1.5.0 release. Users running a prior 1.x release should upgrade to the appropriate release.

Weakness: CWE-20

Which versions are affected by CVE-2017-15697?

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

PackageAffectedFixed in
org.apache.nifi:nifi MavenFrom 1.0.01.5.0
org.apache.nifi:nifi MavenFrom 1.0.01.5.0

Products include Apache Nifi.

How do I fix CVE-2017-15697?

Upgrade org.apache.nifi:nifi to 1.5.0 or later.

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

Is CVE-2017-15697 being exploited?

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

All Apache Nifi vulnerabilities

Sources

Also known as GHSA-29ph-fjf3-c5cm.

Is CVE-2017-15697 in your software?

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

Check your SBOMs for free