Skip to content
Noroxi
CVE-2018-10874· NVD / CVE Program· CNA redhat

In ansible it was found that inventory variables are loaded from current working directory when running ad-hoc command which are under attac

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.

HighCVSS 7.8 · v3.0—No exploit Fix available
Published
Jul 2, 2018
Updated
Jun 16, 2026
EPSS
0.5% · 40th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

31

Monitor

Low priority for now.

CVSS
31 / 40 · 7.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.5%

CNA vs NVD score

NVD
7.8
CNA · redhat
7.8
agree

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
redhatansible engine
redhatopenstack
redhatvirtualization
redhatvirtualization host

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • redhat ansible engine2.0
  • redhat ansible engine2.4
  • redhat ansible engine2.5
  • redhat ansible engine2.6
  • redhat openstack10
  • redhat openstack12
  • redhat openstack13
  • redhat virtualization4.0
  • redhat virtualization host4.0

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • [UNKNOWN] ansible

    • n/aaffected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12ansiblebefore 2.6.1+dfsg-12.6.1+dfsg-1
PyPIansiblefrom 2.5 · before 2.5.62.5.6
PyPIansiblefrom 2.6 · before 2.6.12.6.1
PyPIansiblebefore 2.4.6.02.4.6.0
Red Hat:ansible_engine:2::el7ansiblebefore 0:2.6.1-1.el7ae0:2.6.1-1.el7ae
Red Hat:ansible_engine:2.4::el7ansible-docbefore 0:2.4.6.0-1.el7ae0:2.4.6.0-1.el7ae
Red Hat:ansible_engine:2.5::el7ansiblebefore 0:2.5.6-1.el7ae0:2.5.6-1.el7ae
Red Hat:ansible_engine:2.5::el7ansible-docbefore 0:2.5.6-1.el7ae0:2.5.6-1.el7ae
Red Hat:enterprise_linux:7::hypervisorimgbasedbefore 0:1.0.22-1.el7ev0:1.0.22-1.el7ev
Red Hat:enterprise_linux:7::hypervisorpython-imgbasedbefore 0:1.0.22-1.el7ev0:1.0.22-1.el7ev
Red Hat:enterprise_linux:7::hypervisorredhat-release-virtualization-hostbefore 0:4.2-5.0.el70:4.2-5.0.el7
Red Hat:enterprise_linux:7::hypervisorredhat-virtualization-hostbefore 0:4.2-20180724.0.el7_50:4.2-20180724.0.el7_5
Red Hat:enterprise_linux:7::hypervisorredhat-virtualization-host-image-updatebefore 0:4.2-20180724.0.el7_50:4.2-20180724.0.el7_5
Red Hat:enterprise_linux:7::hypervisorredhat-virtualization-host-image-update-placeholderbefore 0:4.2-5.0.el70:4.2-5.0.el7
Red Hat:openstack:12::el7ansiblebefore 0:2.4.6.0-1.el7ae0:2.4.6.0-1.el7ae
Red Hat:openstack:12::el7ansible-role-redhat-subscriptionbefore 0:1.0.1-4.el7ost0:1.0.1-4.el7ost
SUSE:HPE Helion OpenStack 8ansiblebefore 2.4.6.0-3.3.12.4.6.0-3.3.1
SUSE:Linux Enterprise Module for Package Hub 15 SP5golang-github-prometheus-promubefore 0.14.0-150000.3.18.20.14.0-150000.3.18.2
SUSE:Linux Enterprise Module for Package Hub 15 SP5golang-github-prometheus-promubefore 0.14.0-150000.3.18.20.14.0-150000.3.18.2
SUSE:Manager Client Tools 15ansiblebefore 2.9.27-150000.1.17.22.9.27-150000.1.17.2
SUSE:Manager Client Tools 15ansiblebefore 2.9.27-150000.1.17.22.9.27-150000.1.17.2
SUSE:Manager Client Tools 15dracut-saltbootbefore 0.1.1710765237.46af599-150000.1.53.20.1.1710765237.46af599-150000.1.53.2
SUSE:Manager Client Tools 15dracut-saltbootbefore 0.1.1710765237.46af599-150000.1.53.20.1.1710765237.46af599-150000.1.53.2
SUSE:Manager Client Tools 15grafanabefore 9.5.18-150000.1.63.29.5.18-150000.1.63.2

+27

