Advisory

GHSA-p62g-jhg6-v3rq

Also known as: CVE-2020-10684, PYSEC-2020-207

Summary

Code Injection, Race Condition, and Execution with Unnecessary Privileges in Ansible

Details

A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.11, and 2.9.7 respectively, when using ansible_facts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansible_facts after the clean. An attacker could take advantage of this by altering the ansible_facts, such as ansible_hosts, users and any other key data which would lead into privilege escalation or code injection.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-04-07 20:37 UTC
Modified
2024-11-27 06:12 UTC

Affected packages and fixes

ansible

PyPI · All systems

Affected

  • introduced 2.7.0a1, fixed 2.7.17 (ecosystem)

Fixed versions

2.7.17

Fix

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

ansible

PyPI · All systems

Affected

  • introduced 2.8.0a1, fixed 2.8.11 (ecosystem)

Fixed versions

2.8.11

Fix

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

ansible

PyPI · All systems

Affected

  • introduced 2.9.0a1, fixed 2.9.7 (ecosystem)

Fixed versions

2.9.7

Fix

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

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