CVE-2022-4245
MEDIUM4.3EPSS 0.06%codehaus-plexus vulnerable to XML injection
Published: 9/25/2023Modified: 4/28/2026
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.
Affected packages (2)
- Debian/plexus-utils2from 0, < 3.0.24-1
- Maven/org.codehaus.plexus:plexus-utilsfrom 0, < 3.0.24
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
References (10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-4245
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-4245
- PATCHhttps://github.com/codehaus-plexus/plexus-utils
- WEBhttps://access.redhat.com/errata/RHSA-2023:2135
- WEBhttps://access.redhat.com/errata/RHSA-2023:3906
- WEBhttps://access.redhat.com/security/cve/CVE-2022-4245
- WEBhttps://bugzilla.redhat.com/show_bug.cgi?id=2149843
- WEBhttps://github.com/codehaus-plexus/plexus-utils/commit/f933e5e78dc2637e485447ed821fe14904f110de
- WEBhttps://github.com/codehaus-plexus/plexus-utils/issues/3
- WEBhttps://security.snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-461102