Back
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…
Medium5.3EPSS 4.8%
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.0 | Medium5.3 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 4.8% · top 8.1% of all CVEs (2 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Weakness
Affected products
[UNKNOWN] · ansible
- affected ansible 2.3.1.0
- affected ansible 2.4.0.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIansibleGHSA-w578-j992-554x (opens in a new tab)
References (11)
- RHSA-2017:1599 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481 (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2017:1334 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 98492 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2 (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2017:1244 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2017:1499 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2017:2524 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2017:1476 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- USN-4072-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- [debian-lts-announce] 20210127 [SECURITY] [DLA 2535-1] ansible security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-w578-j992-554x (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .