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

Summary

CVECVE-2023-5115
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-12-18 14:15:10 UTC
Updated2026-11-07 14:16:57 UTC
DescriptionAn 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.

Risk And Classification

Primary CVSS: v3.1 6.3 MEDIUM from [email protected]

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

Problem Types: CWE-36 | CWE-22 | CWE-36 Absolute Path Traversal


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary6.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N
3.1[email protected]Secondary6.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N
3.1CNACVSS6.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
None

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

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Redhat Ansible Automation Platform 1.2 All All All
Application Redhat Ansible Automation Platform 2.3 All All All
Application Redhat Ansible Automation Platform 2.4 All All All
Application Redhat Ansible Inside 1.1 All All All
Application Redhat Ansible Inside 1.2 All All All
Operating System Redhat Enterprise Linux 8.0 All All All
Operating System Redhat Enterprise Linux 9.0 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Ansible Automation Platform 2.3 For RHEL 8 unaffected 0:2.14.11-1.el8ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.3 For RHEL 8 unaffected 0:2.14.11-1.el8ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.3 For RHEL 8 unaffected 0:2.14.11-1.el8ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.3 For RHEL 9 unaffected 0:2.14.11-1.el9ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.3 For RHEL 9 unaffected 0:2.14.11-1.el9ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.3 For RHEL 9 unaffected 0:2.14.11-1.el9ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.4 For RHEL 8 unaffected 0:2.15.5-1.el8ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.4 For RHEL 8 unaffected 0:2.15.5-1.el8ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.4 For RHEL 8 unaffected 0:2.15.5-1.el8ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.4 For RHEL 9 unaffected 0:2.15.5-1.el9ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.4 For RHEL 9 unaffected 0:2.15.5-1.el9ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 2.4 For RHEL 9 unaffected 0:2.15.5-1.el9ap * rpm Not specified
CNA Red Hat Red Hat Ansible Automation Platform 1.2 Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/errata/RHSA-2023:5758 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
lists.debian.org/debian-lts-announce/2023/12/msg00018.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
access.redhat.com/security/cve/CVE-2023-5115 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
access.redhat.com/errata/RHSA-2023:5701 af854a3a-2127-422b-91ae-364da2661108 access.redhat.com Vendor Advisory
bugzilla.redhat.com/show_bug.cgi af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2023-08-23T00:00:00.000ZReported to Red Hat.
CNA2023-09-21T19:33:00.000ZMade public.

Legacy QID Mappings

  • 284645 Fedora Security Update for ansible (FEDORA-2023-cdc7db366e)
  • 284646 Fedora Security Update for ansible (FEDORA-2023-e5d4a632a5)
  • 285224 Fedora Security Update for ansible (FEDORA-2023-389ed7a7e7)
  • 296106 Oracle Solaris 11.4 Support Repository Update (SRU) 64.157.2 Missing (CPUOCT2023)
  • 357125 Amazon Linux Security Advisory for ansible-core : ALAS2023-2024-505
  • 6000405 Debian Security Update for ansible (DLA 3695-1)
  • 996474 Python (Pip) Security Update for ansible (GHSA-jpvw-p8pr-9g2x)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report