NetSight
low3.3

CVE-2026-127095

Ansible-builder: denial of service via super-quadratic regular expression backtracking in ansible-builder requirements parsing

Impact

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.

An attacker can exploit this with local access to the system, without logging in, but a user has to do something, such as open a file or a link. If it succeeds: low risk of outages.

Affected products

VendorProductAffected versions
AnsibleAnsible-builder
from 3.1.0 through 3.2.0
Version 3.1.0 ≤3.2.0
Red HatRed Hat Ansible Automation Platform 2
All versions

Weakness classification

References