MEDIUM6.3
PYSEC-2026-1120
Ansible symlink attack vulnerability
Quick fix
PYSEC-2026-1120 — ansible: upgrade to the fixed version with the command below.
pip install --upgrade 'ansible>=8.5.0'Details
An absolute path traversal attack exists in the Ansible automation platform. This flaw allows an attacker to craft a malicious Ansible role and make the victim execute the role. A symlink can be used to overwrite a file outside of the extraction path.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-5115[ADVISORY]
- https://github.com/ansible/ansible/commit/1e930684bc0a76ec3d094cd326738ad26416541c[WEB]
- https://access.redhat.com/errata/RHSA-2023:5701[WEB]
- https://access.redhat.com/errata/RHSA-2023:5758[WEB]
- https://access.redhat.com/security/cve/CVE-2023-5115[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2233810[WEB]
- https://github.com/ansible-community/ansible-build-data/blob/16d36538b96c65d9e0e28d89781361b69857ac0e/8/CHANGELOG-v8.rst#L221[WEB]
- https://github.com/ansible/ansible[PACKAGE]
- https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html[WEB]
- https://pypi.org/project/ansible[PACKAGE]
- https://github.com/advisories/GHSA-jpvw-p8pr-9g2x[ADVISORY]