CVE-2018-10874
published high CVSS 3.0 · 7.8ansible: Inventory variables are loaded from current working directory when running ad-hoc command that can lead to code execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| [UNKNOWN] | — | ansiblen/a | Affected | Not stated | redhat |
| SUSE / openSUSE | openSUSE-Leap-15.5 | ansiblenoarch | Advisory build | 2.9.27-150000.1.17.2 | SUSE-SU-2024:1509-1 |
| Ubuntu | bionic | ansible | Advisory build | 2.5.1+dfsg-1ubuntu0.1 | USN-4072-1 |
| SUSE / openSUSE | SLE-15-SP5 | golang-github-prometheus-promuaarch64 | Advisory build | 0.14.0-150000.3.18.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | SLE-15-SP5 | golang-github-prometheus-promuppc64le | Advisory build | 0.14.0-150000.3.18.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | SLE-15-SP5 | golang-github-prometheus-promus390x | Advisory build | 0.14.0-150000.3.18.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | SLE-15-SP5 | golang-github-prometheus-promux86_64 | Advisory build | 0.14.0-150000.3.18.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | POS_Image-Graphical7noarch | Advisory build | 0.1.1710765237.46af599-150000.1.21.2 | SUSE-SU-2024:1509-1 |
Show 9 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.5 | POS_Image-JeOS7noarch | Advisory build | 0.1.1710765237.46af599-150000.1.21.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | ansible-docnoarch | Advisory build | 2.9.27-150000.1.17.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | ansible-testnoarch | Advisory build | 2.9.27-150000.1.17.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | dracut-saltbootnoarch | Advisory build | 0.1.1710765237.46af599-150000.1.53.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | golang-github-prometheus-promuaarch64 | Advisory build | 0.14.0-150000.3.18.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | golang-github-prometheus-promuppc64le | Advisory build | 0.14.0-150000.3.18.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | golang-github-prometheus-promus390x | Advisory build | 0.14.0-150000.3.18.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | golang-github-prometheus-promux86_64 | Advisory build | 0.14.0-150000.3.18.2 | SUSE-SU-2024:1509-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | spacecmdnoarch | Advisory build | 4.3.27-150000.3.116.2 | SUSE-SU-2024:1509-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- redhat · cna
- Vector string
- CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| [UNKNOWN] | ansible | n/a (affected) | redhat · cna |
Weaknesses
1- CWE-426
References
11- 1041396 http://www.securitytracker.com/id/1041396
- RHBA-2018:3788 https://access.redhat.com/errata/RHBA-2018:3788
- RHSA-2018:2150 https://access.redhat.com/errata/RHSA-2018:2150
- RHSA-2018:2151 https://access.redhat.com/errata/RHSA-2018:2151
- RHSA-2018:2152 https://access.redhat.com/errata/RHSA-2018:2152
- RHSA-2018:2166 https://access.redhat.com/errata/RHSA-2018:2166
- RHSA-2018:2321 https://access.redhat.com/errata/RHSA-2018:2321
- RHSA-2018:2585 https://access.redhat.com/errata/RHSA-2018:2585
- RHSA-2019:0054 https://access.redhat.com/errata/RHSA-2019:0054
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10874
- USN-4072-1 https://usn.ubuntu.com/4072-1/
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 43e19f5404a34db41e2e391d65d479e6d1c58063f2e28b4624cceebe2f497001
- Ingested
- 23 Sep 2026, 07:43:23 UTC
- Source record
- Official CVE record