CVE-2026-127095: Low severity pypi/ansible-builder vulnerability

Published Nov 18, 2026
·
Updated

A denial-of-service flaw was found in ansible-builder. The COMMENTRE 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.

Other sources

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.

— NVD

Affected Software

1 affected component
pypi/ansible-builder>=3.1.0

Event History

Nov 18, 2026
CVE Published
via MITRE·07:17 PM
Data Sourced
via MITRE·07:17 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which systems are realistically exposed to this issue?

Developer workstations and CI systems that run `ansible-builder build` or `ansible-builder introspect` on execution environments referencing attacker-supplied Ansible collections are exposed. The impact is limited to the ansible-builder process during build or introspection.

2

What does an attacker need to do to trigger the denial of service?

An attacker needs to cause a developer or CI system to process an attacker-supplied Ansible collection whose requirements.txt contains a crafted line with a long internal run of whitespace. Exploitation requires user interaction because the target must build or introspect the affected collection.

3

Are all ansible-builder versions affected?

No. The vulnerable regular expression was introduced in version 3.1.0, while 3.0.x versions are not affected.

4

What is the impact if exploitation succeeds?

The crafted requirements.txt line can cause super-quadratic regular-expression backtracking, consuming CPU and causing the ansible-builder process to hang. The reported impact is denial of service only, with no confidentiality or integrity impact.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203