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.
Published: 2026-11-18
Score: 3.3 Low
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

Vendor Workaround

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.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 18 Nov 2026 19:45:00 +0000

Type Values Removed Values Added
Description A denial-of-service flaw was found in ansible-builder. The COMMENT_RE regular expression used to strip comments from a collection's requirements.txt during `ansible-builder build` and `ansible-builder introspect` is scanned unanchored and exhibits super-quadratic backtracking on a crafted line containing a long internal run of whitespace. An attacker who gets a developer or CI system to build an execution environment that references an attacker-supplied Ansible collection can cause the ansible-builder process to consume CPU and hang. This is a build-time issue with no confidentiality or integrity impact. The vulnerable regular expression was introduced in version 3.1.0; versions 3.0.x are not affected. 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.
Title Ansible-builder: denial of service via super-quadratic regular expression backtracking in ansible-builder requirements parsing
First Time appeared Redhat
Redhat ansible Automation Platform
CPEs cpe:/a:redhat:ansible_automation_platform:2
Vendors & Products Redhat
Redhat ansible Automation Platform
References

Wed, 18 Nov 2026 19:30:00 +0000

Type Values Removed Values Added
Description A denial-of-service flaw was found in ansible-builder. The COMMENT_RE regular expression used to strip comments from a collection's requirements.txt during `ansible-builder build` and `ansible-builder introspect` is scanned unanchored and exhibits super-quadratic backtracking on a crafted line containing a long internal run of whitespace. An attacker who gets a developer or CI system to build an execution environment that references an attacker-supplied Ansible collection can cause the ansible-builder process to consume CPU and hang. This is a build-time issue with no confidentiality or integrity impact. The vulnerable regular expression was introduced in version 3.1.0; versions 3.0.x are not affected.
Weaknesses CWE-1333
References
Metrics cvssV3_1

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


Subscriptions

Redhat Ansible Automation Platform
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-11-18T19:38:28.553Z

Reserved: 2026-11-12T14:27:58.831Z

Link: CVE-2026-127095

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses