Medium [CVE-2025-57847] privilege escalation via excessive group writable /etc/passwd permissions
This medium-severity Red Hat Linux advisory covers CVE-2025-57847 affecting Red Hat Ansible Automation Platform 2.5, Red Hat Ansible Automation Platform Ansible Core 2.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.
Summary
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.
Red Hat Product Security has rated this vulnerability as moderate severity for affected products which run on OpenShift. The vulnerability allows for potential privilege escalation within a container, but OpenShift's default, multi-layered security posture effectively mitigates this risk.
The primary controls include the default Security Context Constraints (SCC), which severely limit a container's permissions from the start, and SELinux, which enforces mandatory access control to ensure strict isolation.
While other container runtime environments may have different controls available and require case-by-case analysis, OpenShift's built-in defenses are designed to prevent this type of attack. Out of Box RHEL configuration isolates a single process inside a container.
Affected versions
No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.
Official advisory · high-confidence parse· fetched 19 days ago·verify at source
- ansible-automation-platform-25/ee-minimal-rhel8:1784035663
- ansible-automation-platform-25/ee-minimal-rhel9:1784051694
- RHSA-2026:42144
- RHSA-2026:42141
Official advisory · high-confidence parse· fetched 19 days ago·verify at source
Mitigation
Upgrade to a fixed release: ansible-automation-platform-25/ee-minimal-rhel8:1784035663, ansible-automation-platform-25/ee-minimal-rhel9:1784051694, RHSA-2026:42144, RHSA-2026:42141. That is the remediation for this advisory.
The vendor advisory may list additional interim mitigations or workarounds not captured here — review it before change work.
Official advisory · high-confidence parse· fetched 19 days ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.