CVE-2025-27017 Apache NiFi: Potential Insertion of MongoDB Password in Provenance Record
Authorized users can view MongoDB credentials in NiFi provenance events, exposing sensitive authentication data.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-27017?
CVE-2025-27017 is a medium-severity vulnerability in Apache Nifi, published on 12 Mar 2025. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
Apache NiFi 1.13.0 through 2.2.0 includes the username and password used to authenticate with MongoDB in the NiFi provenance events that MongoDB components generate during processing. An authorized user with read access to the provenance events of those processors may see the credentials information. Upgrading to Apache NiFi 2.3.0 is the recommended mitigation, which removes the credentials from provenance event records.
Weakness: CWE-538
Which versions are affected by CVE-2025-27017?
2 open source packages ship an affected version, including org.apache.nifi:nifi-mongodb-services. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.nifi:nifi-mongodb-services Maven | From 1.13.0 | 2.3.0 |
org.apache.nifi:nifi-mongodb-services Maven | From 1.13.0 | 2.3.0 |
Products include Apache Nifi.
How do I fix CVE-2025-27017?
Upgrade org.apache.nifi:nifi-mongodb-services to 2.3.0 or later.
Is CVE-2025-27017 being exploited?
There is no known exploitation of CVE-2025-27017 in the wild and no public exploit code.
Other vulnerabilities in Apache Nifi
- CVE-2018-1309 Improper Restriction of XML External Entity Reference in Apache NiFi
- CVE-2017-15697 Apache NiFi XSS issue in context path handling
- CVE-2017-5636 Injection in Apache NiFi
- CVE-2026-68981 Apache NiFi: Uncontrolled Resource Consumption through Decompression of HTTP Requests
- CVE-2023-36542 Apache NiFi: Potential Code Injection with Properties Referencing Remote Resources
Sources
Also known as GHSA-35gq-cvrm-xf94.