WaratekVRT Sign in

CVE-2020-13940 Apache NiFi

Affected softwareApache NiFi
Severity5.5 Medium CVSS 3.1 2 scores
Fixed in1.12.0-RC1
WeaknessXML external entity (XXE) (CWE-611)
Published1 Oct 2020
Updated17 Jun 2026

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).

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 6 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 1.9% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

  • Protection full XXE
  • Action available security rule
  • Review automated Inferred
  • Record active
Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR xxe security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-611: XML External Entity Reference.

How to mitigate CVE-2020-13940

Upgrade Apache NiFi to 1.12.0-RC1 or later. Until you can, Waratek RASP blocks exploitation with its XXE rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

5.5 MEDIUM v3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 5.5 MEDIUM CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N NVD Primary published
CVSS 2.0 4.3 none AV:N/AC:M/Au:N/C:P/I:N/A:N NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.nifi:nifi 1.0.0 1.12.0-RC1 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd apache nifi generic ≥ 1.0.0 and ≤ 1.11.4
osv org.apache.nifi nifi generic ≥ 1.0.0 and < 1.12.0

References

URLTags
https://github.com/apache/nifi/commit/7f0416ee8bdcee95e28409cc6fae9c1394c2a798 WEB
https://nifi.apache.org/security#CVE-2020-13940 WEB

Timeline

Published2020-10-01By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.