QID 375721

Date Published: 2021-08-03

QID 375721: Apache Maven Custom Repositories In Dependency POM Vulnerability

Apache 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.

Apache Maven will follow repositories that are defined in a dependency Project Object Model 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.

Affected Versions:
All Apache Maven versions prior to v3.8.1

QID Detection Logic:(Authenticated)
The QID checks for vulnerable version of Apache Maven with "mvn -v" command.

Successful exploitation of the vulnerability can allow an attacker to execute following attacks:
Possible Man-In-The-Middle-Attack due to custom repositories using HTTP
Possible Domain Hijacking due to custom repositories using abandoned domains
Possible hijacking of downloads by redirecting to custom repositories

  • CVSS V3 rated as Critical - 9.1 severity.
  • CVSS V2 rated as High - 6.4 severity.
  • Solution
    The vendor has released patch and customers are advised to upgrade to Apache Maven 3.8.1 or latest version. For more information please visit: Apache Maven Release Notes
    Vendor References

    CVEs related to QID 375721

    Software Advisories
    Advisory ID Software Component Link
    Apache Maven Release Notes URL Logo maven.apache.org/docs/3.8.1/release-notes.html#cve-2021-26291
    © CVE.report 2026 |

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report