PT-2024-32476 · Apache · Maven Archetype Plugin

Niels Basjes

·

Published

2024-09-26

·

Updated

2025-03-17

·

CVE-2024-47197

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Maven Archetype Plugin versions 3.2.1 through 3.2.x Maven Archetype Plugin versions prior to 3.3.0
Description The issue is related to the exposure of sensitive information to unauthorized actors due to insecure storage of sensitive information in the Maven Archetype Plugin. This occurs when archetype integration testing creates a file called ./target/classes/archetype-it/archetype-settings.xml, which contains all the content from the user's ~/.m2/settings.xml file, often including credentials. If a developer publishes this file into Maven Central or any other remote repository without knowing, their credentials would be published.
Recommendations For Maven Archetype Plugin versions 3.2.1 through 3.2.x, upgrade to version 3.3.0, which fixes the issue. For Maven Archetype Plugin versions prior to 3.3.0, upgrade to version 3.3.0, which fixes the issue. As a temporary workaround, consider running mvn clean before mvn verify to avoid including the sensitive file in the final artifact.

Fix

Information Disclosure

Insecure Storage of Sensitive Information

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-47197
GHSA-2QQ7-FCH2-PHQF
OPENSUSE-SU-2024:14372-1

Affected Products

Maven Archetype Plugin