Skip to content
OpenAdvisories
Critical · 9.1 Public exploit CVE-2021-26291 BIT-maven-2021-26291EUVD-2021-1241GHSA-2f88-5hg8-9x2x

block repositories using http by default

Published Apr 23, 2021 · Updated Aug 3, 2024 · Assigned by apache

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache Maven Apache Maven – ≤ 3.8.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 maven 3.8.6-1 —
Debian 13 maven 3.8.6-1 —
Debian 12 maven 3.8.6-1 —
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS maven No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS maven 3.6.3-5ubuntu0.1~esm1 USN-5245-1
Ubuntu Pro 20.04 LTS maven 3.6.3-1ubuntu0.1~esm1 USN-5245-1
Ubuntu Pro 18.04 LTS maven 3.6.0-1~18.04.1ubuntu0.1~esm1 USN-5245-1
Ubuntu Pro 16.04 LTS maven 3.3.9-3ubuntu0.1~esm1 USN-5245-1
ReleasePackageFixed inAdvisory
Red Hat Ocp Tools 4 jenkins 2.387.1.1683009763-3.el8 RHSA-2024:0778, RHSA-2024:0776, RHSA-2023:3198
Red Hat Ocp Tools 4 jenkins-2-plugins 4.11.1683009941-1.el8 RHSA-2024:0778, RHSA-2024:0776, RHSA-2023:3198
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed clojure 1.10.3.855-1.2 openSUSE-SU-2024:10687-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.maven:maven-compat < 3.8.1 3.8.1 GHSA-2f88-5hg8-9x2x
Maven org.apache.maven:maven-core < 3.8.1 3.8.1 GHSA-2f88-5hg8-9x2x

Advisories 8

References