# CVE-2021-3620: Ansible discloses sensitive information in traceback error message

Source: https://junglewise.ai/threats/cve-2021-3620-ansible-discloses-sensitive-information-in-traceback-error-message  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-03-03  
License: CC BY 4.0 with a link back

CVE-2021-3620 · Severity: low · CVSS 3.1 · Published 2022-03-03

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. The highest threat from this vulnerability is to confidentiality.

Technologies: [ansible (PyPI)](https://junglewise.ai/threats/technologies/ansible). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2021-3620 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-3620 being exploited in the wild.

**How severe is CVE-2021-3620?** Low severity, with a CVSS score of 3.1, published 3 March 2022.

**Which products and versions are affected?** ansible (PyPI) ECOSYSTEM:introduced=0,fixed=2.9.27, GIT:introduced=0,fixed=fe28767970c8ec62aabe493c46b53a5de1e5fac0|ECOSYSTEM:introduced=0,fixed=2.9.27.

**Is there a fix for CVE-2021-3620?** Yes. ansible (PyPI): upgrade to 2.9.27 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-3620?** Check whether you run ansible (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- ansible (PyPI): upgrade to 2.9.27 or later

  ```sh
  pip install "ansible>=2.9.27"
  ```


## Affected products

- ansible (PyPI) ECOSYSTEM:introduced=0,fixed=2.9.27, GIT:introduced=0,fixed=fe28767970c8ec62aabe493c46b53a5de1e5fac0|ECOSYSTEM:introduced=0,fixed=2.9.27

## Identifiers

- CVE-2021-3620
- GHSA-4r65-35qq-ch8j
- PYSEC-2022-164

## Related threats

- [PYSEC-2026-1120 - Ansible symlink attack vulnerability](https://junglewise.ai/threats/cve-2023-5115-ansible-symlink-attack-vulnerability)
- [PYSEC-2026-768 - Ansible leaks password to logs](https://junglewise.ai/threats/cve-2022-3697-ansible-leaks-password-to-logs)
- [PYSEC-2026-618 - Insertion of Sensitive Information into Log File in ansible](https://junglewise.ai/threats/cve-2021-20180-insertion-of-sensitive-information-into-log-file-in-ansible)
- [Ansible community.general information exposure in Keycloak user module](https://junglewise.ai/threats/cve-2025-14010-ansible-community-general-information-exposure-in-keycloak-user)
- [Ansible template injection and command injection](https://junglewise.ai/threats/cve-2021-3583-ansible-template-injection-and-command-injection)
