Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.codehaus.plexus/plexus-utils
  4. ›
  5. CVE-2022-4245

CVE-2022-4245: codehaus-plexus vulnerable to XML injection

September 25, 2023 (updated September 26, 2023)

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.

References

  • access.redhat.com/errata/RHSA-2023:3906
  • access.redhat.com/security/cve/CVE-2022-4245
  • bugzilla.redhat.com/show_bug.cgi?id=2149843
  • github.com/advisories/GHSA-jcwr-x25h-x5fh
  • github.com/codehaus-plexus/plexus-utils/commit/f933e5e78dc2637e485447ed821fe14904f110de
  • github.com/codehaus-plexus/plexus-utils/issues/3
  • nvd.nist.gov/vuln/detail/CVE-2022-4245
  • security.snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-461102

Code Behaviors & Features

Detect and mitigate CVE-2022-4245 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.0.24

Fixed versions

  • 3.0.24

Solution

Upgrade to version 3.0.24 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Source file

maven/org.codehaus.plexus/plexus-utils/CVE-2022-4245.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:22 +0000.