cve.bz

CVE-2021-26291 Origin Validation Error

9.1 criticalExploit referenceEPSS 8.7%Fix available

Critical (9.1). EPSS 8.7% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.maven:maven-compat 3.8.1.

On this page
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

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
8.7% (unchanged from 8.7% a week ago; 8.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-346 Origin Validation Error
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-26291 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-26291?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-26291?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-26291 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Mavenfrom Apache Maven through 3.8.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2f88-5hg8-9x2xMavenorg.apache.maven:maven-compat<3.8.13.8.1
GHSA-2f88-5hg8-9x2xMavenorg.apache.maven:maven-core<3.8.13.8.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14maven3.8.6-1DEBIAN-CVE-2021-26291
Ubuntu14.04:LTSmavenno fix listedUBUNTU-CVE-2021-26291
UbuntuPro:16.04:LTSmaven3.3.9-3ubuntu0.1~esm1UBUNTU-CVE-2021-26291 USN-5245-1
UbuntuPro:18.04:LTSmaven3.6.0-1~18.04.1ubuntu0.1~esm1UBUNTU-CVE-2021-26291 USN-5245-1
UbuntuPro:20.04:LTSmaven3.6.3-1ubuntu0.1~esm1UBUNTU-CVE-2021-26291 USN-5245-1
UbuntuPro:22.04:LTSmaven3.6.3-5ubuntu0.1~esm1UBUNTU-CVE-2021-26291 USN-5245-1
Red Hatocp_tools:4.11::el8jenkins0:2.387.1.1683009763-3.el8RHSA-2023:3198
Red Hatocp_tools:4.11::el8jenkins-2-plugins0:4.11.1683009941-1.el8RHSA-2023:3198
Red Hatocp_tools:4.12::el8jenkins0:2.426.3.1706515686-3.el8RHSA-2024:0778
Red Hatocp_tools:4.12::el8jenkins-2-plugins0:4.12.1706515741-1.el8RHSA-2024:0778
Red Hatocp_tools:4.13::el8jenkins0:2.426.3.1706516254-3.el8RHSA-2024:0776
Red Hatocp_tools:4.13::el8jenkins-2-plugins0:4.13.1706516346-1.el8RHSA-2024:0776
openSUSETumbleweedclojure1.10.3.855-1.2openSUSE-SU-2024:10687-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

To avoid possible man-in-the-middle related attacks with this flaw, ensure any linked repositories in maven POMs use https and not http.

ProductPackageStateAdvisory
OCP-Tools-4.12-RHEL-8jenkins-2-plugins-0:4.12.1706515741-1.el8Fixed 2024-02-12RHSA-2024:0778
OCP-Tools-4.13-RHEL-8jenkins-2-plugins-0:4.13.1706516346-1.el8Fixed 2024-02-12RHSA-2024:0776
OpenShift Developer Tools and Services for OCP 4.11jenkins-2-plugins-0:4.11.1683009941-1.el8Fixed 2023-05-17RHSA-2023:3198
Red Hat build of Quarkus 2.2.3maven-wrapperFixed 2021-10-20RHSA-2021:3880
RHINT Camel-K 1.6.4maven-coreFixed 2022-03-23RHSA-2022:1029
RHINT Camel-Q 2.2.1Fixed 2022-03-22RHSA-2022:1013
RHPAM 7.13.1 asyncrhpam-7-businesscentral-rhel8-containerFixed 2023-03-20RHSA-2023:1334
Red Hat build of OpenJDK 11openjdk-11-rhel7-containerWill not fix
Red Hat build of OpenJDK 11openjdk-11-ubi8-containerAffected
Red Hat build of OpenJDK 1.8openjdk-8-ubi8-containerAffected
Red Hat build of OpenJDK 1.8redhat-openjdk-18-openjdk18-openshiftWill not fix
Red Hat Enterprise Linux 8javapackages-tools:201801/mavenWill not fix
Red Hat Enterprise Linux 8maven:3.5/mavenWill not fix
Red Hat Enterprise Linux 8maven:3.6/mavenWill not fix
Red Hat Enterprise Linux 9mavenWill not fix
Red Hat Fuse 7fuse-eap-openshift-containerAffected
Red Hat Fuse 7fuse-ignite-meta-containerAffected
Red Hat Fuse 7fuse-ignite-s2i-containerAffected
Red Hat Fuse 7fuse-ignite-server-containerAffected
Red Hat Fuse 7fuse-java-openshift-containerAffected
13 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-26291.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-346 (16).

References

Check your stackJSON