Live threats

All CVEs / Redhat

CVE-2021-20228Redhat Ansible Engine

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.0%
probability of exploitation in 30 days · percentile 82
Auth required
No
Published
Apr 29, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ansible Engine.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI ansible ≥ 2.10.0a1 < 2.10.6rc1 2.10.6rc1 pip install "ansible>=2.10.6rc1"
PyPI ansible ≥ 2.9.0a1 < 2.9.18rc1 2.9.18rc1 pip install "ansible>=2.9.18rc1"
PyPI ansible < 2.8.19rc1 2.8.19rc1 pip install "ansible>=2.8.19rc1"
PyPI ansible < 2.9.19 2.9.19 pip install "ansible>=2.9.19"

Per OSV / GitHub Advisories (GHSA-5rrg-rr89-x9mv, PYSEC-2021-1). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
redhatansible_engine2.9.18
redhatansible_automation_platform1.2
redhatansible_engine2.0
redhatansible_engine2.9
redhatansible_tower3.0
debiandebian_linux10.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.