Vulnerability 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 Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Redhat | Ansible Automation Platform | 1.2 |
| Redhat | Ansible Galaxy | 3.3.0 |
Related Weaknesses (CWE)
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1989407Issue TrackingVendor Advisory
- https://github.com/ansible/galaxy/issues/1977Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1989407Issue TrackingVendor Advisory
- https://github.com/ansible/galaxy/issues/1977Third Party Advisory
FAQ
What is CVE-2021-3681?
CVE-2021-3681 is a vulnerability with a CVSS score of 5.5 (MEDIUM). 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...
How severe is CVE-2021-3681?
CVE-2021-3681 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-3681?
Check the references section above for vendor advisories and patch information. Affected products include: Redhat Ansible Automation Platform, Redhat Ansible Galaxy.