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

- Severity: Medium 4.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2023-09-25T19:20:57.329Z
- Modified: 2026-06-17T05:20:21.833Z
- Also known as: GHSA-jcwr-x25h-x5fh
- Weaknesses: CWE-91, CWE-611
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- codehaus-plexus: no versions given
- Red Hat RHPAM 7.13.1 async: no versions given
- plexus-utils: no versions given
- maven:3.6/plexus-utils: no versions given
- maven:3.8/plexus-utils: no versions given
- org.codehaus.plexus-plexus-utils: no versions given
- rh-maven36-byte-buddy: no versions given
- rh-maven36-maven: no versions given
- rh-maven36-maven-archiver: no versions given
- rh-maven36-maven-assembly-plugin: no versions given
- rh-maven36-maven-compiler-plugin: no versions given
- rh-maven36-maven-jar-plugin: no versions given
- rh-maven36-maven-plugin-bundle: no versions given
- rh-maven36-maven-remote-resources-plugin: no versions given
- rh-maven36-maven-shade-plugin: no versions given
- rh-maven36-maven-source-plugin: no versions given
- rh-maven36-maven-surefire: no versions given
- rh-maven36-plexus-utils: no versions given
- org.codehaus.plexus:plexus-utils (Maven): before 3.0.24
- codehaus-plexus plexus-utils: before 3.0.24
- redhat integration_camel_k: before 1.10.1

## Every score

- redhat: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2023:2135> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:3906> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2022-4245> (third-party-advisory, vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2149843> (issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4245> (advisory)
- <https://github.com/codehaus-plexus/plexus-utils/issues/3> (web)
- <https://github.com/codehaus-plexus/plexus-utils/commit/f933e5e78dc2637e485447ed821fe14904f110de> (web)
- <https://github.com/codehaus-plexus/plexus-utils> (package)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-461102> (web)

## Sources

- CVE List: [CVE-2022-4245](https://www.cve.org/CVERecord?id=CVE-2022-4245), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-jcwr-x25h-x5fh](https://github.com/advisories/GHSA-jcwr-x25h-x5fh), CC-BY-4.0, modified 2024-05-03
- NVD: [CVE-2022-4245](https://nvd.nist.gov/vuln/detail/CVE-2022-4245), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-4245 · Whole record: https://cve.day/CVE-2022-4245.json · Rebuilt by cve.day 2026-11-25T22:58:19.624Z
