CVE-2018-10874

Source
https://cve.org/CVERecord?id=CVE-2018-10874
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-10874.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-10874
Aliases
Downstream
DEBIAN (1)
MGASA (1)
RHBA (1)
RHSA (7)
SUSE (3)
UBUNTU (1)
Related
Published
2018-07-02T13:29:00Z
Modified
2026-08-07T11:31:12Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:a:redhat:ansible_engine:2.0:*:*:*:*:*:*:*",
                "cpe:2.3:a:redhat:ansible_engine:2.4:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "2.0"
                },
                {
                    "last_affected":  "2.0"
                },
                {
                    "introduced":  "2.4"
                },
                {
                    "last_affected":  "2.4"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "redhat:ansible_engine"
        },
        {
            "cpes":  [
                "cpe:2.3:a:redhat:openstack:10:*:*:*:*:*:*:*",
                "cpe:2.3:a:redhat:openstack:12:*:*:*:*:*:*:*",
                "cpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "10"
                },
                {
                    "last_affected":  "10"
                },
                {
                    "introduced":  "12"
                },
                {
                    "last_affected":  "12"
                },
                {
                    "introduced":  "13"
                },
                {
                    "last_affected":  "13"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "redhat:openstack"
        },
        {
            "cpes":  [
                "cpe:2.3:a:redhat:virtualization:4.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "4.0"
                },
                {
                    "last_affected":  "4.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "redhat:virtualization"
        },
        {
            "cpes":  [
                "cpe:2.3:a:redhat:virtualization_host:4.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "4.0"
                },
                {
                    "last_affected":  "4.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "redhat:virtualization_host"
        }
    ]
}
References

Affected packages

Git / github.com/ansible/ansible

Affected ranges

Type
GIT
Repo
https://github.com/ansible/ansible
Events
Database specific
Show details
{
    "cpe":  [
        "cpe:2.3:a:redhat:ansible_engine:2.5:*:*:*:*:*:*:*",
        "cpe:2.3:a:redhat:ansible_engine:2.6:*:*:*:*:*:*:*"
    ],
    "extracted_events":  [
        {
            "introduced":  "2.5"
        },
        {
            "last_affected":  "2.5"
        },
        {
            "introduced":  "2.6"
        },
        {
            "last_affected":  "2.6"
        }
    ],
    "source":  "CPE_STRING"
}

Affected versions

2.*
2.5
2.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-10874.json"