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

Published Aug 23, 2023
·
Updated

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.

Other sources

When installing a maliciously created Ansible role using ansible-galaxy role install, arbitrary files the user has access to can be overwritten. The malicious role must contain a symlink with an absolute path to the target file, followed by a file of the same name (as the symlink) with the contents to write to the target.

Red Hat

Affected Software

17 affected componentsFixes available
pip/ansible<8.5.0
8.5.0
All of the following
Any of the following
redhat Ansible Automation Platform=1.2
redhat Ansible Automation Platform=2.3
redhat Ansible Automation Platform=2.4
Any of the following
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
All of the following
Any of the following
redhat Ansible Inside=1.1
redhat Ansible Inside=1.2
Any of the following
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
All of the following
Any of the following
redhat Ansible Developer=1.0
redhat Ansible Developer=1.1
Any of the following
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Debian Debian Linux=10.0
redhat/ansible<2.14.11
2.14.11
IBM Concert Software<=1.0.0-1.1.0

Event History

Aug 23, 2023
Data Sourced
via Red Hat·02:20 PM
DescriptionSeverityAffected Software
Dec 18, 2023
CVE Published
via MITRE·01:43 PM
Data Sourced
via MITRE·01:43 PM
DescriptionSeverityWeakness
Dec 28, 2023
Advisory Published
via GitHub·09:30 PM
Sep 8, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-5115?

CVE-2023-5115 has a high severity rating due to its potential to enable an absolute path traversal attack.

2

How do I fix CVE-2023-5115?

To fix CVE-2023-5115, upgrade to Ansible version 8.5.0 or later, or for Red Hat, upgrade to version 2.14.11.

3

What versions of Ansible are affected by CVE-2023-5115?

CVE-2023-5115 affects all Ansible versions prior to 8.5.0 and 2.14.11 for Red Hat users.

4

Can CVE-2023-5115 affect my Red Hat Enterprise Linux setup?

Yes, CVE-2023-5115 can affect Red Hat Enterprise Linux when using vulnerable versions of the Ansible automation platform.

5

What is an absolute path traversal attack in the context of CVE-2023-5115?

An absolute path traversal attack allows an attacker to overwrite files outside the intended extraction path by exploiting symlinks in the Ansible roles.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203