MediumGHSA-jcwr-x25h-x5fhCVE-2022-4245
codehaus-plexus vulnerable to XML injection
Published 25 Sept 2023 · Updated 3 May 2024
Is your project on an affected org.codehaus.plexus:plexus-utils?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <3.0.24
- Fixed in
- 3.0.24
Update to the fixed version for your release line, for example:
mvn versions:use-dep-version -Dincludes=org.codehaus.plexus:plexus-utils -DdepVersion=3.0.24 -DforceVersion=trueDetails
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.
Is GHSA-jcwr-x25h-x5fh in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.codehaus.plexus:plexus-utils, and gives you the command that fixes it.
More advisories for org.codehaus.plexus:plexus-utils
- HighCVE-2025-67030Plexus-Utils has a Directory Traversal vulnerability in its extractFile method · 25 Mar 2026
- HighCVE-2022-4244plexus-codehaus vulnerable to directory traversal · 25 Sept 2023
- CriticalCVE-2017-1000487OS Command Injection in Plexus-utils · 13 May 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-4245
- Linkgithub.com/codehaus-plexus/plexus-utils/issues/3
- Linkgithub.com/codehaus-plexus/plexus-utils/commit/f933e5e78dc2637e485447ed821fe14904f110de
- Linkaccess.redhat.com/errata/RHSA-2023:2135
- Linkaccess.redhat.com/errata/RHSA-2023:3906
- Linkaccess.redhat.com/security/cve/CVE-2022-4245
- Linkbugzilla.redhat.com/show_bug.cgi?id=2149843
- Packagegithub.com/codehaus-plexus/plexus-utils
- Linksecurity.snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-461102
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.