GHSA-w578-j992-554x
Vulnerability from github
Published
2018-09-06 03:28
Modified
2024-09-04 18:45
Severity ?
9.8 (Critical) - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.3 (Critical) - 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
9.3 (Critical) - 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
Summary
Ansible fails to properly mark lookup-plugin results as unsafe
Details
Ansible before versions 2.3.1.0 and 2.4.0.0 fails to properly mark lookup-plugin results as unsafe. If an attacker could control the results of lookup() calls, they could inject Unicode strings to be parsed by the jinja2 templating system, resulting in code execution. By default, the jinja2 templating language is now marked as 'unsafe' and is not evaluated.
{ "affected": [ { "ecosystem_specific": { "affected_functions": [ "ansible.template.Templar._lookup" ] }, "package": { "ecosystem": "PyPI", "name": "ansible" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "2.3.1.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2017-7481" ], "database_specific": { "cwe_ids": [ "CWE-20" ], "github_reviewed": true, "github_reviewed_at": "2020-06-16T21:59:39Z", "nvd_published_at": null, "severity": "CRITICAL" }, "details": "Ansible before versions 2.3.1.0 and 2.4.0.0 fails to properly mark lookup-plugin results as unsafe. If an attacker could control the results of lookup() calls, they could inject Unicode strings to be parsed by the jinja2 templating system, resulting in code execution. By default, the jinja2 templating language is now marked as \u0027unsafe\u0027 and is not evaluated.", "id": "GHSA-w578-j992-554x", "modified": "2024-09-04T18:45:21Z", "published": "2018-09-06T03:28:50Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-7481" }, { "type": "WEB", "url": "https://github.com/ansible/ansible/commit/a1886911fcf4b691130cfc70dfc5daa5e07c46a3" }, { "type": "WEB", "url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2" }, { "type": "WEB", "url": "https://access.redhat.com/errata/RHSA-2017:1244" }, { "type": "WEB", "url": "https://access.redhat.com/errata/RHSA-2017:1334" }, { "type": "WEB", "url": "https://access.redhat.com/errata/RHSA-2017:1476" }, { "type": "WEB", "url": "https://access.redhat.com/errata/RHSA-2017:1499" }, { "type": "WEB", "url": "https://access.redhat.com/errata/RHSA-2017:1599" }, { "type": "WEB", "url": "https://access.redhat.com/errata/RHSA-2017:2524" }, { "type": "WEB", "url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481" }, { "type": "ADVISORY", "url": "https://github.com/advisories/GHSA-w578-j992-554x" }, { "type": "PACKAGE", "url": "https://github.com/ansible/ansible" }, { "type": "WEB", "url": "https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-41.yaml" }, { "type": "WEB", "url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html" }, { "type": "WEB", "url": "https://usn.ubuntu.com/4072-1" }, { "type": "WEB", "url": "https://web.archive.org/web/20170801122609/http://www.securityfocus.com/bid/98492" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "type": "CVSS_V3" }, { "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", "type": "CVSS_V4" } ], "summary": "Ansible fails to properly mark lookup-plugin results as unsafe" }
Loading...
Loading...
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.