cbcvebase.
CVE-2017-7481
published 2018-07-19

CVE-2017-7481: 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…

PriorityP358critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
ITW
Exploited in the wild
EPSS
4.80%
91.0th percentile
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

25 ranges
VendorProductVersion rangeFixed in
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debianansible< ansible 2.3.1.0+dfsg-1 (bookworm)ansible 2.3.1.0+dfsg-1 (bookworm)
debiandebian_linux
redhatansible>= 0 < 2.3.1.0+dfsg-12.3.1.0+dfsg-1
redhatansible>= 0 < 2.3.1.0+dfsg-12.3.1.0+dfsg-1
redhatansible>= 0 < 2.3.1.0+dfsg-12.3.1.0+dfsg-1
redhatansible>= 0 < 2.3.1.0+dfsg-12.3.1.0+dfsg-1
redhatansible>= 0 < 2.1.6.02.1.6.0
redhatansible>= 0 < 2.0.0.2-2ubuntu1.32.0.0.2-2ubuntu1.3
redhatansible>= 0 < 2.5.1+dfsg-1ubuntu0.12.5.1+dfsg-1ubuntu0.1
redhatansible>= 2.2.0.0 < 2.2.3.02.2.3.0
redhatansible>= 2.3.0.0 < 2.3.1.02.3.1.0
redhatansible_engine< 2.3.1.02.3.1.0
redhatansible_engine>= 2.3.2.0 < 2.4.0.02.4.0.0
redhatgluster_storage
redhatopenshift_container_platform
redhatopenshift_container_platform
redhatopenshift_container_platform
redhatopenstack
redhatopenstack
redhatstorage_console
redhatvirtualization
redhatvirtualization_manager

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv3.05.3MEDIUMCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.