Skip to content
OpenAdvisories
Critical · 9.8 CVE-2014-4678 EUVD-2020-0015GHSA-66c7-5pwv-mm3jPYSEC-2020-203

Ansible Code Injection Vulnerability

Published Feb 20, 2020 · Updated Aug 6, 2024 · Assigned by redhat

Description

The safe_eval function in Ansible before 1.6.4 does not properly restrict the code subset, which allows remote attackers to execute arbitrary code via crafted instructions. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-4657.

Affected products

VendorProductAffectedFixed
— Ansible before 1.6.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ansible 1.6.6+dfsg-1 —
Debian 13 ansible 1.6.6+dfsg-1 —
Debian 12 ansible 1.6.6+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS ansible 1.5.4+dfsg-1ubuntu0.1~esm2 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI ansible < 1.6.4 1.6.4 GHSA-66c7-5pwv-mm3j

References