CVE-2026-45205

Apache Commons Configuration: StackOverflowError for YAML input with cycles

Published May 14, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is an uncontrolled recursion that causes a StackOverflowError when Apache Commons Configuration processes YAML files containing cyclic references. The flaw results in an application crash, which can lead to denial of service. The weakness aligns with CWE‑674, indicating an infinite recursion bug.

Affected Systems

Apache Software Foundation’s Apache Commons Configuration library versions earlier than 2.15.0 are impacted. This includes all releases from 2.2 up to just before 2.15.0. Systems that load or parse untrusted YAML configuration files using these versions are vulnerable.

Risk and Exploitability

The flaw has no publicly disclosed exploitation code, but an attacker can trigger it simply by supplying a crafted YAML document with cyclic references. Because the error propagates to a stack overflow, the impact is a crash of the process hosting the library, potentially leading to service unavailability. The CVSS score of 5.3 indicates medium severity, and the EPSS score is less than 1 %, reflecting low likelihood of exploitation. The vulnerability is not listed in CISA KEV, and the lack of a bound to a particular remote execution means the risk is primarily availability-focused. Prior to the update, any component that reads untrusted configuration files is at risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official patch by upgrading to Apache Commons Configuration 2.15.0
  • Restrict the source of YAML configuration files to trusted administrators and enforce strict input validation to reject cyclic references
  • Re‑architect configuration handling so that configuration files are processed by a dedicated secure service with limited exposure

Generated by OpenCVE AI on May 14, 2026 at 17:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-337m-mw94-2v6g Apache Commons Configuration: StackOverflowError for YAML input with cycles
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:commons_configuration:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache commons Configuration
Vendors & Products Apache
Apache commons Configuration
Type Values Removed Values Added
Description 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.
Title Apache Commons Configuration: StackOverflowError for YAML input with cycles
Weaknesses CWE-674
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
May 14, 2026, 8:31 PM
Reserved
May 11, 2026, 1:16 PM
Status
Analyzed
Published
May 14, 2026, 12:16 PM
Modified
Oct 26, 2026, 2:10 PM