Ansible-builder: denial of service via super-quadratic regular expression backtracking in ansible-builder requirements parsing
- State
- Published
- Severity
- 3.3 Low
- Published
- Nov 18, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 12, 2026
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.
| Product | Versions |
|---|---|
| Red Hat Ansible Automation Platform 2 Red Hat |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 3.3 Low | redhat |
Weaknesses
- CWE-1333 Inefficient Regular Expression Complexity
References
- https://access.redhat.com/security/cve/CVE-2026-127095Vulnerability Database
- RHBZ#2572608Issue Tracker
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.