Vulnerability · Published Dec 18, 2023 · Assigned by redhat

CVE-2023-5115Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files

Medium 6.3

In plain English

A medium-severity security flaw in Red Hat Ansible Automation Platform 1.2 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)1.0%top 36.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ansible5.4.0-1DEBIAN-CVE-2023-5115
Debian:13ansible5.4.0-1DEBIAN-CVE-2023-5115
Debian:14ansible5.4.0-1DEBIAN-CVE-2023-5115
Debian:12ansible-core2.14.16-0+deb12u1DEBIAN-CVE-2023-5115
Debian:13ansible-core2.14.11-1DEBIAN-CVE-2023-5115
Debian:14ansible-core2.14.11-1DEBIAN-CVE-2023-5115
PyPIansible8.5.0GHSA-jpvw-p8pr-9g2x
PyPIansible8.5.0PYSEC-2026-1120
Ubuntu:24.04:LTSansibleno fix listedUBUNTU-CVE-2023-5115
Ubuntu:25.10ansibleno fix listedUBUNTU-CVE-2023-5115
Ubuntu:26.04:LTSansibleno fix listedUBUNTU-CVE-2023-5115
Ubuntu:26.10ansibleno fix listedUBUNTU-CVE-2023-5115
Ubuntu:22.04:LTSansible-coreno fix listedUBUNTU-CVE-2023-5115
Ubuntu:24.04:LTSansible-coreno fix listedUBUNTU-CVE-2023-5115
Ubuntu:25.10ansible-coreno fix listedUBUNTU-CVE-2023-5115
Ubuntu:26.04:LTSansible-coreno fix listedUBUNTU-CVE-2023-5115
Ubuntu:26.10ansible-coreno fix listedUBUNTU-CVE-2023-5115

Affected products (as reported)

Weakness: CWE-36 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N

References