CVE-2021-3681: Medium severity redhat Ansible Automation Platform vulnerability

Published Aug 3, 2021
·
Updated

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 buildignore 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 thenolog 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.

Other sources

When someone is manually building collections, any files in the repository directory that are not explicitly excluded via the buildignore list in the galaxy.yml file will be included in the .tar.gz file which may include the user's Ansible Galaxy API key, any secrets in ansible or ansible-playbook verbose output without nolog redaction, or any other secrets that a developer unknowingly places in the repository directory while developing and testing the collection. Once published, anyone who downloads or installs the collection will possess the secrets.

Red Hat

Affected Software

2 affected components
redhat Ansible Automation Platform=1.2
redhat Ansible Galaxy=3.3.0

Event History

Aug 3, 2021
Data Sourced
07:25 AM
DescriptionSeverityAffected Software
Apr 18, 2022
CVE Published
via MITRE·04:20 PM
Data Sourced
via MITRE·04:20 PM
DescriptionWeakness

Frequently Asked Questions

1

What is CVE-2021-3681?

CVE-2021-3681 is a vulnerability found in Ansible Galaxy Collections that allows sensitive files to be included in the .tar.gz file when collections are built manually.

2

What is the severity of CVE-2021-3681?

The severity of CVE-2021-3681 is rated as high with a severity value of 5.5.

3

How does CVE-2021-3681 affect Redhat Ansible Automation Platform?

Redhat Ansible Automation Platform version 1.2 is affected by CVE-2021-3681.

4

How does CVE-2021-3681 affect Redhat Ansible Galaxy?

Redhat Ansible Galaxy version 3.3.0 is affected by CVE-2021-3681.

5

How can I fix CVE-2021-3681?

To fix CVE-2021-3681, make sure to explicitly exclude sensitive files via the "build_ignore" list in "galaxy.yml" when building collections manually in Ansible Galaxy.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203