Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. ansible
  4. ›
  5. CVE-2021-20191

CVE-2021-20191: Insertion of Sensitive Information into Log File in ansible

June 1, 2021 (updated September 10, 2024)

A flaw was found in ansible. Credentials, such as secrets, are being disclosed in console log by default and not protected by no_log feature when using those modules. An attacker can take advantage of this information to steal those credentials. The highest threat from this vulnerability is to data confidentiality.

References

  • access.redhat.com/security/cve/cve-2021-20191
  • bugzilla.redhat.com/show_bug.cgi?id=1916813
  • github.com/advisories/GHSA-8f4m-hccc-8qph
  • github.com/ansible/ansible
  • github.com/ansible/ansible/commit/cc82d986c40328d4ae81298a9d287c95a6326bb0
  • github.com/ansible/ansible/commit/d74a1b1d1325af2a24848044cf2858987f5a3ecc
  • github.com/ansible/ansible/pull/73488
  • github.com/ansible/ansible/pull/73489
  • github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-124.yaml
  • lists.debian.org/debian-lts-announce/2023/12/msg00018.html
  • nvd.nist.gov/vuln/detail/CVE-2021-20191

Code Behaviors & Features

Detect and mitigate CVE-2021-20191 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.9.0a1 before 2.9.18rc1, all versions starting from 2.10.0a1 before 2.10.7, all versions before 2.8.19rc1

Fixed versions

  • 2.9.18rc1
  • 2.8.19rc1
  • 2.10.7

Solution

Upgrade to versions 2.10.7, 2.8.19rc1, 2.9.18rc1 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-532: Insertion of Sensitive Information into Log File

Source file

pypi/ansible/CVE-2021-20191.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:53 +0000.