Advisory

PYSEC-2026-1122

Also known as: CVE-2023-5764, GHSA-7j69-qfc3-2fq9

Summary

Ansible template injection vulnerability

Details

A template injection flaw was found in Ansible where a user's controller internal templating operations may remove the unsafe designation from template data. This issue could allow an attacker to use a specially crafted file to introduce templating injection when supplying templating data.

Severity

Medium Basis: CVSS v3 score 6.6, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Dates

Published
2026-07-07 11:45 UTC
Modified
2026-07-07 17:46 UTC

Affected packages and fixes

ansible-core

PyPI · All systems

Affected

  • introduced 0, fixed 2.14.12, introduced 2.15.0, fixed 2.15.8, introduced 2.16.0, fixed 2.16.1 (ecosystem)

Fixed versions

2.14.12, 2.15.8, 2.16.1

Fix

  • Fixed version 2.14.12
    pip install --upgrade ansible-core==2.14.12
  • Fixed version 2.15.8
    pip install --upgrade ansible-core==2.15.8
  • Fixed version 2.16.1
    pip install --upgrade ansible-core==2.16.1

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