CRITICAL 9.1

CVE-2021-26291

Origin Validation Error in Apache Maven

Description

Apache Maven will follow repositories that are defined in a dependency’s Project Object Model (pom) which may be surprising to some users, resulting in potential risk if a malicious actor takes over that repository or is able to insert themselves into a position to pretend to be that repository. Maven is changing the default behavior in 3.8.1+ to no longer follow http (non-SSL) repository references by default. More details available in the referenced urls. If you are currently using a repository manager to govern the repositories used by your builds, you are unaffected by the risks present in the legacy behavior, and are unaffected by this vulnerability and change to default behavior. See this link for more information about repository management: https://maven.apache.org/repository-management.html

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.apache.maven » maven-compat
< 3.8.1
3.8.1
org.apache.maven » maven-core
< 3.8.1
3.8.1

Blast radius

2affected artifacts
150affected versions
9,125dependent artifacts (est.)
485,706dependent versions

83% of the dependent artifacts (7,575) still pull an affected version in their latest release.

DepthDependent versions
Direct
97,849
2 hops
101,812
3 hops
213,591
4 hops
48,902
5 hops
19,040
6 hops
4,512

Most used dependents

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