CVE-2026-130644
Description
A path traversal flaw was found in ansible-core. When installing a collection with ansible-galaxy collection install, the install destination directory is derived from the namespace and name fields declared inside the collection artifact's own metadata, which are not validated as well-formed collection identifiers or checked for path containment. A malicious collection artifact -- delivered as a local file, a remote URL, a source directory, a git repository, or as a dependency -- can use a crafted name value to redirect the install destination outside the configured collections path, causing ansible-galaxy to delete an existing directory writable by the invoking user and then write attacker-controlled files to that location.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-130644 NameCVE-2026-130644 DescriptionA path traversal flaw was found in ansible-core. When installing a collection with ansible-galaxy collection install, the install destination directory is derived from the namespace and name fields declared inside the collection artifact's own metadata, which are not validated as well-formed collection identifiers or checked for path containment. A…
CVE-2026-130644
| Name | CVE-2026-130644 |
| Description | A path traversal flaw was found in ansible-core. When installing a collection with ansible-galaxy collection install, the install destination directory is derived from the namespace and name fields declared inside the collection artifact's own metadata, which are not validated as well-formed collection identifiers or checked for path containment. A malicious collection artifact -- delivered as a local file, a remote URL, a source directory, a git repository, or as a dependency -- can use a crafted name value to redirect the install destination outside the configured collections path, causing ansible-galaxy to delete an existing directory writable by the invoking user and then write attacker-controlled files to that location. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| ansible-core (PTS) | bookworm | 2.14.18-0+deb12u2 | vulnerable |
| trixie | 2.19.11-0+deb13u1 | vulnerable | |
| forky, sid | 2.22.0-1 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| ansible-core | source | (unstable) | (unfixed) |
Notes
https://bugzilla.redhat.com/show_bug.cgi?id=2574391
Apply commands
https://bugzilla.redhat.com/show_bug.cgi?id=2574391
OS impact
Azure Linux Affected 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| 3.0 | — | Affected | — |
Debian Affected 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | ansible-core |
Affected | — |
| sid | ansible-core |
Affected | — |
| forky | ansible-core |
Affected | — |
| bookworm | ansible-core |
Affected | — |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
References
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.