CVE-2021-20228Redhat Ansible Engine
High 7.5 No auth needed
Follow: this CVE · Redhat · Redhat Ansible Engine We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Ansible Engine.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| redhat | ansible_engine | 2.9.18 |
| redhat | ansible_automation_platform | 1.2 |
| redhat | ansible_engine | 2.0 |
| redhat | ansible_engine | 2.9 |
| redhat | ansible_tower | 3.0 |
| debian | debian_linux | 10.0 |
Official advisories
- ansible-14-14.6.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12447-1 · Nov 6, 2026 Critical
- ansible-13-13.7.0-1.1 on GA media · SUSE · openSUSE-SU-2026:10944-1 · Jun 3, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Third Party Advisory
- github.com Patch Third Party Advisory
- www.debian.org Third Party Advisory