CVE-2018-10875: High severity redhat Ansible Engine vulnerability

Published Jun 29, 2018
·
Updated

A flaw was found in ansible. ansible.cfg is read from the current working directory which can be altered to make it point to a plugin or a module path under the control of an attacker, thus allowing the attacker to execute arbitrary code.

Other sources

It was found that ansible.cfg is being read from current working directory, which cam be made to point to plugin or module paths that are under control of the attacker, allowing to execute arbitrary code.

— Red Hat

Affected Software

36 affected componentsFixes available
redhat/ansible<2.4.6
2.4.6
redhat/ansible<2.5.6
2.5.6
redhat/ansible<2.6.1
2.6.1
pip/ansible>=2.6.0a1<2.6.1
2.6.1
pip/ansible>=2.5.0a1<2.5.6
2.5.6
pip/ansible<2.4.6.0
2.4.6.0
redhat Ansible Engine=2.0
redhat Ansible Engine=2.4
redhat Ansible Engine=2.5
redhat Ansible Engine=2.6
redhat Ceph Storage=2.0
redhat Ceph Storage=3.0
redhat Gluster Storage=3.0.0
redhat Openshift=3.0
redhat Openstack=10
redhat Openstack=12
redhat Openstack=13
redhat Virtualization=4.0
redhat Virtualization Host=4.0
Debian Debian Linux=9.0
All of the following
SUSE Package Hub
SUSE SUSE Linux Enterprise Server=12
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=19.04
Debian Debian Linux=8.0
SUSE Package Hub
SUSE SUSE Linux Enterprise Server=12
debian/ansible
2.10.7+merged+base+2.10.17+dfsg-0+deb11u12.10.7+merged+base+2.10.17+dfsg-0+deb11u47.7.0+dfsg-3+deb12u112.0.0+dfsg-0+deb13u113.4.0+dfsg-1
alpine/ansible<2.6.3-r0
2.6.3-r0
alpine/ansible<2.6.3-r0
2.6.3-r0
alpine/ansible<2.6.3-r0
2.6.3-r0
alpine/ansible<2.6.3-r0
2.6.3-r0
alpine/ansible-base<2.6.3-r0
2.6.3-r0
alpine/ansible-base<2.6.3-r0
2.6.3-r0
alpine/ansible-base<2.6.3-r0
2.6.3-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/ansible to a version that resolves this vulnerability.

    Fixed in 2.4.6
  2. Upgrade

    Upgrade redhat/ansible to a version that resolves this vulnerability.

    Fixed in 2.5.6
  3. Upgrade

    Upgrade redhat/ansible to a version that resolves this vulnerability.

    Fixed in 2.6.1
  4. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.6.1
  5. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.5.6
  6. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.4.6.0
  7. Upgrade

    Upgrade debian/ansible to a version that resolves this vulnerability.

    Fixed in 2.10.7+merged+base+2.10.17+dfsg-0+deb11u1Fixed in 2.10.7+merged+base+2.10.17+dfsg-0+deb11u4Fixed in 7.7.0+dfsg-3+deb12u1Fixed in 12.0.0+dfsg-0+deb13u1Fixed in 13.4.0+dfsg-1
  8. Upgrade

    Upgrade alpine/ansible to a version that resolves this vulnerability.

    Fixed in 2.6.3-r0
  9. Upgrade

    Upgrade alpine/ansible-base to a version that resolves this vulnerability.

    Fixed in 2.6.3-r0

Event History

Jun 29, 2018
Data Sourced
08:03 AM
DescriptionSeverityAffected Software
Jul 13, 2018
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·10:29 PM
DescriptionSeverityAffected Software
Aug 4, 2021
Data Sourced
05:14 PM
Weakness
Data Sourced
via NVD·05:14 PM
DescriptionSeverityWeaknessAffected Software
Updated
05:14 PM
Affected Software
Mar 13, 2022
Data Sourced
via Red Hat·03:10 PM
DescriptionSeverityAffected Software
May 13, 2022
Advisory Published
via GitHub·01:07 AM
Data Sourced
via GitHub·01:07 AM
DescriptionSeverityWeaknessAffected Software
Apr 22, 2024
Advisory Published
via GitHub·10:09 PM
Sep 5, 2024
Updated
via GitHub·12:43 AM
Affected Software
Nov 21, 2024
Updated
via NVD·03:42 AM
Affected Software
Jun 17, 2026
Updated
via NVD·01:34 AM
Affected Software

Frequently Asked Questions

1

What is the vulnerability ID?

CVE-2018-10875

2

What is the severity of CVE-2018-10875?

The severity of CVE-2018-10875 is high (CVSS score of 7.8).

3

How does CVE-2018-10875 impact Ansible?

CVE-2018-10875 allows an attacker to execute arbitrary code by altering the ansible.cfg file and making it point to a plugin or module path under their control.

4

Which versions of Ansible are affected by CVE-2018-10875?

Ansible versions 2.5.1+dfsg-1ubuntu0.1 and earlier, as well as 2.6.1+dfsg-1 and earlier, are affected by CVE-2018-10875.

5

How can I fix CVE-2018-10875 in Ansible?

To fix CVE-2018-10875 in Ansible, upgrade to version 2.5.1+dfsg-1ubuntu0.1 or later for Ubuntu, or version 2.6.1+dfsg-1 or later for all other distributions.

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