CVE-2020-13940 Improper Restriction of XML External Entity Reference in Apache NiFi

Medium 5.5 Published Updated

Trusted administrators can configure malicious XML files in Apache NiFi, enabling XXE attacks that allow external service calls and potential data exposure.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-13940?

CVE-2020-13940 is a medium-severity vulnerability in Apache Nifi, published on 1 Oct 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

In Apache NiFi 1.0.0 to 1.11.4, the notification service manager and various policy authorizer and user group provider objects allowed trusted administrators to inadvertently configure a potentially malicious XML file. The XML file has the ability to make external calls to services (via XXE).

Weakness: CWE-611

Which versions are affected by CVE-2020-13940?

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

PackageAffectedFixed in
org.apache.nifi:nifi MavenFrom 1.0.01.12.0-RC1
org.apache.nifi:nifi MavenFrom 1.0.01.12.0-RC1
nifi BitnamiFrom 1.0.0 to 1.11.4None

Products include Apache Nifi.

How do I fix CVE-2020-13940?

Upgrade org.apache.nifi:nifi to 1.12.0-RC1 or later.

Is CVE-2020-13940 being exploited?

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

All Apache Nifi vulnerabilities

Sources

Also known as BIT-nifi-2020-13940, GHSA-q4xf-3pmq-3hw8.

Is CVE-2020-13940 in your software?

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

Check your SBOMs for free