CVE-2014-4967: Ansible Ansible Arbitrary Code Execution Vulnerability
CRITICALCVE-2014-4967 is a CRITICAL (CVSS 9.8) ansible arbitrary code execution vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Ansible libraries in the PyPI ecosystem. The issue involves ansible arbitrary code execution. Remediation is available by upgrading affected packages to version 1.6.7.
CVE-2014-4967 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2014-4967
To remediate this vulnerability, upgrade all affected Ansible dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install ansible>=1.6.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show ansible
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2014-4967, inspect your installed packages using pip:
pip show ansible
Analyze the terminal output to locate any version of Ansible in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.7), your application is affected.
Note: The pip show ansible command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Ansible, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2014-4967 Affected Ansible Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ansible
|
PyPI |
< 1.6.7
|
1.6.7
|
References
Frequently Asked Questions
What is CVE-2014-4967?
Which Ansible versions are affected?
What version fixes CVE-2014-4967?
Is ansible affected?
What is the CVSS score of CVE-2014-4967?
What CWE is associated with CVE-2014-4967?
How can I check PyPI dependencies for CVE-2014-4967?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-64cw-m57j-65xj",
"modified" : "2024-09-10T22:15:25Z",
"published" : "2022-05-17T19:57:30Z",
"aliases" : [ "CVE-2014-4967" ],
"summary" : "Ansible Arbitrary Code Execution",
"details" : "Multiple argument injection vulnerabilities in Ansible before 1.6.7 allow remote attackers to execute arbitrary code by leveraging access to an Ansible managed host and providing a crafted fact, as demonstrated by a fact with (1) a trailing \" src=\" clause, (2) a trailing \" temp=\" clause, or (3) a trailing \" validate=\" clause accompanied by a shell command.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "ansible"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.6.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-4967"
}, {
"type" : "WEB",
"url" : "https://github.com/ansible/ansible/commit/62a1295a3e08cb6c3e9f1b2a1e6e5dcaeab32527"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-205.yaml"
}, {
"type" : "WEB",
"url" : "http://www.ocert.org/advisories/ocert-2014-004.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-30T23:55:58Z",
"nvd_published_at" : "2020-02-18T15:15:00Z"
}
}