CVE-2021-3681

MEDIUM

Ansible Galaxy Collections - Insufficiently Protected Credentials via Build Ignore List

Title source: llm
STIX 2.1

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.

References (2)

Core 2
Core References
Issue Tracking, Vendor Advisory x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=1989407
Third Party Advisory x_refsource_misc
https://github.com/ansible/galaxy/issues/1977

Scores

CVSS v3 5.5
EPSS 0.0004
EPSS Percentile 13.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Details

CWE
CWE-522
Status published
Products (2)
redhat/ansible_automation_platform 1.2
redhat/ansible_galaxy 3.3.0
Published Apr 18, 2022
Tracked Since Feb 18, 2026