{"id":"GHSA-2qq7-fch2-phqf","summary":"Maven Archetype Plugin: Maven Archetype integration-test may package local settings into the published artifact, possibly containing credentials","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.","aliases":["CVE-2024-47197"],"modified":"2025-03-17T21:35:01.474684Z","published":"2024-09-26T09:31:42Z","database_specific":{"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2024-09-26T18:25:13Z","nvd_published_at":"2024-09-26T08:15:06Z","cwe_ids":["CWE-200","CWE-922"]},"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"}],"affected":[{"package":{"name":"org.apache.maven.plugins:maven-archetype-plugin","ecosystem":"Maven","purl":"pkg:maven/org.apache.maven.plugins/maven-archetype-plugin"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.1"},{"fixed":"3.3.0"}]}],"versions":["3.2.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/09/GHSA-2qq7-fch2-phqf/GHSA-2qq7-fch2-phqf.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N"},{"type":"CVSS_V4","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"}]}