Every CVE Search/ Get API key

CVE-2021-26291

block repositories using http by default

9.1 CriticalPublic exploitFix available

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

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
None

Exploit likelihood

8.69%Up 7.4 points since Apr 27, 2021
90%50%10%1%

What each source reports

NVD Score used 9.1

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

Record
CVE-2021-26291
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS 2.0
6.4 MediumAV:N/AC:L/Au:N/C:P/I:P/A:N
Weakness
CWE-346
Updated
2026-11-02
CVE List No score

block repositories using http by default

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

Record
CVE-2021-26291
Updated
2026-11-02
EUVDEUVD-2021-1241 No score

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

Record
EUVD-2021-1241
Updated
2026-11-03
GitHub AdvisoriesGHSA-2f88-5hg8-9x2x 9.1

Origin Validation Error in Apache Maven

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

Record
GHSA-2f88-5hg8-9x2x
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-346
Updated
2026-11-02
OSVBELL-CVE-2021-26291 9.1

CVE-2021-26291 does not affect BellSoft software

Record
BELL-CVE-2021-26291
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
OSV 9.1

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

Record
CVE-2021-26291
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
Show 13 moreShow less
OSVDEBIAN-CVE-2021-26291 9.1

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

Record
DEBIAN-CVE-2021-26291
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
OSVGHSA-2f88-5hg8-9x2x 9.1

Origin Validation Error in Apache Maven

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

Record
GHSA-2f88-5hg8-9x2x
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-346
Updated
2026-11-02
OSVOESA-2021-1276 6.1

maven security update

Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

Security Fix(es):

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(CVE-2021-26291)

Record
OESA-2021-1276
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVRHSA-2023:3198 9.9

Red Hat Security Advisory: jenkins and jenkins-2-plugins security update

Record
RHSA-2023:3198
CVSS 3.1
9.9 CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2024:0776 9.8

Red Hat Security Advisory: jenkins and jenkins-2-plugins security update

Record
RHSA-2024:0776
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2024:0778 9.8

Red Hat Security Advisory: Jenkins and Jenkins-2-plugins security update

Record
RHSA-2024:0778
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-26291 9.1

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

Record
UBUNTU-CVE-2021-26291
CVSS 3.1
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Updated
2026-11-02
OSVBIT-maven-2021-26291 No score

block repositories using http by default

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

Record
BIT-maven-2021-26291
Updated
2026-11-02
OSVCLSA-2026-1786433114 No score

maven: Fix of CVE-2021-26291

  • CVE-2021-26291: block external HTTP repositories by default (MNG-7116, MNG-7117, MNG-7118, MNG-7128)
Record
CLSA-2026-1786433114
Updated
2026-11-02
OSVMGASA-2023-0230 No score

Updated maven packages fix security vulnerability

No longer use http (non-SSL) repository references by default.

Record
MGASA-2023-0230
Updated
2026-11-02
OSVopenSUSE-SU-2024:10687-1 No score

clojure-1.10.3.855-1.2 on GA media

These are all security issues fixed in the clojure-1.10.3.855-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10687-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:11042-1 No score

maven-3.8.1-2.3 on GA media

These are all security issues fixed in the maven-3.8.1-2.3 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11042-1
Updated
2026-11-02
OSVUSN-5245-1 No score

maven vulnerability

It was discovered that Apache Maven followed repositories that are defined in a dependency's Project Object Model (pom) even if the repositories weren't encrypted (http protocol). An attacker could use this vulnerability to take over a repository, execute arbitrary code or cause a denial of service.

