CVE-2023-5115

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

MEDIUM 6.3

At a glance

Source
NVD
EPSS
EPSS 1.01 % · percentile 63 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-36 — Absolute Path Traversal
  • CWE-22 — Improper Limitation of a Pathname to a Restricted Directory

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.3CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:Nredhat
CVSS 3.1MEDIUM 6.3CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:NNVD · secalert@redhat.com (Secondary)
CVSS 3.1MEDIUM 6.3CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:NNVD · nvd@nist.gov (Primary)

Advisories

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Red Hat · Red Hat Ansible Automation Platform 2.3 for RHEL 8unaffected 0:2.14.11-1.el8ap < *
Red Hat · Red Hat Ansible Automation Platform 2.3 for RHEL 9unaffected 0:2.14.11-1.el9ap < *
Red Hat · Red Hat Ansible Automation Platform 2.4 for RHEL 8unaffected 0:2.15.5-1.el8ap < *
Red Hat · Red Hat Ansible Automation Platform 2.4 for RHEL 9unaffected 0:2.15.5-1.el9ap < *
Red Hat · Red Hat Ansible Automation Platform 1.2

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD