Medium severity · published Apr 18, 2022
CVE-2021-3681
A flaw was found in Ansible Galaxy Collections
5.5
CVSS
0.2%
EPSS
No
On KEV
Description
A flaw was found in Ansible Galaxy Collections. When collections are built manually, any files in the repository directory that are not explicitly excluded via the ``build_ignore`` list in "galaxy.yml" include files in the ``.tar.gz`` file. This contains sensitive info, such as the user's Ansible Galaxy API key and any secrets in ``ansible`` or ``ansible-playbook`` verbose output without the``no_log`` redaction. Currently, there is no way to deprecate a Collection Or delete a Collection Version. Once published, anyone who downloads or installs the collection can view the secrets.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 16% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AA
Ansible Automation Platform · Redhat
1.2 · source: NVD
AG
Ansible Galaxy · Redhat
3.3.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-3681
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-3681
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=1989407
Third Party Advisory
https://github.com/ansible/galaxy/issues/1977
More from Ansible Automation Platform
6.5
CVE-2026-48710
Starlette has missing Host header validation that poisons request.url.path, bypassing path-based security checks
8.8
CVE-2021-4112
A flaw was found in ansible-tower where the default installation is vulnerable to job isolation escape
7.8
CVE-2023-5764
A template injection flaw was found in Ansible where a user's controller internal templating operations may remove the unsafe designation from template data
7.8
CVE-2023-4237
A flaw was found in the Ansible Automation Platform
7.7
CVE-2026-44495
Axios: Credential Theft and Response Hijacking via Prototype Pollution Gadget in Config Merge
