CWE
36 22
Advisory Published
CVE Published
Advisory Published
Updated

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

First published: Wed 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
pip/ansible<8.5.0
8.5.0
redhat/ansible<2.14.11
2.14.11
All of
Any of
redhat ANSIBLE automation platform=1.2
redhat ANSIBLE automation platform=2.3
redhat ANSIBLE automation platform=2.4
Any of
Red Hat Enterprise Linux=8.0
Red Hat Enterprise Linux=9.0
All of
Any of
Red Hat Ansible Inside=1.1
Red Hat Ansible Inside=1.2
Any of
Red Hat Enterprise Linux=8.0
Red Hat Enterprise Linux=9.0
All of
Any of
Red Hat Ansible Developer=1.0
Red Hat Ansible Developer=1.1
Any of
Red Hat Enterprise Linux=8.0
Red Hat Enterprise Linux=9.0
Debian GNU/Linux=10.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203