Action not permitted
Modal body text goes here.
Modal Title
Modal Body
PYSEC-2018-41
Vulnerability from pysec - Published: 2018-07-19 13:29 - Updated: 2021-07-02 02:41Ansible 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.
| Name | purl | ansible | pkg:pypi/ansible |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "ansible",
"purl": "pkg:pypi/ansible"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "ed56f51f185a1ffd7ea57130d260098686fcc7c2"
}
],
"repo": "https://github.com/ansible/ansible",
"type": "GIT"
},
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.3.1.0"
},
{
"introduced": "2.3.2.0"
},
{
"fixed": "2.4.0.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.0",
"1.1",
"1.2",
"1.2.1",
"1.2.2",
"1.2.3",
"1.3.0",
"1.3.1",
"1.3.2",
"1.3.3",
"1.3.4",
"1.4",
"1.4.1",
"1.4.2",
"1.4.3",
"1.4.4",
"1.4.5",
"1.5",
"1.5.1",
"1.5.2",
"1.5.3",
"1.5.4",
"1.5.5",
"1.6",
"1.6.1",
"1.6.10",
"1.6.2",
"1.6.3",
"1.6.4",
"1.6.5",
"1.6.6",
"1.6.7",
"1.6.8",
"1.6.9",
"1.7",
"1.7.1",
"1.7.2",
"1.8",
"1.8.1",
"1.8.2",
"1.8.3",
"1.8.4",
"1.9.0",
"1.9.0.1",
"1.9.1",
"1.9.2",
"1.9.3",
"1.9.4",
"1.9.5",
"1.9.6",
"2.0.0",
"2.0.0.0",
"2.0.0.1",
"2.0.0.2",
"2.0.1.0",
"2.0.2.0",
"2.1.0.0",
"2.1.1.0",
"2.1.2.0",
"2.1.3.0",
"2.1.4.0",
"2.1.5.0",
"2.1.6.0",
"2.2.0.0",
"2.2.1.0",
"2.2.2.0",
"2.2.3.0",
"2.3.0.0",
"2.3.2.0",
"2.3.3.0"
]
}
],
"aliases": [
"CVE-2017-7481",
"GHSA-w578-j992-554x"
],
"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": "PYSEC-2018-41",
"modified": "2021-07-02T02:41:33.849138Z",
"published": "2018-07-19T13:29:00Z",
"references": [
{
"type": "FIX",
"url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2"
},
{
"type": "REPORT",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:2524"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:1599"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:1499"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:1476"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:1334"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:1244"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/98492"
},
{
"type": "WEB",
"url": "https://usn.ubuntu.com/4072-1/"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-w578-j992-554x"
}
]
}
BREW-ANSIBLE-CVE-2017-7481 (CVE-2017-7481)
Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-09-10 18:51 – Source websiteAnsible 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": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "2.4.0.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "ansible",
"purl": "pkg:brew/ansible"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "14.3.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "git",
"upstream_evidence": [
{
"ecosystem": "GIT",
"key": "https://github.com/ansible/ansible",
"name": "https://github.com/ansible/ansible",
"strategy": "git",
"subject_version": "14.4.0"
},
{
"ecosystem": "PyPI",
"key": "pkg:pypi/ansible@14.4.0",
"name": "ansible",
"strategy": "registry",
"subject_version": "14.4.0"
},
{
"ecosystem": "Debian",
"key": "Debian/ansible",
"name": "ansible",
"strategy": "distro"
},
{
"ecosystem": "GIT",
"key": "upstream:https://github.com/ansible/ansible",
"name": "https://github.com/ansible/ansible",
"strategy": "distro",
"subject_version": "14.4.0"
},
{
"ecosystem": "PyPI",
"key": "upstream:pkg:pypi/ansible@14.4.0",
"name": "ansible",
"strategy": "distro",
"subject_version": "14.4.0"
},
{
"ecosystem": "Ubuntu",
"key": "Ubuntu/ansible",
"name": "ansible",
"strategy": "distro"
}
]
},
"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": "BREW-ansible-CVE-2017-7481",
"modified": "2026-09-10T18:51:05Z",
"published": "2026-08-13T16:35:22Z",
"references": [
{
"type": "ADVISORY",
"url": "http://www.securityfocus.com/bid/98492"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:1244"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:1334"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:1476"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:1499"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:1599"
},
{
"type": "ADVISORY",
"url": "https://access.redhat.com/errata/RHSA-2017:2524"
},
{
"type": "ADVISORY",
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html"
},
{
"type": "ADVISORY",
"url": "https://usn.ubuntu.com/4072-1/"
},
{
"type": "FIX",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481"
},
{
"type": "FIX",
"url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"upstream": [
"CVE-2017-7481",
"GHSA-w578-j992-554x",
"PYSEC-2018-41"
]
}
BREW-ANSIBLE@10-CVE-2017-7481 (GHSA-W578-J992-554X)
Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-09-09 23:41 – Source websiteAnsible before versions 2.1.6.0, 2.2.3.0, 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.
| URL | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "2.3.1.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "ansible@10",
"purl": "pkg:brew/ansible%4010"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "10.7.0_6"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/ansible@10.7.0",
"name": "ansible",
"strategy": "registry",
"subject_version": "10.7.0"
},
{
"ecosystem": "Debian",
"key": "Debian/ansible",
"name": "ansible",
"strategy": "distro"
},
{
"ecosystem": "PyPI",
"key": "upstream:pkg:pypi/ansible@10.7.0",
"name": "ansible",
"strategy": "distro",
"subject_version": "10.7.0"
},
{
"ecosystem": "Ubuntu",
"key": "Ubuntu/ansible",
"name": "ansible",
"strategy": "distro"
}
]
},
"details": "Ansible before versions 2.1.6.0, 2.2.3.0, 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": "BREW-ansible@10-CVE-2017-7481",
"modified": "2026-09-09T23:41:05Z",
"published": "2026-08-13T16:35:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-7481"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/fd30f5328986f9e1da434474481f32bf918a600c"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/f0e348f5eeb70c1fb3127d90891da43b5c0a9d29"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/a1886911fcf4b691130cfc70dfc5daa5e07c46a3"
},
{
"type": "WEB",
"url": "https://web.archive.org/web/20170801122609/http://www.securityfocus.com/bid/98492"
},
{
"type": "WEB",
"url": "https://usn.ubuntu.com/4072-1"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-41.yaml"
},
{
"type": "PACKAGE",
"url": "https://github.com/ansible/ansible"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:2524"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1599"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1499"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1476"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1334"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1244"
}
],
"schema_version": "1.7.3",
"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",
"upstream": [
"GHSA-w578-j992-554x",
"CVE-2017-7481",
"PYSEC-2018-41"
]
}
BREW-ANSIBLE@12-CVE-2017-7481 (GHSA-W578-J992-554X)
Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-09-09 23:41 – Source websiteAnsible before versions 2.1.6.0, 2.2.3.0, 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.
| URL | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "2.3.1.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "ansible@12",
"purl": "pkg:brew/ansible%4012"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "12.3.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/ansible@12.3.0",
"name": "ansible",
"strategy": "registry",
"subject_version": "12.3.0"
},
{
"ecosystem": "Debian",
"key": "Debian/ansible",
"name": "ansible",
"strategy": "distro"
},
{
"ecosystem": "PyPI",
"key": "upstream:pkg:pypi/ansible@12.3.0",
"name": "ansible",
"strategy": "distro",
"subject_version": "12.3.0"
},
{
"ecosystem": "Ubuntu",
"key": "Ubuntu/ansible",
"name": "ansible",
"strategy": "distro"
}
]
},
"details": "Ansible before versions 2.1.6.0, 2.2.3.0, 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": "BREW-ansible@12-CVE-2017-7481",
"modified": "2026-09-09T23:41:06Z",
"published": "2026-08-13T16:35:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-7481"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/fd30f5328986f9e1da434474481f32bf918a600c"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/f0e348f5eeb70c1fb3127d90891da43b5c0a9d29"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/a1886911fcf4b691130cfc70dfc5daa5e07c46a3"
},
{
"type": "WEB",
"url": "https://web.archive.org/web/20170801122609/http://www.securityfocus.com/bid/98492"
},
{
"type": "WEB",
"url": "https://usn.ubuntu.com/4072-1"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-41.yaml"
},
{
"type": "PACKAGE",
"url": "https://github.com/ansible/ansible"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:2524"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1599"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1499"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1476"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1334"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1244"
}
],
"schema_version": "1.7.3",
"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",
"upstream": [
"GHSA-w578-j992-554x",
"CVE-2017-7481",
"PYSEC-2018-41"
]
}
BREW-ANSIBLE@13-CVE-2017-7481 (GHSA-W578-J992-554X)
Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-09-10 18:51 – Source websiteAnsible before versions 2.1.6.0, 2.2.3.0, 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.
| URL | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "2.3.1.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "ansible@13",
"purl": "pkg:brew/ansible%4013"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "13.8.0_2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/ansible@13.8.0",
"name": "ansible",
"strategy": "registry",
"subject_version": "13.8.0"
},
{
"ecosystem": "Debian",
"key": "Debian/ansible",
"name": "ansible",
"strategy": "distro"
},
{
"ecosystem": "PyPI",
"key": "upstream:pkg:pypi/ansible@13.8.0",
"name": "ansible",
"strategy": "distro",
"subject_version": "13.8.0"
},
{
"ecosystem": "Ubuntu",
"key": "Ubuntu/ansible",
"name": "ansible",
"strategy": "distro"
}
]
},
"details": "Ansible before versions 2.1.6.0, 2.2.3.0, 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": "BREW-ansible@13-CVE-2017-7481",
"modified": "2026-09-10T18:51:29Z",
"published": "2026-08-13T16:35:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-7481"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/fd30f5328986f9e1da434474481f32bf918a600c"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/f0e348f5eeb70c1fb3127d90891da43b5c0a9d29"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/a1886911fcf4b691130cfc70dfc5daa5e07c46a3"
},
{
"type": "WEB",
"url": "https://web.archive.org/web/20170801122609/http://www.securityfocus.com/bid/98492"
},
{
"type": "WEB",
"url": "https://usn.ubuntu.com/4072-1"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-41.yaml"
},
{
"type": "PACKAGE",
"url": "https://github.com/ansible/ansible"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:2524"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1599"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1499"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1476"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1334"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1244"
}
],
"schema_version": "1.7.3",
"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",
"upstream": [
"GHSA-w578-j992-554x",
"CVE-2017-7481",
"PYSEC-2018-41"
]
}
BREW-ANSIBLE@9-CVE-2017-7481 (GHSA-W578-J992-554X)
Vulnerability from osv_homebrew – Published: 2026-08-13 16:35 – Updated: 2026-09-09 23:41 – Source websiteAnsible before versions 2.1.6.0, 2.2.3.0, 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.
| URL | Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "2.3.1.0"
},
"package": {
"ecosystem": "Homebrew",
"name": "ansible@9",
"purl": "pkg:brew/ansible%409"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.13.0_4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/ansible@9.13.0",
"name": "ansible",
"strategy": "registry",
"subject_version": "9.13.0"
},
{
"ecosystem": "Debian",
"key": "Debian/ansible",
"name": "ansible",
"strategy": "distro"
},
{
"ecosystem": "PyPI",
"key": "upstream:pkg:pypi/ansible@9.13.0",
"name": "ansible",
"strategy": "distro",
"subject_version": "9.13.0"
},
{
"ecosystem": "Ubuntu",
"key": "Ubuntu/ansible",
"name": "ansible",
"strategy": "distro"
}
]
},
"details": "Ansible before versions 2.1.6.0, 2.2.3.0, 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": "BREW-ansible@9-CVE-2017-7481",
"modified": "2026-09-09T23:41:06Z",
"published": "2026-08-13T16:35:23Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-7481"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/fd30f5328986f9e1da434474481f32bf918a600c"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/f0e348f5eeb70c1fb3127d90891da43b5c0a9d29"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/a1886911fcf4b691130cfc70dfc5daa5e07c46a3"
},
{
"type": "WEB",
"url": "https://web.archive.org/web/20170801122609/http://www.securityfocus.com/bid/98492"
},
{
"type": "WEB",
"url": "https://usn.ubuntu.com/4072-1"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-41.yaml"
},
{
"type": "PACKAGE",
"url": "https://github.com/ansible/ansible"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:2524"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1599"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1499"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1476"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1334"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1244"
}
],
"schema_version": "1.7.3",
"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",
"upstream": [
"GHSA-w578-j992-554x",
"CVE-2017-7481",
"PYSEC-2018-41"
]
}
CVE-2017-7481 (GCVE-0-2017-7481)
Vulnerability from cvelistv5 – Published: 2018-07-19 13:00 – Updated: 2024-08-05 16:04| URL | Tags |
|---|---|
| https://access.redhat.com/errata/RHSA-2017:1599 | vendor-advisoryx_refsource_REDHAT |
| https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2… | x_refsource_CONFIRM |
| https://access.redhat.com/errata/RHSA-2017:1334 | vendor-advisoryx_refsource_REDHAT |
| http://www.securityfocus.com/bid/98492 | vdb-entryx_refsource_BID |
| https://github.com/ansible/ansible/commit/ed56f51… | x_refsource_CONFIRM |
| https://access.redhat.com/errata/RHSA-2017:1244 | vendor-advisoryx_refsource_REDHAT |
| https://access.redhat.com/errata/RHSA-2017:1499 | vendor-advisoryx_refsource_REDHAT |
| https://access.redhat.com/errata/RHSA-2017:2524 | vendor-advisoryx_refsource_REDHAT |
| https://access.redhat.com/errata/RHSA-2017:1476 | vendor-advisoryx_refsource_REDHAT |
| https://usn.ubuntu.com/4072-1/ | vendor-advisoryx_refsource_UBUNTU |
| https://lists.debian.org/debian-lts-announce/2021… | mailing-listx_refsource_MLIST |
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-05T16:04:11.540Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"name": "RHSA-2017:1599",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT",
"x_transferred"
],
"url": "https://access.redhat.com/errata/RHSA-2017:1599"
},
{
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481"
},
{
"name": "RHSA-2017:1334",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT",
"x_transferred"
],
"url": "https://access.redhat.com/errata/RHSA-2017:1334"
},
{
"name": "98492",
"tags": [
"vdb-entry",
"x_refsource_BID",
"x_transferred"
],
"url": "http://www.securityfocus.com/bid/98492"
},
{
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2"
},
{
"name": "RHSA-2017:1244",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT",
"x_transferred"
],
"url": "https://access.redhat.com/errata/RHSA-2017:1244"
},
{
"name": "RHSA-2017:1499",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT",
"x_transferred"
],
"url": "https://access.redhat.com/errata/RHSA-2017:1499"
},
{
"name": "RHSA-2017:2524",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT",
"x_transferred"
],
"url": "https://access.redhat.com/errata/RHSA-2017:2524"
},
{
"name": "RHSA-2017:1476",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT",
"x_transferred"
],
"url": "https://access.redhat.com/errata/RHSA-2017:1476"
},
{
"name": "USN-4072-1",
"tags": [
"vendor-advisory",
"x_refsource_UBUNTU",
"x_transferred"
],
"url": "https://usn.ubuntu.com/4072-1/"
},
{
"name": "[debian-lts-announce] 20210127 [SECURITY] [DLA 2535-1] ansible security update",
"tags": [
"mailing-list",
"x_refsource_MLIST",
"x_transferred"
],
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "ansible",
"vendor": "[UNKNOWN]",
"versions": [
{
"status": "affected",
"version": "ansible 2.3.1.0"
},
{
"status": "affected",
"version": "ansible 2.4.0.0"
}
]
}
],
"datePublic": "2017-05-09T00:00:00.000Z",
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"metrics": [
{
"cvssV3_0": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N",
"version": "3.0"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-20",
"description": "CWE-20",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2021-01-27T23:06:14.000Z",
"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
"shortName": "redhat"
},
"references": [
{
"name": "RHSA-2017:1599",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT"
],
"url": "https://access.redhat.com/errata/RHSA-2017:1599"
},
{
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481"
},
{
"name": "RHSA-2017:1334",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT"
],
"url": "https://access.redhat.com/errata/RHSA-2017:1334"
},
{
"name": "98492",
"tags": [
"vdb-entry",
"x_refsource_BID"
],
"url": "http://www.securityfocus.com/bid/98492"
},
{
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2"
},
{
"name": "RHSA-2017:1244",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT"
],
"url": "https://access.redhat.com/errata/RHSA-2017:1244"
},
{
"name": "RHSA-2017:1499",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT"
],
"url": "https://access.redhat.com/errata/RHSA-2017:1499"
},
{
"name": "RHSA-2017:2524",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT"
],
"url": "https://access.redhat.com/errata/RHSA-2017:2524"
},
{
"name": "RHSA-2017:1476",
"tags": [
"vendor-advisory",
"x_refsource_REDHAT"
],
"url": "https://access.redhat.com/errata/RHSA-2017:1476"
},
{
"name": "USN-4072-1",
"tags": [
"vendor-advisory",
"x_refsource_UBUNTU"
],
"url": "https://usn.ubuntu.com/4072-1/"
},
{
"name": "[debian-lts-announce] 20210127 [SECURITY] [DLA 2535-1] ansible security update",
"tags": [
"mailing-list",
"x_refsource_MLIST"
],
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html"
}
],
"x_legacyV4Record": {
"CVE_data_meta": {
"ASSIGNER": "secalert@redhat.com",
"ID": "CVE-2017-7481",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "ansible",
"version": {
"version_data": [
{
"version_value": "ansible 2.3.1.0"
},
{
"version_value": "ansible 2.4.0.0"
}
]
}
}
]
},
"vendor_name": "[UNKNOWN]"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "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."
}
]
},
"impact": {
"cvss": [
[
{
"vectorString": "5.3/CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N",
"version": "3.0"
}
]
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "CWE-20"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "RHSA-2017:1599",
"refsource": "REDHAT",
"url": "https://access.redhat.com/errata/RHSA-2017:1599"
},
{
"name": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481",
"refsource": "CONFIRM",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481"
},
{
"name": "RHSA-2017:1334",
"refsource": "REDHAT",
"url": "https://access.redhat.com/errata/RHSA-2017:1334"
},
{
"name": "98492",
"refsource": "BID",
"url": "http://www.securityfocus.com/bid/98492"
},
{
"name": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2",
"refsource": "CONFIRM",
"url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2"
},
{
"name": "RHSA-2017:1244",
"refsource": "REDHAT",
"url": "https://access.redhat.com/errata/RHSA-2017:1244"
},
{
"name": "RHSA-2017:1499",
"refsource": "REDHAT",
"url": "https://access.redhat.com/errata/RHSA-2017:1499"
},
{
"name": "RHSA-2017:2524",
"refsource": "REDHAT",
"url": "https://access.redhat.com/errata/RHSA-2017:2524"
},
{
"name": "RHSA-2017:1476",
"refsource": "REDHAT",
"url": "https://access.redhat.com/errata/RHSA-2017:1476"
},
{
"name": "USN-4072-1",
"refsource": "UBUNTU",
"url": "https://usn.ubuntu.com/4072-1/"
},
{
"name": "[debian-lts-announce] 20210127 [SECURITY] [DLA 2535-1] ansible security update",
"refsource": "MLIST",
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html"
}
]
}
}
}
},
"cveMetadata": {
"assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
"assignerShortName": "redhat",
"cveId": "CVE-2017-7481",
"datePublished": "2018-07-19T13:00:00.000Z",
"dateReserved": "2017-04-05T00:00:00.000Z",
"dateUpdated": "2024-08-05T16:04:11.540Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
GHSA-W578-J992-554X
Vulnerability from github – Published: 2018-09-06 03:28 – Updated: 2025-05-29 22:47Ansible before versions 2.1.6.0, 2.2.3.0, 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": [
{
"package": {
"ecosystem": "PyPI",
"name": "ansible"
},
"ranges": [
{
"events": [
{
"introduced": "2.3.0.0"
},
{
"fixed": "2.3.1.0"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "PyPI",
"name": "ansible"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.6.0"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "PyPI",
"name": "ansible"
},
"ranges": [
{
"events": [
{
"introduced": "2.2.0.0"
},
{
"fixed": "2.2.3.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.1.6.0, 2.2.3.0, 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": "2025-05-29T22:47:16Z",
"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/fd30f5328986f9e1da434474481f32bf918a600c"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/f0e348f5eeb70c1fb3127d90891da43b5c0a9d29"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2"
},
{
"type": "WEB",
"url": "https://github.com/ansible/ansible/commit/a1886911fcf4b691130cfc70dfc5daa5e07c46a3"
},
{
"type": "WEB",
"url": "https://web.archive.org/web/20170801122609/http://www.securityfocus.com/bid/98492"
},
{
"type": "WEB",
"url": "https://usn.ubuntu.com/4072-1"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2018-41.yaml"
},
{
"type": "PACKAGE",
"url": "https://github.com/ansible/ansible"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:2524"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1599"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1499"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1476"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1334"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2017:1244"
}
],
"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"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.