CVE-2026-127095

Description

A flaw was found in ansible-builder. The regular expression used to strip comments from a collection's requirements.txt during introspection is susceptible to super-quadratic backtracking. A requirements file containing a line with a long run of internal whitespace and no comment character causes the comment-stripping routine to consume CPU time proportional to the square of the line length. An attacker who can get a victim to build an execution environment that includes an attacker-supplied collection can cause the ansible-builder build or introspect process to hang, resulting in a denial of service. This issue has no confidentiality or integrity impact.

Statement

This flaw is rated as having a Low security impact. The affected regular expression is reached only during ansible-builder build or introspect operations, which are build-time developer and CI actions rather than always-on runtime services, and the impact is limited to a transient denial of service of that process with no confidentiality or integrity impact. Exploitation further requires the user to incorporate an attacker-supplied collection into the build. Because of the Low impact, a fix for affected Red Hat Ansible Automation Platform streams may not be provided; the issue will be addressed upstream.

Mitigation

Build execution environments only from trusted collection sources. Review the contents of requirements.txt files from untrusted or third-party collections before running ansible-builder build or introspect.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score3.3N/A3.3
Attack VectorLocalN/ALocal
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionRequiredN/ARequired
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/ANone
Integrity ImpactNoneN/ANone
Availability ImpactLowN/ALow

Vector

Red Hat: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

cve.org: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Understanding the Weakness (CWE)

Availability

Technical Impact: DoS: Resource Consumption (CPU)

Attackers can create crafted inputs that intentionally cause the regular expression to use excessive backtracking in a way that causes the CPU consumption to spike.

Acknowledgements

Red Hat would like to thank Jiawei Guo for reporting this issue.

Frequently Asked Questions

Want to get errata notifications? Sign up here.