Skip to main content

Apache Commons Configuration CVE-2026-45205

| EUVDEUVD-2026-30267 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-05-14 apache GHSA-337m-mw94-2v6g
5.3
CVSS 3.1 · Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts cyclic YAML
  2. Delivery
    Injects or uploads YAML to application
  3. Exploit
    Application parses with Commons Config
  4. Execution
    Recursive hierarchy construction triggered
  5. Persist
    Stack overflow on cycle detection
  6. Impact
    Service denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

The vulnerability requires three conditions: (1) The application must use Apache Commons Configuration to parse YAML input (not XML, properties, or other formats the library supports). (2) The YAML input must be untrusted or attacker-controlled (via file upload, API parameter, external data source, or configuration injection). (3) The YAML structure must contain cyclic references-either direct (object references itself) or transitive (object A→B→A through nested maps/collections/aliases). Applications that only parse internal, trusted, administrator-authored YAML configuration files are not at risk. Applications that parse YAML from external sources (user uploads, APIs, databases) or construct YAML dynamically without sanitization are vulnerable. Non-YAML configuration formats (JSON, XML, properties) are not affected, even if processed by the same library, as the vulnerability is specific to the AbstractYAMLBasedConfiguration class.

Impact

This vulnerability presents a low real-world exploitation risk despite the network-accessible CVSS vector. Multiple signals align with this assessment: EPSS of 0.02% (5th percentile) indicates minimal likelihood of widespread exploitation; no KEV listing suggests no confirmed active exploitation in the wild; CVSS 5.3 reflects availability impact only (C:N, I:N, A:L)-no confidentiality or integrity compromise. The attack requires an application to (1) use Commons Configuration to parse YAML, (2) accept untrusted YAML input, and (3) fail to validate or sanitize it-a relatively rare configuration in production systems. The AC:L (low complexity) reflects that crafting a cyclic YAML structure is trivial, but the PR:N/AV:N combination is misleading: the attacker must control the configuration file content, which typically requires either direct file access or a separate file upload/injection vulnerability. Organizations should treat this as a defensive patch opportunity during routine updates rather than an urgent security incident, but applications parsing user-supplied YAML configuration should prioritize patching.

Exploit ScenarioDerived

An application using Commons Configuration exposes a YAML file upload feature for user-supplied configuration. An attacker uploads a malicious YAML file containing a cyclic reference (e.g., a map that references itself or a collection containing itself through nested alias anchors like &ref ... *ref). When the application loads this file, the recursive constructHierarchy() method enters infinite recursion, exhausting the JVM heap/stack and crashing the service, denying legitimate users access. No code execution or data exfiltration occurs.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 14, 2026

Uncontrolled recursion in Apache Commons Configuration 2.2 through 2.14.x allows remote attackers to trigger a denial of service via StackOverflowError when processing YAML configuration files containing cyclic object references. The vulnerability affects any application using the library to parse untrusted YAML input without validation, with CVSS 5.3 (network-accessible, no authentication required) but exceptionally low exploitation probability (EPSS 0.02%, percentile 5%), indicating this is primarily a defensive hardening fix rather than an actively exploited threat.

RemediationAI

Upgrade Apache Commons Configuration to version 2.15.0 or later, which includes the cycle detection fix. The patch adds a visited set to track processed objects and returns an empty node list when a cycle is detected, preventing StackOverflowError. For applications unable to upgrade immediately, implement validation on untrusted YAML configuration files using a YAML parser with depth limits or use a custom LoaderOptions with restrictive settings in SnakeYAML (e.g., setMaxAliasesForCollections() to limit circular references), though this requires code changes and may reject legitimate deeply-nested configs. If YAML configuration is sourced from untrusted users, prefer external file upload restrictions or sandboxed parsing with resource limits (e.g., fork YAML parsing in a thread with a stack-size limit via ThreadGroup). See Apache advisory at https://lists.apache.org/thread/q3q3j10ohcqhs6o0rg1v7kz6kk27vtkk and patch source at https://github.com/apache/commons-configuration/pull/634.

Affected VersionsENISA

Apache Commons Configuration 2.2 <2.15.0

Affected Packages

maven org.apache.commons:commons-configuration2 fix: 2.15.0
euvd apache_commons_configuration fix: 2.15.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Apache Commons Configuration is a Java library for reading configuration files in multiple formats including YAML, XML, and properties. The vulnerability resides in the AbstractYAMLBasedConfiguration.constructHierarchy() method, which recursively processes nested YAML structures (maps and collections) without cycle detection. When a YAML parser (via SnakeYAML) constructs a cyclic object graph-where a container references itself directly or indirectly through nested structures-the recursive hierarchy construction enters infinite recursion, exhausting the JVM stack. The root cause is CWE-674 (Uncontrolled Recursion), not a buffer overflow despite the misleading tag. The fix introduces a visited set using System.identityHashCode() to track already-processed object instances and short-circuit recursion when a cycle is detected.

Know when Apache Commons Configuration gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (apache) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
SUSE MEDIUM
Red Hat 7.5 HIGH

Primary rating from Vendor (apache).

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

3
CVSS changed
May 14, 2026 - 16:22 NVD
5.3 (MEDIUM)
CVE Published
May 14, 2026 - 11:22 nvd
MEDIUM 5.3
CVE Published
May 14, 2026 - 11:22 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

Uncontrolled Recursion vulnerability in Apache Commons.

When processing an untrusted configuration file, Commons Configuration will throw a StackOverflowError for YAML input with cycles. This issue affects Apache Commons: from 2.2 before 2.15.0.

Users are recommended to upgrade to version 2.15.0, which fixes the issue.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Development Tools 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy