Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
MEDIUM severity

CVE-2021-3620 — ansible

MEDIUMFix: ansible/ansible@fe28767

CVE-2021-3620 is a medium-severity (CVSS 5.5) CWE-209 vulnerability in ansible. A fix is available for ansible — see the affected versions and patch details below.

Ansible discloses sensitive information in traceback error message

Also known asGHSA-4r65-35qq-ch8jPYSEC-2022-164
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Oct 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2021-3620.

EPSS Exploitation Probability

via FIRST.org ↗
0.4%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs31th percentile — riskier than 31% of all scored CVEsHighest risk
0.00%0.30%0.59%0.89%0.3%0.4%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2021-3620 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
🐍ansible

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

Ansible is an IT automation system that handles configuration management, application deployment, cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration. A flaw was found in Ansible Engine's ansible-connection module where sensitive information, such as the Ansible user credentials, is disclosed by default in the traceback error message when Ansible receives an unexpected response from set_options. The highest threat from this vulnerability is confidentiality.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIansibleall versions2.9.27pip install --upgrade 'ansible==2.9.27'

Affected Products

9 products · 10 configurations
Application
ansible automation platform early accessredhat
1 version
2.0
Application
ansible engineredhat
< 2.9.27
range
OS
enterprise linuxredhat
1 version
8.0
OS
enterprise linux for power little endianredhat
1 version
8.0
Application
openstackredhat
2 versions
116.1
Application
virtualizationredhat
1 version
4.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for ansible, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update ansible to 2.9.27 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-3620 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatImportant

Red Hat Gluster Storage 3 no longer maintains its own version of Ansible. The prerequisite is to enable the Ansible repository in order to consume the latest version of Ansible, which has many bug and security fixes. Red Hat Ceph Storage 2 only provides fixes for bugs on an as-requested basis by a customer, and will…

ProductFixed inAdvisory
Red Hat Ansible Automation Platform 2.0 for RHEL 8ansible-0:2.9.27-1.el8apRHSA-2021:3874
Red Hat Ansible Engine 2.9 for RHEL 7ansible-0:2.9.27-1.el7aeRHSA-2021:3871
Red Hat Ansible Engine 2 for RHEL 7ansible-0:2.9.27-1.el7aeRHSA-2021:3872
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8ansible-0:2.9.27-1.el8aeRHSA-2021:4703
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.4.9-202111172338_8.5RHSA-2021:4750
UbuntuMEDIUM

Frequently Asked Questions

Ansible is an IT automation system that handles configuration management, application deployment, cloud provisioning, ad-hoc task execution, network automation, and multi-node orchestration. A flaw was found in Ansible Engine's ansible-connection module where sensitive information, such as the Ansible user credentials, is disclosed by default in the traceback error message when Ansible receives an unexpected response from `set_options`. The highest threat from this vulnerability is confidentiality.
O3 Security · Impact-Aware SCA

Is CVE-2021-3620 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2021-3620: ansible — Fixed in 2.9.27