# CVE-2021-3681: A flaw was found in Ansible Galaxy Collections.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2022-04-18T16:20:37.000Z
- Modified: 2026-06-17T04:05:33.560Z
- Weaknesses: CWE-522
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- ansible: ansible 3.3.0
- redhat ansible_automation_platform: 1.2
- redhat ansible_galaxy: 3.3.0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1989407> (issue-tracking, vendor-advisory)
- <https://github.com/ansible/galaxy/issues/1977> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-3681](https://www.cve.org/CVERecord?id=CVE-2021-3681), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3681](https://nvd.nist.gov/vuln/detail/CVE-2021-3681), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3681 · Whole record: https://cve.day/CVE-2021-3681.json · Rebuilt by cve.day 2026-11-25T22:58:07.390Z
