Path Traversal in Ansible
Red Hat Ansible
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ansible PyPI |
|
|
Red Hat Ansible
| Product | Affected | Fixed in |
|---|---|---|
| ansible PyPI |
|
|
A flaw was found in Ansible 2.7.17 and prior, 2.8.9 and prior, and 2.9.6 and prior when using the Extract-Zip function from the win_unzip module as the extracted file(s) are not checked if they belong to the destination folder. An attacker could take advantage of this flaw by crafting an archive anywhere in the file system, using a path traversal. This issue is fixed in 2.10.
From the CVE record · redhat
The win_unzip module’s Extract-Zip function does not check whether extracted files remain inside the destination folder. If it processes a crafted archive, an attacker can use path traversal to extract files elsewhere in the file system. The input does not specify whether exploitation requires authentication or other user interaction.
Engineers running the PyPI ansible package should check installations below 2.7.17, from 2.8.0a1 to before 2.8.9, or from 2.9.0a1 to before 2.9.6.