CVE-2017-7481: Ansible before versions 2.3.1.0 and 2.4.0.0 fails to properly mark lookup-plugin results as unsafe.
Noroxi assessment
Priority: Plan (action score 40/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 4.7% (FIRST EPSS); higher than 92% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: ansible (Debian:12) 2.3.1.0+dfsg-1; ansible (Debian:9) 2.2.1.0-2+deb9u2; ansible-10 (openSUSE:Tumbleweed) 10.6.0-1.1.
- Severity is disputed: the assigning authority (CNA) scores it 5.3, NVD 9.8.
Add it to your regular patch cycle. Upgrade to ansible (Debian:12) 2.3.1.0+dfsg-1; ansible (Debian:9) 2.2.1.0-2+deb9u2; ansible-10 (openSUSE:Tumbleweed) 10.6.0-1.1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2020-02914
- GHSA-w578-j992-554x
- DLA-2535-1
- openSUSE-SU-2017:2976-1
- openSUSE-SU-2017:2978-1
- openSUSE-SU-2019:0238-1
- openSUSE-SU-2024:14244-1
- openSUSE-SU-2024:14536-1
- openSUSE-SU-2025:15605-1
- openSUSE-SU-2025:15753-1
- openSUSE-SU-2026:10944-1
- openSUSE-SU-2026:12447-1
- PYSEC-2018-41
- RHSA-2017:1244
- RHSA-2017:1334
- RHSA-2017:1476
- RHSA-2017:1499
- RHSA-2017:1599
- RHSA-2017:2524
- SUSE-SU-2017:3029-1
- Published
- Jul 19, 2018
- Updated
- Jun 16, 2026
- EPSS
- 4.7% · 92th percentile
- CWE
- CWE-20
Report tools
Action score
40
Add it to your regular patch cycle.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 4.7%
CNA vs NVD score
- NVD
- 9.8
- CNA · redhat
- 5.3
- 4.5 point gap
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| redhat | openshift container platform | cpe:2.3:a:redhat:openshift_container_platform |
| redhat | openstack | cpe:2.3:a:redhat:openstack |
| redhat | storage console | cpe:2.3:a:redhat:storage_console |
| redhat | virtualization | cpe:2.3:a:redhat:virtualization |
| redhat | virtualization manager | cpe:2.3:a:redhat:virtualization_manager |
| redhat | gluster storage | cpe:2.3:a:redhat:gluster_storage |
| redhat | enterprise linux | cpe:2.3:o:redhat:enterprise_linux |
| redhat | ansible engine | cpe:2.3:a:redhat:ansible_engine |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
[UNKNOWN] ansible
- ansible 2.4.0.0, ansible 2.3.1.0affected
Affected versions · NVD (15)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux16.04
- canonical ubuntu linux18.04
- canonical ubuntu linux19.04
- debian debian linux9.0
- redhat ansible engine2.3.2.0 and later · before 2.4.0.0
- redhat ansible enginebefore 2.3.1.0
- redhat gluster storage3.2
- redhat openshift container platform3.3
- redhat openshift container platform3.4
- redhat openshift container platform3.5
- redhat openstack10
- redhat openstack11
- redhat storage console2.0
- redhat virtualization4.1
- redhat virtualization manager4.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | ansible | before 2.3.1.0+dfsg-1 | 2.3.1.0+dfsg-1 |
| Debian:9 | ansible | before 2.2.1.0-2+deb9u2 | 2.2.1.0-2+deb9u2 |
| openSUSE:Tumbleweed | ansible-10 | before 10.6.0-1.1 | 10.6.0-1.1 |
| openSUSE:Tumbleweed | ansible-11 | before 11.11.0-1.1 | 11.11.0-1.1 |
| openSUSE:Tumbleweed | ansible-12 | before 12.2.0-1.1 | 12.2.0-1.1 |
| openSUSE:Tumbleweed | ansible-13 | before 13.7.0-1.1 | 13.7.0-1.1 |
| openSUSE:Tumbleweed | ansible-14 | before 14.6.0-1.1 | 14.6.0-1.1 |
| openSUSE:Tumbleweed | ansible-9 | before 9.8.0-1.1 | 9.8.0-1.1 |
| PyPI | ansible | from 2.2.0.0 · before 2.2.3.0 | 2.2.3.0 |
| PyPI | ansible | from 2.3.0.0 · before 2.3.1.0 | 2.3.1.0 |
| PyPI | ansible | from 2.3.2.0 · before 2.4.0.0 | 2.4.0.0 |
| PyPI | ansible | before 2.3.1.0 | 2.3.1.0 |
| PyPI | ansible | before 2.1.6.0 | 2.1.6.0 |
| Red Hat:openshift:3.2::el7 | ansible | before 0:2.2.3.0-1.el7 | 0:2.2.3.0-1.el7 |
| Red Hat:openshift:3.2::el7 | atomic-openshift-utils | before 0:3.2.56-1.git.0.b844ab7.el7 | 0:3.2.56-1.git.0.b844ab7.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible | before 0:3.2.56-1.git.0.b844ab7.el7 | 0:3.2.56-1.git.0.b844ab7.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible-docs | before 0:3.2.56-1.git.0.b844ab7.el7 | 0:3.2.56-1.git.0.b844ab7.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible-filter-plugins | before 0:3.2.56-1.git.0.b844ab7.el7 | 0:3.2.56-1.git.0.b844ab7.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible-lookup-plugins | before 0:3.2.56-1.git.0.b844ab7.el7 | 0:3.2.56-1.git.0.b844ab7.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible-playbooks | before 0:3.2.56-1.git.0.b844ab7.el7 | 0:3.2.56-1.git.0.b844ab7.el7 |
| Red Hat:openshift:3.2::el7 | openshift-ansible-roles | before 0:3.2.56-1.git.0.b844ab7.el7 | 0:3.2.56-1.git.0.b844ab7.el7 |
| Red Hat:openshift:3.3::el7 | atomic-openshift-utils | before 0:3.3.82-1.git.0.af0c922.el7 | 0:3.3.82-1.git.0.af0c922.el7 |
| Red Hat:openshift:3.3::el7 | openshift-ansible | before 0:3.3.82-1.git.0.af0c922.el7 | 0:3.3.82-1.git.0.af0c922.el7 |
| Red Hat:openshift:3.3::el7 | openshift-ansible-callback-plugins | before 0:3.3.82-1.git.0.af0c922.el7 | 0:3.3.82-1.git.0.af0c922.el7 |
+27
Same product
redhat: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-1085openshift-ansible before versions 3.9.23, 3.7.46 deploys a misconfigured etcd file that causes the SSL client certificate authentication to…40Plan
- CVE-2020-27836A flaw was found in cluster-ingress-operator.39Monitor
- CVE-2019-3899It was found that default configuration of Heketi does not require any authentication potentially exposing the management interface to…39Monitor
Published before and after this one in the same product
- ← EarlierCVE-2018-1070Jun 12, 2018 · routing before version 3.10 is vulnerable to an improper input validation of the Openshift Routing configuration which can cause an entire…30Monitor
- ← EarlierCVE-2018-10843Jul 2, 2018 · source-to-image component of Openshift Container Platform before versions atomic-openshift 3.7.53, atomic-openshift 3.9.31 is vulnerable to…35Monitor
- Later →CVE-2017-12195Jul 27, 2018 · A flaw was found in all Openshift Enterprise versions using the openshift elasticsearch plugin.19Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:ansible | 2.3.1.0+dfsg-1 · Debian:12 | Package registry (OSV) |
| opensuse:ansible-10 | 10.6.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ansible-11 | 11.11.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ansible-12 | 12.2.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ansible-13 | 13.7.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ansible-14 | 14.6.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ansible-9 | 9.8.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| PyPI:ansible | 2.1.6.0 | Package registry (OSV) |
| PyPI:ansible | 2.2.3.0 | Package registry (OSV) |
| PyPI:ansible | 2.3.1.0 | Package registry (OSV) |
| PyPI:ansible | 2.4.0.0 | Package registry (OSV) |
| red hat:ansible | 0:2.2.3.0-1.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:ansible-doc | 0:2.3.1.0-3.el7 · Red Hat:rhev_manager:4 | Package registry (OSV) |
| red hat:atomic-openshift-utils | 0:3.2.56-1.git.0.b844ab7.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible | 0:3.2.56-1.git.0.b844ab7.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible-callback-plugins | 0:3.3.82-1.git.0.af0c922.el7 · Red Hat:openshift:3.3::el7 | Package registry (OSV) |
| red hat:openshift-ansible-docs | 0:3.2.56-1.git.0.b844ab7.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible-filter-plugins | 0:3.2.56-1.git.0.b844ab7.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible-lookup-plugins | 0:3.2.56-1.git.0.b844ab7.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible-playbooks | 0:3.2.56-1.git.0.b844ab7.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| red hat:openshift-ansible-roles | 0:3.2.56-1.git.0.b844ab7.el7 · Red Hat:openshift:3.2::el7 | Package registry (OSV) |
| suse:ansible | 2.2.3.0-5.1 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
| suse:monasca-installer | 20170912_10.45-5.1 · SUSE:OpenStack Cloud 7 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (10 more)Show less
- access.redhat.com/errata/RHSA-2017:1244
- access.redhat.com/errata/RHSA-2017:1334
- access.redhat.com/errata/RHSA-2017:1476
- access.redhat.com/errata/RHSA-2017:1499
- access.redhat.com/errata/RHSA-2017:1599
- access.redhat.com/errata/RHSA-2017:2524
- bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481
- github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2
- lists.debian.org/debian-lts-announce/2021/01/msg00023.html
- usn.ubuntu.com/4072-1/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.