cve.bz

CVE-2021-3701 redhat ansible runner: Incorrect Default Permissions

6.6 mediumEPSS 0.3%Fix available

Medium (6.6) in redhat ansible runner. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in ansible-runner 2.1.0.

On this page
A flaw was found in ansible-runner where the default temporary files configuration in ansible-2.0.0 are written to world R/W locations. This flaw allows an attacker to pre-create the directory, resulting in reading private information or forcing ansible-runner to write files as the legitimate user in a place they did not expect. The highest threat from this vulnerability is to confidentiality and integrity.

Severity

CVSS 3.1

6.6 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-276 Incorrect Default Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3701 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3701?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3701?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3701 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
redhat:ansible_runner2.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wwch-cmqr-hhrmPyPIansible-runner>=2.0.0 <2.1.02.1.0
PYSEC-2022-43067PyPIansible-runner>=2.0.0 <2.1.02.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ansible-runner2.1.1-1DEBIAN-CVE-2021-3701

From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Ceph Storage 4 ships an older version of ansible-runner, which does not include the affected code. However, it does use a hardcoded path to the private data, with shipping a vulnerable os.path.join functionality, which could result in an attacker pre-creating the directory for the private data with world R/W permissions as in this exploit. As a result, it has been assigned an impact of low.

ProductPackageStateAdvisory
CloudForms Management Engine 5ansible-runnerNot affected
Red Hat Ansible Automation Platform 1.2ansible-runnerNot affected
Red Hat Ansible Automation Platform 2ansible-runnerNot affected
Red Hat Ansible Tower 3ansible-runnerNot affected
Red Hat Ansible Tower 3python2-ansible-runnerNot affected
Red Hat Ansible Tower 3python3-ansible-runnerNot affected
Red Hat Ceph Storage 4ansible-runnerFix deferred
Red Hat OpenShift Container Platform 3.11ansible-runnerNot affected
Red Hat OpenShift Container Platform 4ansible-runnerNot affected
Red Hat OpenStack Platform 13 (Queens)python-ansible-runnerNot affected
Red Hat OpenStack Platform 16 (Train)python-ansible-runnerNot affected
Red Hat Satellite 6ansible-runnerNot affected
Red Hat Virtualization 4ansible-runnerNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3701.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON