Advisory

PYSEC-2018-41

Also known as: CVE-2017-7481, GHSA-w578-j992-554x

Summary

The record has no summary.

Details

Ansible before versions 2.3.1.0 and 2.4.0.0 fails to properly mark lookup-plugin results as unsafe. If an attacker could control the results of lookup() calls, they could inject Unicode strings to be parsed by the jinja2 templating system, resulting in code execution. By default, the jinja2 templating language is now marked as 'unsafe' and is not evaluated.

Severity

Not rated by the source.

Dates

Published
2018-07-19 13:29 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

ansible

PyPI · All systems

Affected

  • introduced 0, fixed 2.3.1.0, introduced 2.3.2.0, fixed 2.4.0.0 (ecosystem)

Fixed versions

2.3.1.0, 2.4.0.0

Fix

  • Fixed version 2.3.1.0
    pip install --upgrade ansible==2.3.1.0
  • Fixed version 2.4.0.0
    pip install --upgrade ansible==2.4.0.0

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: PyPA Advisory Database · CC BY 4.0

Sources & licences