ghsa-2qq7-fch2-phqf
Vulnerability from github
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": [ { "package": { "ecosystem": "Maven", "name": "org.apache.maven.plugins:maven-archetype-plugin" }, "ranges": [ { "events": [ { "introduced": "3.2.1" }, { "fixed": "3.3.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-47197" ], "database_specific": { "cwe_ids": [ "CWE-200", "CWE-922" ], "github_reviewed": true, "github_reviewed_at": "2024-09-26T18:25:13Z", "nvd_published_at": "2024-09-26T08:15:06Z", "severity": "LOW" }, "details": "Exposure of Sensitive Information to an Unauthorized Actor, Insecure Storage of Sensitive Information vulnerability in Maven Archetype Plugin.\n\nThis issue affects Maven Archetype Plugin: from 3.2.1 before 3.3.0.\n\nUsers are recommended to upgrade to version 3.3.0, which fixes the issue.\n\nArchetype integration testing creates a file\ncalled ./target/classes/archetype-it/archetype-settings.xml\nThis file contains all the content from the users ~/.m2/settings.xml file,\nwhich often contains information they do not want to publish. We expect that on many developer machines, this also contains\ncredentials.\n\nWhen the user runs mvn verify again (without a mvn clean), this file becomes part of the final artifact.\n\nIf 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.", "id": "GHSA-2qq7-fch2-phqf", "modified": "2025-03-17T21:32:40Z", "published": "2024-09-26T09:31:42Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-47197" }, { "type": "WEB", "url": "https://github.com/apache/maven-archetype/pull/188" }, { "type": "WEB", "url": "https://github.com/apache/maven-archetype/commit/484b6ab946f0d7ce557a3df28615d8c51e500054" }, { "type": "PACKAGE", "url": "https://github.com/apache/maven-archetype" }, { "type": "WEB", "url": "https://issues.apache.org/jira/browse/ARCHETYPE-657" }, { "type": "WEB", "url": "https://lists.apache.org/thread/ftg81np183wnyk0kg4ks95dvgxdrof96" }, { "type": "WEB", "url": "http://www.openwall.com/lists/oss-security/2024/09/26/2" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N", "type": "CVSS_V3" }, { "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N", "type": "CVSS_V4" } ], "summary": "Maven Archetype Plugin: Maven Archetype integration-test may package local settings into the published artifact, possibly containing credentials" }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.