Vulnerability · Published Apr 18, 2022 · Assigned by redhat
CVE-2021-3681
Medium 5.5
In plain English
A medium-severity security flaw in ansible. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 16% of all known vulnerabilities).
Official 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.
Affected products (as reported)
Weakness: CWE-522
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1989407 x_refsource_MISC
- https://github.com/ansible/galaxy/issues/1977 x_refsource_MISC