Advisory

GHSA-893h-35v4-mxqx

Also known as: CVE-2020-1737, PYSEC-2020-9

Summary

Path Traversal in Ansible

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-04-20 16:43 UTC
Modified
2024-09-06 18:20 UTC

Affected packages and fixes

ansible

PyPI · All systems

Affected

  • introduced 2.8.0a1, fixed 2.8.9 (ecosystem)

Fixed versions

2.8.9

Fix

  • Fixed version 2.8.9
    pip install --upgrade ansible==2.8.9

ansible

PyPI · All systems

Affected

  • introduced 2.9.0a1, fixed 2.9.6 (ecosystem)

Fixed versions

2.9.6

Fix

  • Fixed version 2.9.6
    pip install --upgrade ansible==2.9.6

ansible

PyPI · All systems

Affected

  • introduced 0, fixed 2.7.17 (ecosystem)

Fixed versions

2.7.17

Fix

  • Fixed version 2.7.17
    pip install --upgrade ansible==2.7.17

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences