Vulnerability · Published Apr 8, 2026 · Assigned by redhat

CVE-2025-57847Ansible-automation-platform: privilege escalation via excessive group writable /etc/passwd permissions

Medium 6.4

In plain English

A medium-severity incorrect default permissions in Red Hat Ansible Automation Platform 2 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities).

Severity (CVSS 3.1)6.4Medium
Exploit odds (30 days)0.2%top 91.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected products (as reported)

VendorProductVersions
Red Hat Red Hat Ansible Automation Platform 2.16 see references
Red Hat Red Hat Ansible Automation Platform 2.16 see references
Red Hat Red Hat Ansible Automation Platform 2.18 see references
Red Hat Red Hat Ansible Automation Platform 2.18 see references
Red Hat Red Hat Ansible Automation Platform 2.5 see references
Red Hat Red Hat Ansible Automation Platform 2.5 see references
Red Hat Red Hat Ansible Automation Platform 2.5 see references
Red Hat Red Hat Ansible Automation Platform 2.5 see references
Red Hat Red Hat Ansible Automation Platform 2.6 see references
Red Hat Red Hat Ansible Automation Platform 2.6 see references
Red Hat Red Hat Ansible Automation Platform 2.6 see references
Red Hat Red Hat Ansible Automation Platform 2.7 see references
Red Hat Red Hat Ansible Automation Platform 2.7 see references
Red Hat Red Hat Ansible Automation Platform 2.7 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform 2 see references
Red Hat Red Hat Ansible Automation Platform Ansible Core 2 see references
Red Hat Red Hat Ansible Automation Platform Ansible Core 2 see references

Weakness: CWE-276 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

References