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