GHSA-wc97-7623-rxwx BIT-nifi-2022-29265 CVE-2022-29265
Multiple components in Apache NiFi do not restrict XML External Entity references
- Severity
- 7.5 / 10
- High · CVSS 3.1
- Exploit chance (EPSS)
- 2.60%
- Chance of exploitation in the next 30 days. Higher than 85.33% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-611 Improper Restriction of XML External Entity Reference
- Fix
1.16.1- Upgrade org.apache.nifi:nifi to this version or later
Description
Apache NiFi is a system to process and distribute data. Multiple components in Apache NiFi 0.0.1 to 1.16.0 do not restrict XML External Entity references in the default configuration. The Standard Content Viewer service attempts to resolve XML External Entity references when viewing formatted XML files. The following Processors attempt to resolve XML External Entity references when configured with default property values:
- EvaluateXPath
- EvaluateXQuery
- ValidateXml
Apache NiFi flow configurations that include these Processors are vulnerable to malicious XML documents that contain Document Type Declarations with XML External Entity references. NiFi 1.16.1 disables Document Type Declarations in the default configuration for these Processors and disallows XML External Entity resolution in standard services.
Affected versions
Maven
| Package | Vulnerable | Fixed in |
|---|---|---|
| org.apache.nifi:nifi | >= 0.0.1, < 1.16.1 |
1.16.1 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
org.apache.nifi:nifi Maven → 1.16.1
- maven
<dependency><groupId>org.apache.nifi</groupId><artifactId>nifi</artifactId><version>1.16.1</version></dependency>- gradle
implementation("org.apache.nifi:nifi:1.16.1")
Severity breakdown
CVSS 3.1 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Weakness
CWE-611: Improper Restriction of XML External Entity Reference
The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.
How to prevent it
- Implementation, System Configuration: Many XML parsers and validators can be configured to disable external entity expansion.
References
Advisories
Packages
Other links
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-77hf-23pq-2g7c Code injection in Apache NiFi and NiFi Registry | High | Also affects org.apache.nifi:nifi |
| GHSA-m5r7-w9v3-ghmx Cross-site Scripting in Apache NiFi | Medium | Also affects org.apache.nifi:nifi |
| GHSA-jvx9-rj3w-jq99 Origin Validation Error in Apache NiFi | High | Also affects org.apache.nifi:nifi |
| GHSA-qj7f-j6h9-g5rq XML External Entity Reference in Apache NiFi | Medium | Also affects org.apache.nifi:nifi |
| GHSA-jrcc-7jf5-3pxg Injection in Apache NiFi | Critical | Also affects org.apache.nifi:nifi |
| GHSA-29ph-fjf3-c5cm Apache NiFi XSS issue in context path handling | Critical | Also affects org.apache.nifi:nifi |
| GHSA-w4x6-j349-9r57 Apache NiFi host header poisoning issue | High | Also affects org.apache.nifi:nifi |
| GHSA-p76j-5v6v-6c22 Apache NiFi JMS Deserialization issue | High | Also affects org.apache.nifi:nifi |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor