CVE-2025-57847: Incorrect Default Permissions in Red Hat Red Hat Ansible Automation Platform 2.16
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.
AI Analysis
Technical Summary
This vulnerability arises because certain container images of Red Hat Ansible Automation Platform 2.5 create the /etc/passwd file with group-writable permissions. If an attacker can execute commands inside the container and is part of the root group, they can exploit this permission misconfiguration to modify /etc/passwd. This allows the attacker to add a new user with any UID, including UID 0, effectively escalating privileges to root within the container. The flaw affects version 2 of the product. Red Hat has issued security advisories (RHSA-2026:42141 and RHSA-2026:42144) and released updated container images and patches to remediate this issue.
Potential Impact
An attacker with command execution inside an affected container and membership in the root group can escalate privileges to root by modifying the /etc/passwd file. This grants full root privileges within the container, potentially allowing unauthorized actions and control over containerized workloads.
Mitigation Recommendations
Red Hat has released official security updates for Red Hat Ansible Automation Platform 2.5 that address this vulnerability. Users should apply these updates as described in the Red Hat advisories RHSA-2026:42141 and RHSA-2026:42144. Before applying the update, ensure all previously released errata relevant to your system have been applied. Follow the official Red Hat documentation for upgrading: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5#Upgrading. No additional mitigations are required once the update is applied.
CVE-2025-57847: Incorrect Default Permissions in Red Hat Red Hat Ansible Automation Platform 2.16
Description
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.
CVSS v3.1
Score 6.4medium
Affected software
Red Hat
Red Hat Ansible Automation Platform 2.16
Red Hat
Red Hat Ansible Automation Platform 2.18
Red Hat
Red Hat Ansible Automation Platform 2.5
Red Hat
Red Hat Ansible Automation Platform 2.5
Red Hat
Red Hat Ansible Automation Platform 2
Red Hat
Red Hat Ansible Automation Platform 2
pkg:rpm/redhat/redhat-ansible-automation-platformRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises because certain container images of Red Hat Ansible Automation Platform 2.5 create the /etc/passwd file with group-writable permissions. If an attacker can execute commands inside the container and is part of the root group, they can exploit this permission misconfiguration to modify /etc/passwd. This allows the attacker to add a new user with any UID, including UID 0, effectively escalating privileges to root within the container. The flaw affects version 2 of the product. Red Hat has issued security advisories (RHSA-2026:42141 and RHSA-2026:42144) and released updated container images and patches to remediate this issue.
Potential Impact
An attacker with command execution inside an affected container and membership in the root group can escalate privileges to root by modifying the /etc/passwd file. This grants full root privileges within the container, potentially allowing unauthorized actions and control over containerized workloads.
Mitigation Recommendations
Red Hat has released official security updates for Red Hat Ansible Automation Platform 2.5 that address this vulnerability. Users should apply these updates as described in the Red Hat advisories RHSA-2026:42141 and RHSA-2026:42144. Before applying the update, ensure all previously released errata relevant to your system have been applied. Follow the official Red Hat documentation for upgrading: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5#Upgrading. No additional mitigations are required once the update is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2025-08-21T14:40:40.821Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2025-57847","vendor":"Red Hat"}]
Threat ID: 69d664421cc7ad14da7c09ae
Added to database: 04/08/2026, 14:20:50 UTC
Last enriched: 08/08/2026, 13:25:25 UTC
Last updated: 09/10/2026, 19:46:15 UTC
Views: 223
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.