GitHub Advisoryadvisory · Maven

GHSA-2f88-5hg8-9x2x Origin Validation Error in Apache Maven

CRITICAL Published 2021-06-16 Modified 2023-08-15 Official page ↗
Aliases
CVE-2021-26291
Ecosystem
Maven
Packages
org.apache.maven:maven-compat, org.apache.maven:maven-core
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weaknesses
CWE-346
Reviewed
2021-04-26

Affected packages

• Maven org.apache.maven:maven-compat: < 3.8.1 → fixed in 3.8.1 • Maven org.apache.maven:maven-core: < 3.8.1 → fixed in 3.8.1

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

Related

Alias · CVE (1)

  • CVE-2021-26291 Apache Maven will follow repositories that are defined in a dependency’s Project Object Model (pom) which may be surprising to some users,… vulnerability

Weakness · CWE (1)

  • CWE-346 Origin Validation Error weakness

References