CVE-2026-127095
Awaiting Analysis Awaiting Analysis - Queue

ReDoS in Ansible Builder via Malicious requirements.txt

Vulnerability report for CVE-2026-127095, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-18

Last updated on: 2026-11-18

Assigner: redhat-SADP

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-18
Last Modified
2026-11-18
Generated
2026-11-19
AI Q&A
2026-11-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
Red Hat Red Hat Ansible Automation Platform 2 *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1333 The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a denial of service issue in ansible-builder caused by a flawed regular expression. It occurs when processing a requirements.txt file with a line containing long internal whitespace and no comment character. The regex used to strip comments enters super-quadratic backtracking, consuming CPU time proportional to the square of the line length. This causes the build or introspect process to hang.

Detection Guidance

Detect this vulnerability by reviewing requirements.txt files in collections for lines with long sequences of internal whitespace without comment characters. Use commands like grep to search for such patterns in requirements files.

Impact Analysis

An attacker could exploit this by providing a malicious collection. If you build an execution environment using this collection, the ansible-builder process may hang, disrupting your workflow. The impact is limited to build-time operations and does not affect runtime services or data.

Compliance Impact

This vulnerability does not directly impact compliance with GDPR, HIPAA, or similar regulations. It only causes temporary service disruption during build processes and does not involve unauthorized data access or modification. Compliance risks would arise only if the denial of service affects critical systems handling regulated data.

Mitigation Strategies

Build execution environments only from trusted collection sources. Review requirements.txt files from untrusted collections before running ansible-builder build or introspect. Avoid using collections with suspicious requirements files.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-127095. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...