CVE-2025-57847
Ansible-automation-platform: privilege escalation via excessive group writable /etc/passwd permissions
CVSS Score
6.4
EPSS Score
0.1%
EPSS Percentile
4th
A container privilege escalation flaw was found in certain Ansible Automation Platform images. This issue arises from the /etc/passwd file being created with group-writable permissions during the build process. In certain conditions, an attacker who can execute commands within an affected container, even as a non-root user, can leverage their membership in the root group to modify the /etc/passwd file. This vulnerability allows an attacker to add a new user with any arbitrary UID, including UID 0, gaining full root privileges within the container.
| CWE | CWE-276 |
| Vendor | red hat |
| Product | red hat ansible automation platform 2.5 |
| Published | Apr 8, 2026 |
| Last Updated | Jul 21, 2026 |
Stay Ahead of the Next One
Get instant alerts for red hat red hat ansible automation platform 2.5
Be the first to know when new medium vulnerabilities affecting red hat red hat ansible automation platform 2.5 are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H Attack Vector
Local
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected Versions
Red Hat / Red Hat Ansible Automation Platform 2.5
All versions affected Red Hat / Red Hat Ansible Automation Platform 2.5
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected Red Hat / Red Hat Ansible Automation Platform 2
All versions affected References
Credits
Red Hat would like to thank Antony Di Scala and Mike Whale for reporting this issue.