CVE-2024-47197 json
Maven Archetype Plugin: Maven Archetype integration-test may package local settings into the published artifact, possibly containing credentials
published 2024-09-26 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-2695 , GHSA-2qq7-fch2-phqf
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.maven.plugins:maven-archetype-plugin 3.3.0
- Apache Software Foundation Maven Archetype Plugin 3.3.0
- maven-archetype openSUSE Tumbleweed 3.3.0-1.1
opensuse advisories openSUSE-SU-2024:14372-1
- github.com/apache/maven-archetype@484b6ab commit
- github.com/apache/maven-archetype#188 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-47197 updated cvss 4.0
maven-archetype-plugin: Exposure of Sensitive Information
-
Red Hat A-MQ Clients 2 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat Migration Toolkit for Runtimes maven-archetype-plugin Red Hat OpenShift Serverless org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat AMQ Clients org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat build of Apache Camel for Spring Boot 3 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat build of Apache Camel for Spring Boot 4 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-pluginaffected: no fix available “Fix deferred”
+11 more productsfewer
Red Hat Build of Keycloak org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat build of OptaPlanner 8 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat build of Quarkus org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat Data Grid 8 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat Fuse 7 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat Integration Camel K 1 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat JBoss Data Grid 7 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat JBoss Enterprise Application Platform 7 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat JBoss Enterprise Application Platform 8 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat JBoss Enterprise Application Platform Expansion Pack org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin Red Hat Process Automation 7 org.apache.maven.plugins/maven-archetype-plugin org.apache.maven.plugins/maven-archetype-plugin
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
0.84% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.maven.plugins:maven-archetype-plugin | >=3.2.1, <3.3.0 |
3.3.0 |
Affected products
- Apache Software Foundation Maven Archetype Plugin
Classification
References
-
github.com
/apache/maven-archetype/pull/188
web
-
github.com
/apache/maven-archetype/commit/484b6ab946f0d7ce557a3df28615d8c51e500054
web
-
lists.apache.org
/thread/ftg81np183wnyk0kg4ks95dvgxdrof96
vendor-advisory, web, mailing-list
-
openwall.com
/lists/oss-security/2024/09/26/2
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-47197
advisory
-
github.com
/apache/maven-archetype
package
-
issues.apache.org
/jira/browse/ARCHETYPE-657
web
Sources
- CVE List CVE-2024-47197
- GitHub Advisory GHSA-2qq7-fch2-phqf
- NVD CVE-2024-47197
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.