CVE-2017-7481

CRITICALCVSS 9.8/10EPSS 4.62%

Last modified

CVE-2017-7481 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 4.62% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
9.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
4.62%

90.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
RedhatOpenshift Container Platform3.3
RedhatOpenshift Container Platform3.4
RedhatOpenshift Container Platform3.5
RedhatOpenstack10
RedhatOpenstack11
RedhatStorage Console2.0
RedhatVirtualization4.1
RedhatVirtualization Manager4.1
RedhatGluster Storage3.2
RedhatAnsible Engine< 2.3.1.0
RedhatAnsible Engine>= 2.3.2.0, < 2.4.0.0
CanonicalUbuntu Linux16.04
CanonicalUbuntu Linux18.04
CanonicalUbuntu Linux19.04
DebianDebian Linux9.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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, 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.
How severe is CVE-2017-7481?
CVE-2017-7481 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 4.62% probability of exploitation in the next 30 days.
How do I fix CVE-2017-7481?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2017-7481?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST