Commons ConfigurationApplication · Apache

CVE-2025-46392

MEDIUM · 6.5 CVSS v3.1 Published 2025-05-09
Fix available
A fix is available. Upgrade to 2.0 or later.
See remediation →
71/100
Remediation priority · Elevated
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Uncontrolled Resource Consumption vulnerability in Apache Commons Configuration 1.x. There are a number of issues in Apache Commons Configuration 1.x that allow excessive resource consumption when loading untrusted configurations or using unexpected usage patterns. The Apache Commons Configuration team does not intend to fix these issues in 1.x. Apache Commons Configuration 1.x is still safe to use in scenario's where you only load trusted configurations. Users that load untrusted configurations or give attackers control over usage patterns are recommended to upgrade to the 2.x version line, which fixes these issues. Apache Commons Configuration 2.x is not a drop-in replacement, but as it uses a separate Maven groupId and Java package namespace they can be loaded side-by-side, making it possible to do a gradual migration.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Apache Commons Configuration 1.x contains uncontrolled resource consumption vulnerabilities that allow excessive resource usage when loading untrusted configurations or using unexpected usage patterns. This is a denial-of-service style vulnerability that the maintainers have explicitly declined to fix in the 1.x branch.

MitigationUpgrade to Apache Commons Configuration 2.x, which uses a separate Maven groupId and Java package namespace, allowing side-by-side deployment for gradual migration. Only load trusted configurations until the upgrade is complete.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Commons ConfigurationApplication
Affected:>= 1.0, < 2.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Apache Commons Configuration version in dependencies
    Inspect your project's build configuration (pom.xml, build.gradle) or the application's classpath for the commons-configuration library. Check if the version falls in the 1.x range (1.0 through 1.x). Use 'mvn dependency:tree' or examine META-INF/MANIFEST.MF in jar files.
    Affected if The application depends on commons-configuration version 1.x (1.0 through 1.x inclusive)
  2. Identify configuration loading sources
    Search the codebase for calls that load configurations - look for XMLConfiguration, PropertiesConfiguration, JSONConfiguration, ConfigurationFactory, or ConfigurationBuilder implementations. Check for file loading, URL loading, or stream-based configuration initialization.
    Affected if The application loads configurations from external or untrusted sources such as user-specified file paths, remote URLs, or unvalidated input streams
  3. Review configuration file structure for recursive patterns
    Examine the configuration files being loaded. Look for include directives, variable interpolation with JNDI or system property lookups, CombinedConfiguration with multiple sources, or deep nesting that could trigger unbounded recursion during loading.
    Affected if Configuration files contain include statements, recursive variable interpolation, or composite configuration layers that could exhaust resources during parsing

You are affected if Apache Commons Configuration 1.x is present AND configurations are loaded from untrusted sources or use complex nested variable interpolation patterns

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 2.0 or later
Fixed in 2.0
Interim mitigation

Upgrade to Apache Commons Configuration 2.x, which uses a separate Maven groupId and Java package namespace, allowing side-by-side deployment for gradual migration. Only load trusted configurations until the upgrade is complete.

Recommended fix High confidence

Apache Commons Configuration 2.x (any 2.x release)

  1. 1. Identify all Maven dependencies or build configurations that reference Apache Commons Configuration 1.x (org.apache.commons:commons-configuration or similar)
  2. 2. Update the Maven dependency to use Commons Configuration 2.x by changing the groupId to org.apache.commons:commons-configuration2
  3. 3. Update all Java import statements from org.apache.commons.configuration.* to org.apache.commons.configuration2.* in your source code
  4. 4. Review API differences between 1.x and 2.x as they are not drop-in compatible
  5. 5. Test the application thoroughly after migration to ensure configuration loading still works as expected
Caveat 2.x uses a different Maven groupId (org.apache.commons:commons-configuration2) and Java package namespace (org.apache.commons.configuration2), requires code changes

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Commons Configuration Scoped from the published advisory
  • Consultation6.0 h
  • Implementation12.0 h
  • Testing6.0 h
  • Review / QA3.0 h
27.0 hours of engineering $4,800
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,680.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-46392 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-46392 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data