{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.maven.plugins:maven-archetype-plugin. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-47197 in the wild and no public exploit code.","fix":"Upgrade org.apache.maven.plugins:maven-archetype-plugin to 3.3.0 or later.","what":"CVE-2024-47197 is a high-severity vulnerability in Apache Software Foundation Maven Archetype Plugin, published on 26 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-47197 and fix it if it is affected.\n\nWhat it is: CVE-2024-47197 is a high-severity vulnerability in Apache Software Foundation Maven Archetype Plugin, published on 26 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-47197 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.maven.plugins:maven-archetype-plugin (Maven): affected from 3.2.1; fixed in 3.3.0\n- org.apache.maven.plugins:maven-archetype-plugin (Maven): affected from 3.2.1; fixed in 3.3.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-47197/ (Markdown: https://insights.sbomify.com/CVE-2024-47197/index.md)","id":"CVE-2024-47197","markdown":"https://insights.sbomify.com/CVE-2024-47197/index.md","name":"CVE-2024-47197","record":{"aliases":["GHSA-2qq7-fch2-phqf","openSUSE-SU-2024:14372-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Maven Archetype Plugin","requires_auth":"none","summary":"Developers using Maven Archetype Plugin may inadvertently publish local credentials to remote repositories due to insecure storage of settings during integration tests.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"maven_archetype","vendor":"apache"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-922","name":"Insecure Storage of Sensitive Information"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"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\nthe final artifact.\n\nIf a developer were to publish this into Maven Central or any other remote repository (whether as a release\nor a snapshot) their credentials would be published without them knowing.","ecosystems":["Maven","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Maven Archetype Plugin: Maven Archetype integration-test may package local settings into the published artifact, possibly containing credentials","id":"CVE-2024-47197","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"Apache OFBiz: URLs allowing remote use of Groovy expressions, leading to RCE","id":"CVE-2024-47208"},"packages":[{"ecosystem":"Maven","fixed":["3.3.0"],"introduced":["3.2.1"],"last_affected":[],"package":"org.apache.maven.plugins:maven-archetype-plugin","purl":null,"source":"GHSA-2qq7-fch2-phqf"},{"ecosystem":"Maven","fixed":["3.3.0"],"introduced":["3.2.1"],"last_affected":[],"package":"org.apache.maven.plugins:maven-archetype-plugin","purl":"pkg:maven/org.apache.maven.plugins/maven-archetype-plugin","source":"GHSA-2qq7-fch2-phqf"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.3.0-1.1"],"introduced":["0"],"last_affected":[],"package":"maven-archetype","purl":"pkg:rpm/opensuse/maven-archetype\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14372-1"}],"prev":{"headline":"Path traversal in ModelSim","id":"CVE-2024-47196"},"products":["Maven Archetype Plugin"],"published":"2024-09-26","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-17","vendors":["Apache Software Foundation"]},"summary":"Developers using Maven Archetype Plugin may inadvertently publish local credentials to remote repositories due to insecure storage of settings during integration tests.","url":"https://insights.sbomify.com/CVE-2024-47197/"}