MODERATE 4.3
CVE-2022-4245
codehaus-plexus vulnerable to XML injection
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.codehaus.plexus » plexus-utils | < 3.0.24 | 3.0.24 |
Blast radius
1affected artifacts
87affected versions
18,939dependent artifacts (est.)
652,572dependent versions
68% of the dependent artifacts (12,894) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 47,827 |
| 2 hops | 186,529 |
| 3 hops | 226,445 |
| 4 hops | 120,456 |
| 5 hops | 51,500 |
| 6 hops | 19,815 |
Most used dependents
- org.apache.maven.plugins » maven-compiler-plugin126,333 usages
- org.apache.maven.plugins » maven-source-plugin87,037 usages
- org.apache.maven.plugins » maven-javadoc-plugin84,916 usages
- org.apache.maven.plugins » maven-surefire-plugin67,265 usages
- org.apache.maven.plugins » maven-jar-plugin59,787 usages
- org.apache.maven.plugins » maven-gpg-plugin50,913 usages
- org.sonatype.plugins » nexus-staging-maven-plugin36,701 usages
- org.apache.felix » maven-bundle-plugin31,882 usages
- org.apache.maven.plugins » maven-release-plugin29,114 usages
- org.apache.maven.plugins » maven-assembly-plugin28,314 usages
- org.apache.maven.plugins » maven-dependency-plugin26,231 usages
- org.apache.maven.plugins » maven-resources-plugin22,649 usages
- org.codehaus.mojo » build-helper-maven-plugin22,347 usages
- org.jacoco » jacoco-maven-plugin19,077 usages
- org.apache.maven.plugins » maven-shade-plugin18,801 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-4245
- Webhttps://github.com/codehaus-plexus/plexus-utils/issues/3
- Webhttps://github.com/codehaus-plexus/plexus-utils/commit/f933e5e78dc2637e485447ed821fe14904f110de
- 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
- Packagehttps://github.com/codehaus-plexus/plexus-utils
- Webhttps://security.snyk.io/vuln/SNYK-JAVA-ORGCODEHAUSPLEXUS-461102
