VDB

CVE-2023-5115

CVE-2023-5115 PUBLISHED CVSS 6.3 MEDIUM

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

Reported by redhat · Published December 18, 2023

ansible is fixed in 8.5.0 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ansiblePyPI8.5.0
ansible-testAmazon Linux2.15.3-1.amzn2023.0.3

Risk scores

CVSS 3.1
6.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N

Affected products

VendorProductVersions
Red HatRed Hat Ansible Automation Platform 2.3 for RHEL 80:2.14.11-1.el8ap
Red HatRed Hat Ansible Automation Platform 2.3 for RHEL 80:2.14.11-1.el8ap
Red HatRed Hat Ansible Automation Platform 2.3 for RHEL 80:2.14.11-1.el8ap
Red HatRed Hat Ansible Automation Platform 2.3 for RHEL 90:2.14.11-1.el9ap
Red HatRed Hat Ansible Automation Platform 2.3 for RHEL 90:2.14.11-1.el9ap
Red HatRed Hat Ansible Automation Platform 2.3 for RHEL 90:2.14.11-1.el9ap
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 80:2.15.5-1.el8ap
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 80:2.15.5-1.el8ap
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 80:2.15.5-1.el8ap
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 90:2.15.5-1.el9ap
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 90:2.15.5-1.el9ap
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 90:2.15.5-1.el9ap
Red HatRed Hat Ansible Automation Platform 1.2
Red HatRed Hat Ansible Automation Platform 1.2
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 80:2.15.5-1.el8ap
amazon:2023ansible-test0
amazon:2023ansible-core0
Red HatRed Hat Ansible Automation Platform 2.4 for RHEL 90:2.15.5-1.el9ap
PyPIansible0
Red HatRed Hat Ansible Automation Platform 2.3 for RHEL 80:2.14.11-1.el8ap

…and 1 more

Timeline

  • Sep 26, 2023 CVE Published
  • Dec 19, 2023 EPSS Score (30 in total, the first dated here)
  • Dec 20, 2023 PoC Published
  • Oct 5, 2024 Coalition ESS Score (11 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (6 in total, the first dated here)
  • Jun 17, 2026 CVE Updated
  • Nov 8, 2026 Distribution Patch (2 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-5115
vulnetix vdb fixes CVE-2023-5115

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-5115/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›