A flaw was found in ansible-builder. The regular expression used to strip comments from a...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| ansibleansible-builder |
3.1.0 – 3.2.0→ Not listed |
Not listed |
| Red HatRed Hat Ansible Automation Platform 2 | — | Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- web access.redhat.com
- web bugzilla.redhat.com
- web nvd.nist.gov
- web github.com