Vscode-ansible: denial of service via quadratic documentation-regex scanning in the ansible language server
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — |
| Red Hat | Red Hat Ansible Automation Platform 2 | affected | — |
No data.
No data.
No data available yet.
Vendor Workaround
Open and index only workspaces and Ansible collections obtained from trusted sources.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
No EPSS score available.
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| Description | A denial-of-service flaw was found in the Ansible language server shipped with the vscode-ansible extension. The docsRegex regular expression in docsParser.ts, used when indexing module documentation, exhibits super-linear (quadratic) scanning on a crafted documentation string within a module file. When a developer opens or indexes a workspace containing an attacker-supplied Ansible collection, the single-threaded language server saturates its event loop and editor language features (completion, hover, diagnostics) freeze until the language service is restarted. This is developer-workstation tooling with no confidentiality or integrity impact. | A flaw was found in the Ansible language server shipped with the vscode-ansible extension. The regular expression used to extract documentation fragments from Ansible module files is susceptible to quadratic-time scanning. A module file containing a crafted documentation string causes the language server to consume excessive CPU while indexing it, freezing the language service in the developer's editor. An attacker who can get a developer to open or index a workspace containing an attacker-supplied collection can cause a denial of service of the editor language features. This issue has no confidentiality or integrity impact. |
| Title | Vscode-ansible: denial of service via quadratic documentation-regex scanning in the ansible language server | |
| First Time appeared |
Redhat
Redhat ansible Automation Platform |
|
| CPEs | cpe:/a:redhat:ansible_automation_platform:2 | |
| Vendors & Products |
Redhat
Redhat ansible Automation Platform |
|
| References |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | A denial-of-service flaw was found in the Ansible language server shipped with the vscode-ansible extension. The docsRegex regular expression in docsParser.ts, used when indexing module documentation, exhibits super-linear (quadratic) scanning on a crafted documentation string within a module file. When a developer opens or indexes a workspace containing an attacker-supplied Ansible collection, the single-threaded language server saturates its event loop and editor language features (completion, hover, diagnostics) freeze until the language service is restarted. This is developer-workstation tooling with no confidentiality or integrity impact. | |
| Weaknesses | CWE-1333 | |
| References |
| |
| Metrics |
cvssV3_1
|