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 package | Versions | Reported by |
|---|---|---|
| ansible-automation-platform/ee-minimal-rhel8 | Not specified Not affected: from 1789001438 before *, from 1789023329 before * | CVE List |
| ansible-automation-platform/ee-minimal-rhel9 | Not specified Not affected: from 1789023765 before *, from 1789001715 before * | CVE List |
| ansible-automation-platform-25/ee-minimal-rhel8 | Not specified Not affected: from 1784035663 before * | CVE List |
| ansible-automation-platform-25/de-minimal-rhel8 | Not specified Not affected: from 1789634812 before * | CVE List |
| ansible-automation-platform-25/ee-minimal-rhel9 | Not specified Not affected: from 1784051694 before * | CVE List |
| ansible-automation-platform-25/de-minimal-rhel9 | Not specified Not affected: from 1789654540 before * | CVE List |
| ansible-automation-platform-26/de-minimal-rhel9 | Not specified Not affected: from 1789658734 before * | CVE List |
| ansible-automation-platform-26/de-supported-rhel9 | Not specified Not affected: from 1789661423 before * | CVE List |
| ansible-automation-platform-26/ee-minimal-rhel9 | Not specified Not affected: from 1789654312 before * | CVE List |
| ansible-automation-platform-27/ee-minimal-rhel9 | Not specified Not affected: from 1788901236 before * | CVE List |
| ansible-automation-platform-27/de-minimal-rhel9 | Not specified Not affected: from 1789582543 before * | CVE List |
| ansible-automation-platform-27/de-supported-rhel9 | Not specified Not affected: from 1789584820 before * | CVE List |
| ansible-automation-platform-24/controller-rhel8 | Not specified | CVE List |
| ansible-automation-platform-24/de-minimal-rhel8 | Not specified | CVE List |
| ansible-automation-platform-24/de-minimal-rhel9 | Not specified | CVE List |
| ansible-automation-platform-24/ee-29-rhel8 | Not specified | CVE List |
| ansible-automation-platform-24/ee-minimal-rhel8 | Not specified | CVE List |
| ansible-automation-platform-24/ee-minimal-rhel9 | Not specified | CVE List |
| ansible-automation-platform-25/ansible-dev-tools-rhel8 | Not specified | CVE List |
| ansible-automation-platform-25/controller-rhel8-operator | Not specified | CVE List |
| ansible-automation-platform-26/ee-supported-rhel9 | Not specified | CVE List |
| ansible-automation-platform/ee-29-rhel8 | Not specified | CVE List |
| ansible-automation-platform-tech-preview/ansible-devspaces-rhel9 | Not specified | CVE List |
| ansible-automation-platform-tech-preview/ee-minimal-rhel8 | Not specified | CVE List |
| ansible-automation-platform-tech-preview/ee-minimal-rhel9 | Not specified | CVE List |
| redhat ansible_automation_platform | up to 2.6 | NVD |
Classification
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:42141 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:42144 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:66482 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:66485 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:66486 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:66487 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:67279 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:71177 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:71179 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:71192 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:71210 | vendor-advisory | |
| https://access.redhat.com/security/cve/CVE-2025-57847 | vdb-entry, vendor-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2391092 | issue-tracking, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-57847 changed 2026-10-13 | CVE Terms of Use |
| NVD | CVE-2025-57847 changed 2026-10-13 | Public domain |