codehaus-plexus/plexus-utils · Security
codehaus-plexus vulnerable to XML injection
- GHSA ID
- GHSA-jcwr-x25h-x5fh
- CVE ID
- CVE-2022-4245
- Severity
- medium
- Published
- Updated
- CVSS
- 4.3 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- CVSS v3
- 4.3 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
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.
CWEs
- CWE-91 · XML Injection (aka Blind XPath Injection)
- CWE-611 · Improper Restriction of XML External Entity Reference
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-4245 ↗
- 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 ↗
- https://github.com/codehaus-plexus/plexus-utils/issues/3 ↗
- https://github.com/codehaus-plexus/plexus-utils/commit/f933e5e78dc2637e485447ed821fe14904f110de ↗
- https://security.snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-461102 ↗
- https://access.redhat.com/errata/RHSA-2023:2135 ↗
- https://github.com/advisories/GHSA-jcwr-x25h-x5fh ↗