Vulnerability · Published Sep 26, 2024 · Assigned by apache

CVE-2024-47197Maven Archetype Plugin: Maven Archetype integration-test may package local settings into the published artifact, possibly containing credentials

High 7.5

In plain English

A high-severity information exposure in Maven Archetype Plugin from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.8%top 42.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Exposure of Sensitive Information to an Unauthorized Actor, Insecure Storage of Sensitive Information vulnerability in Maven Archetype Plugin. This issue affects Maven Archetype Plugin: from 3.2.1 before 3.3.0. Users are recommended to upgrade to version 3.3.0, which fixes the issue. Archetype integration testing creates a file called ./target/classes/archetype-it/archetype-settings.xml This file contains all the content from the users ~/.m2/settings.xml file, which often contains information they do not want to publish. We expect that on many developer machines, this also contains credentials. When the user runs mvn verify again (without a mvn clean), this file becomes part of the final artifact. If a developer were to publish this into Maven Central or any other remote repository (whether as a release or a snapshot) their credentials would be published without them knowing.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.apache.maven.plugins:maven-archetype-plugin3.3.0GHSA-2qq7-fch2-phqf

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Maven Archetype Plugin 3.2.1 – before 3.3.0

Weakness: CWE-200, CWE-922 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References