CVE-2023-5115

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

State
Published
Severity
6.3 Medium
Published
Dec 18, 2023
Updated
Nov 20, 2025
Reserved
Sep 21, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:Nredhat

Weaknesses

  • CWE-36 Absolute Path Traversal

Affected Products

ProductVersions
Red Hat Ansible Automation Platform 2.3 for RHEL 8Red Hat
  • 0:2.14.11-1.el8ap and laterNot affected
Red Hat Ansible Automation Platform 2.3 for RHEL 9Red Hat
  • 0:2.14.11-1.el9ap and laterNot affected
Red Hat Ansible Automation Platform 2.4 for RHEL 8Red Hat
  • 0:2.15.5-1.el8ap and laterNot affected
Red Hat Ansible Automation Platform 2.4 for RHEL 9Red Hat
  • 0:2.15.5-1.el9ap and laterNot affected
Red Hat Ansible Automation Platform 1.2Red Hat

    References

    Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.