CVE-2018-10874
published 2018-07-02CVE-2018-10874: In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's control…
PriorityP340high7.8CVSS 3.0
AVLACLPRLUINSUCHIHAH
EPSS
0.48%
38.6th percentile
In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's control, allowing to run arbitrary code as a result.
Affected
19 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | ansible | < ansible 2.6.1+dfsg-1 (bookworm) | ansible 2.6.1+dfsg-1 (bookworm) |
| redhat | ansible | >= 0 < 2.6.1+dfsg-1 | 2.6.1+dfsg-1 |
| redhat | ansible | >= 0 < 2.6.1+dfsg-1 | 2.6.1+dfsg-1 |
| redhat | ansible | >= 0 < 2.6.1+dfsg-1 | 2.6.1+dfsg-1 |
| redhat | ansible | >= 0 < 2.6.1+dfsg-1 | 2.6.1+dfsg-1 |
| redhat | ansible | >= 0 < 2.4.6.0 | 2.4.6.0 |
| redhat | ansible | >= 0 < 2.0.0.2-2ubuntu1.3 | 2.0.0.2-2ubuntu1.3 |
| redhat | ansible | >= 0 < 2.5.1+dfsg-1ubuntu0.1 | 2.5.1+dfsg-1ubuntu0.1 |
| redhat | ansible | >= 2.5 < 2.5.6 | 2.5.6 |
| redhat | ansible | >= 2.6 < 2.6.1 | 2.6.1 |
| redhat | ansible_engine | — | — |
| redhat | ansible_engine | — | — |
| redhat | ansible_engine | — | — |
| redhat | ansible_engine | — | — |
| redhat | openstack | — | — |
| redhat | openstack | — | — |
| redhat | openstack | — | — |
| redhat | virtualization | — | — |
| redhat | virtualization_host | — | — |
CVSS provenance
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_ubuntu9.8CRITICAL
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Ansible Improper Input Validation vulnerability
ghsa·2022-05-13
CVE-2018-10874 [HIGH] CWE-20 Ansible Improper Input Validation vulnerability
Ansible Improper Input Validation vulnerability
In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's control, allowing to run arbitrary code as a result.
OSV
Ansible Improper Input Validation vulnerability
osv·2022-05-13
CVE-2018-10874 [HIGH] Ansible Improper Input Validation vulnerability
Ansible Improper Input Validation vulnerability
In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's control, allowing to run arbitrary code as a result.
OSV
ansible vulnerabilities
osv·2019-07-24·CVSS 9.8
CVE-2017-7481 [CRITICAL] ansible vulnerabilities
ansible vulnerabilities
It was discovered that Ansible failed to properly handle sensitive information.
A local attacker could use those vulnerabilities to extract them.
(CVE-2017-7481)
(CVE-2018-10855)
(CVE-2018-16837)
(CVE-2018-16876)
(CVE-2019-10156)
It was discovered that Ansible could load configuration files from the current
working directory containing crafted commands. An attacker could run arbitrary
code as result.
(CVE-2018-10874)
(CVE-2018-10875)
It was discovered that Ansible fetch module had a path traversal vulnerability.
A local attacker could copy and overwrite files outside of the specified
destination.
(CVE-2019-3828)
OSV
CVE-2018-10874: In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's cont
osv·2018-07-02·CVSS 7.8
CVE-2018-10874 [HIGH] CVE-2018-10874: In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's cont
In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's control, allowing to run arbitrary code as a result.
Ubuntu
Ansible vulnerabilities
vendor_ubuntu·2019-07-24·CVSS 9.8
CVE-2017-7481 [CRITICAL] Ansible vulnerabilities
Title: Ansible vulnerabilities
Summary: Several security issues were fixed in Ansible.
It was discovered that Ansible failed to properly handle sensitive information.
A local attacker could use those vulnerabilities to extract them.
(CVE-2017-7481)
(CVE-2018-10855)
(CVE-2018-16837)
(CVE-2018-16876)
(CVE-2019-10156)
It was discovered that Ansible could load configuration files from the current
working directory containing crafted commands. An attacker could run arbitrary
code as result.
(CVE-2018-10874)
(CVE-2018-10875)
It was discovered that Ansible fetch module had a path traversal vulnerability.
A local attacker could copy and overwrite files outside of the specified
destination.
(CVE-2019-3828)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution
vendor_redhat·2018-06-29·CVSS 7.8
CVE-2018-10874 [HIGH] CWE-20 ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution
ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution
In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's control, allowing to run arbitrary code as a result.
Statement: Red Hat Gluster Storage 3 and Red Hat Ceph Storage 3 ships the affected version of ansible, but they no longer maintain their own version of ansible. Both the products will consume fixes directly from ansible repository.
Package: ansible (CloudForms Management Engine 5) - Not affected
Package: ansible (Red Hat Ceph Storage 2) - Will not fix
Package: ansible (Red Hat Ceph Storage 3) - Will not fix
Package: ansible (Red Hat OpenShift Enterprise 3) - W
Debian
CVE-2018-10874: ansible - In ansible it was found that inventory variables are loaded from current working...
vendor_debian·2018·CVSS 7.8
CVE-2018-10874 [HIGH] CVE-2018-10874: ansible - In ansible it was found that inventory variables are loaded from current working...
In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's control, allowing to run arbitrary code as a result.
Scope: local
bookworm: resolved (fixed in 2.6.1+dfsg-1)
bullseye: resolved (fixed in 2.6.1+dfsg-1)
forky: resolved (fixed in 2.6.1+dfsg-1)
sid: resolved (fixed in 2.6.1+dfsg-1)
trixie: resolved (fixed in 2.6.1+dfsg-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-10874 ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution [epel-all]
bugzilla·2018-07-06·CVSS 7.8
CVE-2018-10874 [HIGH] CVE-2018-10874 ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution [epel-all]
CVE-2018-10874 ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
Bugzilla
CVE-2018-10874 ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution [fedora-all]
bugzilla·2018-07-06·CVSS 7.8
CVE-2018-10874 [HIGH] CVE-2018-10874 ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution [fedora-all]
CVE-2018-10874 ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and
Bugzilla
CVE-2018-10874 ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution
bugzilla·2018-06-29·CVSS 7.8
CVE-2018-10874 [HIGH] CVE-2018-10874 ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution
CVE-2018-10874 ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution
It was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attacker's control, allowing to run arbitrary code as a result.
Discussion:
Acknowledgments:
Name: Michael Scherer (OSAS)
---
Created ansible tracking bugs for this issue:
Affects: epel-all [bug 1598810]
Affects: fedora-all [bug 1598809]
---
This issue has been addressed in the following products:
Red Hat Ansible Engine 2.5 for RHEL 7
Via RHSA-2018:2150 https://access.redhat.com/errata/RHSA-2018:2150
---
This issue has been addressed in the following products:
Red Hat Ansible Engine 2 for RHEL 7
Via RHSA-2018:
http://www.securitytracker.com/id/1041396https://access.redhat.com/errata/RHBA-2018:3788https://access.redhat.com/errata/RHSA-2018:2150https://access.redhat.com/errata/RHSA-2018:2151https://access.redhat.com/errata/RHSA-2018:2152https://access.redhat.com/errata/RHSA-2018:2166https://access.redhat.com/errata/RHSA-2018:2321https://access.redhat.com/errata/RHSA-2018:2585https://access.redhat.com/errata/RHSA-2019:0054https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10874https://usn.ubuntu.com/4072-1/http://www.securitytracker.com/id/1041396https://access.redhat.com/errata/RHBA-2018:3788https://access.redhat.com/errata/RHSA-2018:2150https://access.redhat.com/errata/RHSA-2018:2151https://access.redhat.com/errata/RHSA-2018:2152https://access.redhat.com/errata/RHSA-2018:2166https://access.redhat.com/errata/RHSA-2018:2321https://access.redhat.com/errata/RHSA-2018:2585https://access.redhat.com/errata/RHSA-2019:0054https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10874https://usn.ubuntu.com/4072-1/
2018-07-02
Published