CVE-2025-57847
JSON

6.4medium

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

Severity
6.4medium CVSS:3.1 by redhat
Exploit likelihood
0.19% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

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

Product or packageVersionsReported by
ansible-automation-platform/ee-minimal-rhel8Not specified
Not affected: from 1789001438 before *, from 1789023329 before *
CVE List
ansible-automation-platform/ee-minimal-rhel9Not specified
Not affected: from 1789023765 before *, from 1789001715 before *
CVE List
ansible-automation-platform-25/ee-minimal-rhel8Not specified
Not affected: from 1784035663 before *
CVE List
ansible-automation-platform-25/de-minimal-rhel8Not specified
Not affected: from 1789634812 before *
CVE List
ansible-automation-platform-25/ee-minimal-rhel9Not specified
Not affected: from 1784051694 before *
CVE List
ansible-automation-platform-25/de-minimal-rhel9Not specified
Not affected: from 1789654540 before *
CVE List
ansible-automation-platform-26/de-minimal-rhel9Not specified
Not affected: from 1789658734 before *
CVE List
ansible-automation-platform-26/de-supported-rhel9Not specified
Not affected: from 1789661423 before *
CVE List
ansible-automation-platform-26/ee-minimal-rhel9Not specified
Not affected: from 1789654312 before *
CVE List
ansible-automation-platform-27/ee-minimal-rhel9Not specified
Not affected: from 1788901236 before *
CVE List
ansible-automation-platform-27/de-minimal-rhel9Not specified
Not affected: from 1789582543 before *
CVE List
ansible-automation-platform-27/de-supported-rhel9Not specified
Not affected: from 1789584820 before *
CVE List

Classification

CWE-276

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Una falla de escalada de privilegios en un contenedor fue encontrada en ciertas imágenes de Ansible Automation Platform. Este problema surge porque el archivo /etc/p4ssd se crea con permisos de escritura para el grupo durante el proceso de construcción. En ciertas condiciones, un atacante que puede ejecutar comandos dentro de un contenedor afectado, incluso como un usuario no-root, puede aprovechar su pertenencia al grupo root para modificar el archivo /etc/p4ssd. Esta vulnerabilidad permite a un atacante añadir un nuevo usuario con cualquier UID arbitrario, incluyendo UID 0, obteniendo privilegios de root completos dentro del contenedor.

References

https://access.redhat.com/errata/RHSA-2026:42141vendor-advisory
https://access.redhat.com/errata/RHSA-2026:42144vendor-advisory
https://access.redhat.com/errata/RHSA-2026:66482vendor-advisory
https://access.redhat.com/errata/RHSA-2026:66485vendor-advisory
https://access.redhat.com/errata/RHSA-2026:66486vendor-advisory
https://access.redhat.com/errata/RHSA-2026:66487vendor-advisory
https://access.redhat.com/errata/RHSA-2026:67279vendor-advisory
https://access.redhat.com/errata/RHSA-2026:71177vendor-advisory
https://access.redhat.com/errata/RHSA-2026:71179vendor-advisory
https://access.redhat.com/errata/RHSA-2026:71192vendor-advisory
https://access.redhat.com/errata/RHSA-2026:71210vendor-advisory
https://access.redhat.com/security/cve/CVE-2025-57847vdb-entry, vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2025-57847 changed 2026-10-13CVE Terms of Use
NVDCVE-2025-57847 changed 2026-10-13Public domain