{"id":"CVE-2021-3681","state":"PUBLISHED","title":"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``","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.","publishedAt":"2022-04-18T16:20:37.000Z","updatedAt":"2024-08-03T17:01:07.697Z","severity":null,"assigner":"redhat","products":["n/a ansible"],"affected":[{"vendor":"n/a","product":"ansible","versions":[{"version":"ansible 3.3.0","status":"affected"}]}],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=1989407","https://github.com/ansible/galaxy/issues/1977"],"weaknesses":["CWE-522"],"ingestedAt":"2026-10-29T19:48:55.807Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/3xxx/CVE-2021-3681.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-3681","state":"PUBLISHED","datePublished":"2022-04-18T16:20:37.000Z","dateUpdated":"2024-08-03T17:01:07.697Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2021-08-03T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"ansible","versions":[{"version":"ansible 3.3.0","status":"affected"}]}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1989407","tags":["x_refsource_MISC"]},{"url":"https://github.com/ansible/galaxy/issues/1977","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-522","description":"CWE-522->CWE-212","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat","dateUpdated":"2022-04-18T16:20:37.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1989407","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/ansible/galaxy/issues/1977","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T17:01:07.697Z"}}]}}}