Other highest-scoring records for the same primary product.

  • CVE-2021-20228A flaw was found in the Ansible Engine 2.9.18, where sensitive info is not masked by default and is not protected by the no_log feature when
    31Monitor
  • CVE-2020-1737A flaw was found in Ansible 2.7.17 and prior, 2.8.9 and prior, and 2.9.6 and prior when using the Extract-Zip function from the win_unzip mo
    31Monitor
  • CVE-2019-14846In Ansible, all Ansible Engine versions up to ansible-engine 2.8.5, ansible-engine 2.7.13, ansible-engine 2.6.19, were logging at the DEBUG
    31Monitor
  • CVE-2018-16837Ansible "User" module leaks any data which is passed on as a parameter to ssh-keygen.
    31Monitor
  • CVE-2018-10875A flaw was found in ansible.
    31Monitor
  • CVE-2020-1734A flaw was found in the pipe lookup plugin of ansible.
    29Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:ansible2.6.1+dfsg-1 · Debian:12Package registry (OSV)
PyPI:ansible2.4.6.0Package registry (OSV)
PyPI:ansible2.5.6Package registry (OSV)
PyPI:ansible2.6.1Package registry (OSV)
red hat:ansible0:2.4.6.0-1.el7ae · Red Hat:openstack:12::el7Package registry (OSV)
red hat:ansible-doc0:2.5.6-1.el7ae · Red Hat:ansible_engine:2.5::el7Package registry (OSV)
red hat:ansible-role-redhat-subscription0:1.0.1-4.el7ost · Red Hat:openstack:12::el7Package registry (OSV)
red hat:imgbased0:1.0.22-1.el7ev · Red Hat:enterprise_linux:7::hypervisorPackage registry (OSV)
red hat:python-imgbased0:1.0.22-1.el7ev · Red Hat:enterprise_linux:7::hypervisorPackage registry (OSV)
red hat:redhat-release-virtualization-host0:4.2-5.0.el7 · Red Hat:enterprise_linux:7::hypervisorPackage registry (OSV)
red hat:redhat-virtualization-host0:4.2-20180724.0.el7_5 · Red Hat:enterprise_linux:7::hypervisorPackage registry (OSV)
red hat:redhat-virtualization-host-image-update0:4.2-20180724.0.el7_5 · Red Hat:enterprise_linux:7::hypervisorPackage registry (OSV)
red hat:redhat-virtualization-host-image-update-placeholder0:4.2-5.0.el7 · Red Hat:enterprise_linux:7::hypervisorPackage registry (OSV)
suse:ansible2.4.6.0-3.3.1 · SUSE:HPE Helion OpenStack 8Package registry (OSV)
suse:ansible2.9.27-150000.1.17.2 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:dracut-saltboot0.1.1710765237.46af599-150000.1.53.2 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:dracut-saltboot0.1.1710765237.46af599-159000.3.33.2 · SUSE:Manager Client Tools 15-BETAPackage registry (OSV)
suse:golang-github-prometheus-node_exporter1.5.0-159000.6.2.1 · SUSE:Manager Client Tools Beta for SLE Micro 5Package registry (OSV)
suse:golang-github-prometheus-promu0.14.0-150000.3.18.2 · SUSE:Linux Enterprise Module for Package Hub 15 SP5Package registry (OSV)
suse:grafana9.5.16-159000.4.30.2 · SUSE:Manager Client Tools 15-BETAPackage registry (OSV)
suse:grafana9.5.18-150000.1.63.2 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:mgr-daemon4.3.9-150000.1.47.2 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:POS_Image-Graphical70.1.1710765237.46af599-150000.1.21.2 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:POS_Image-Graphical70.1.1710765237.46af599-159000.3.24.2 · SUSE:Manager Client Tools 15-BETAPackage registry (OSV)
suse:POS_Image-JeOS70.1.1710765237.46af599-150000.1.21.2 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:POS_Image-JeOS70.1.1710765237.46af599-159000.3.24.2 · SUSE:Manager Client Tools 15-BETAPackage registry (OSV)
suse:spacecmd4.3.27-150000.3.116.2 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:spacecmd5.0.5-159000.6.48.2 · SUSE:Manager Client Tools 15-BETAPackage registry (OSV)
suse:spacewalk-client-tools4.3.19-150000.3.89.2 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:spacewalk-client-tools5.0.4-159000.6.54.2 · SUSE:Manager Client Tools 15-BETAPackage registry (OSV)

+5

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records