Record
USN-5245-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.apache.maven:maven-compat
Maven
before 3.8.1
3.8.1
org.apache.maven:maven-core
Maven
before 3.8.1
3.8.1
maven
Bitnami
before 3.8.1
3.8.1
maven
TuxCare:AlmaLinux:9.2
before 1:3.6.3-15.el9_2.tuxcare.els1
1:3.6.3-15.el9_2.tuxcare.els1
maven-javadoc
TuxCare:AlmaLinux:9.2
before 1:3.6.3-15.el9_2.tuxcare.els1
1:3.6.3-15.el9_2.tuxcare.els1
maven-lib
TuxCare:AlmaLinux:9.2
before 1:3.6.3-15.el9_2.tuxcare.els1
1:3.6.3-15.el9_2.tuxcare.els1
maven-openjdk11
TuxCare:AlmaLinux:9.2
before 1:3.6.3-15.el9_2.tuxcare.els1
1:3.6.3-15.el9_2.tuxcare.els1
maven-openjdk17
TuxCare:AlmaLinux:9.2
before 1:3.6.3-15.el9_2.tuxcare.els1
1:3.6.3-15.el9_2.tuxcare.els1
maven-openjdk8
TuxCare:AlmaLinux:9.2
before 1:3.6.3-15.el9_2.tuxcare.els1
1:3.6.3-15.el9_2.tuxcare.els1
maven
Debian:12
before 3.8.6-1
3.8.6-1
Show 19 moreShow less
Affected packages
PackageAffectedFixed
maven
Debian:13
before 3.8.6-1
3.8.6-1
maven
Debian:14
before 3.8.6-1
3.8.6-1
org.apache.maven:maven-compat
Maven
before 3.8.1, plus listed versions
2.2.02.2.13.03.0-alpha-13.0-alpha-2
Show 33 moreShow less
3.0-alpha-33.0-alpha-43.0-alpha-53.0-alpha-63.0-alpha-73.0-beta-13.0-beta-23.0-beta-33.0.13.0.23.0.33.0.43.0.53.1.03.1.0-alpha-13.1.13.2.13.2.23.2.33.2.53.3.13.3.33.3.93.5.03.5.0-alpha-13.5.0-beta-13.5.23.5.33.5.43.6.03.6.13.6.23.6.3
3.8.1
org.apache.maven:maven-core
Maven
before 3.8.1, plus listed versions
2.02.0-alpha-12.0-alpha-22.0-alpha-32.0-beta-1
Show 45 moreShow less
2.0-beta-22.0-beta-32.0.12.0.102.0.112.0.22.0.32.0.42.0.52.0.62.0.72.0.82.0.92.1.02.1.0-M12.2.02.2.13.03.0-alpha-13.0-alpha-23.0-alpha-33.0-alpha-43.0-alpha-53.0-alpha-63.0-alpha-73.0-beta-13.0-beta-23.0-beta-33.0.13.0.23.0.33.0.43.0.53.1.03.1.0-alpha-13.1.13.2.13.2.23.2.33.2.53.3.13.3.33.3.93.5.03.5.0-alpha-1
3.8.1
maven
Mageia:8
before 3.6.3-8.1.mga8
3.6.3-8.1.mga8
maven
openEuler:20.03-LTS-SP1
before 3.5.4-9.oe1
3.5.4-9.oe1
maven
openEuler:20.03-LTS-SP2
before 3.5.4-9.oe1
3.5.4-9.oe1
jenkins-2-plugins
Red Hat:ocp_tools:4.11::el8
before 0:4.11.1683009941-1.el8
0:4.11.1683009941-1.el8
jenkins
Red Hat:ocp_tools:4.11::el8
before 0:2.387.1.1683009763-3.el8
0:2.387.1.1683009763-3.el8
jenkins-2-plugins
Red Hat:ocp_tools:4.13::el8
before 0:4.13.1706516346-1.el8
0:4.13.1706516346-1.el8
jenkins
Red Hat:ocp_tools:4.13::el8
before 0:2.426.3.1706516254-3.el8
0:2.426.3.1706516254-3.el8
jenkins-2-plugins
Red Hat:ocp_tools:4.12::el8
before 0:4.12.1706515741-1.el8
0:4.12.1706515741-1.el8
jenkins
Red Hat:ocp_tools:4.12::el8
before 0:2.426.3.1706515686-3.el8
0:2.426.3.1706515686-3.el8
maven
Ubuntu:14.04:LTS
All versions, plus listed versions
3.0.4-63.0.5-1
None known
maven
Ubuntu:Pro:16.04:LTS
before 3.3.9-3ubuntu0.1~esm1, plus listed versions
3.3.3-33.3.3-43.3.9-13.3.9-23.3.9-3
3.3.9-3ubuntu0.1~esm1
maven
Ubuntu:Pro:18.04:LTS
before 3.6.0-1~18.04.1ubuntu0.1~esm1, plus listed versions
3.5.0-63.5.0-83.5.2-13.5.2-23.6.0-1~18.04.1
3.6.0-1~18.04.1ubuntu0.1~esm1
maven
Ubuntu:Pro:20.04:LTS
before 3.6.3-1ubuntu0.1~esm1, plus listed versions
3.6.1-13.6.2-13.6.3-1
3.6.3-1ubuntu0.1~esm1
maven
Ubuntu:Pro:22.04:LTS
before 3.6.3-5ubuntu0.1~esm1, plus listed versions
3.6.3-5
3.6.3-5ubuntu0.1~esm1
clojure
openSUSE:Tumbleweed
before 1.10.3.855-1.2
1.10.3.855-1.2

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubjpmartins/MinimalReproducer2025-02-19

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-26291 is a critical vulnerability (CVSS 9.1) in Apache Maven, published April 23, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 8.69%, the 95th percentile. Fixed in org.apache.maven:maven-compat 3.8.1.

References

Show 194 moreShow less
This page doesn't list everything

Left out here: 8 versions and 135 references. The JSON record has them.

MoveEnter Open