Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3681
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:50 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-3681
Complete source record
{
"id": "06ff289f68331350b0b914aa2037dc944bab41ef4998b52eefe6153ea876bbc1",
"url": "https://osv.dev/vulnerability/CVE-2021-3681",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3681",
"summary": "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.",
"evidence": "osv:CVE-2021-3681",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-3681",
"aliases": [
"CVE-2021-3681"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ansible/galaxy",
"type": "GIT",
"events": [
{
"introduced": "a0c909deff4ee036adb58e371d170f06807dd7f6"
},
{
"last_affected": "a0c909deff4ee036adb58e371d170f06807dd7f6"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:redhat:ansible_galaxy:3.3.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.0"
},
{
"last_affected": "3.3.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"3.3.0",
"v3.3.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3681.json"
}
}
],
"modified": "2026-10-20T10:54:49.065645963Z",
"provider": "osv",
"references": [
"https://github.com/ansible/galaxy/issues/1977",
"https://bugzilla.redhat.com/show_bug.cgi?id=1989407"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:ansible_automation_platform",
"extracted_events": [
{
"range": [
{
"introduced": "1.2"
},
{
"last_affected": "1.2"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-3681",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386193,
"published_at": "2022-04-18T17:15:15.507+00:00"
}