Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-20228

A flaw was found in the Ansible Engine 2.9.18, where sensitive info is not masked by default and is not protected by the no_log feature when using the sub-option feature of the basic.py module. This flaw allows an attacker to obtain sensitive information. The highest threat from this vulnerability is to confidentiality.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-20228
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:38 UTC · Revision 1

Source evidence

CVE-2021-20228

core-osv · Original source

Published 29 Apr 2021, 16:15 UTC

A flaw was found in the Ansible Engine 2.9.18, where sensitive info is not masked by default and is not protected by the no_log feature when using the sub-option feature of the basic.py module. This flaw allows an attacker to obtain sensitive information. The highest threat from this vulnerability is to confidentiality.

osv:CVE-2021-20228
Complete source record
{
  "id": "22fbea3134ee8c31f116c3ba081497bacefa37ab69e75a119b3395ce70624556",
  "url": "https://osv.dev/vulnerability/CVE-2021-20228",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-20228",
    "summary": "A flaw was found in the Ansible Engine 2.9.18, where sensitive info is not masked by default and is not protected by the no_log feature when using the sub-option feature of the basic.py module. This flaw allows an attacker to obtain sensitive information. The highest threat from this vulnerability is to confidentiality.",
    "evidence": "osv:CVE-2021-20228",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-20228",
      "aliases": [
        "CVE-2021-20228",
        "GHSA-5rrg-rr89-x9mv",
        "PYSEC-2021-1"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ansible/ansible",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4455e60166a8271771d96c24f47b6714130d200f"
                },
                {
                  "last_affected": "02572cb9ec94462261c035b33de506e4e505b3ca"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:redhat:ansible_engine:2.9.18:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.9.18"
                      },
                      {
                        "last_affected": "2.9.18"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:redhat:ansible_engine:2.9:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.9"
                      },
                      {
                        "last_affected": "2.9"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.9",
            "2.9.18"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-20228.json"
          }
        }
      ],
      "modified": "2026-10-24T10:47:52.045960029Z",
      "provider": "osv",
      "references": [
        "https://www.debian.org/security/2021/dsa-4950",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1925002",
        "https://github.com/ansible/ansible/pull/73487"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:ansible_automation_platform",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.2"
                  },
                  {
                    "last_affected": "1.2"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:ansible_engine:2.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:ansible_engine",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.0"
                  },
                  {
                    "last_affected": "2.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:ansible_tower:3.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:ansible_tower",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.0"
                  },
                  {
                    "last_affected": "3.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-20228",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 441581,
  "published_at": "2021-04-29T16:15:09.737+00:00"
}