CVE-2025-57847

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

State
Published
Severity
6.4 Medium
Published
Apr 8, 2026
Updated
Oct 13, 2026
Reserved
Aug 21, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.4 MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:Hredhat

Weaknesses

  • CWE-276 Incorrect Default Permissions

Affected Products

ProductVersions
Red Hat Ansible Automation Platform 2.16Red Hat
  • 1789001438 and laterNot affected
Red Hat Ansible Automation Platform 2.16Red Hat
  • 1789023765 and laterNot affected
Red Hat Ansible Automation Platform 2.18Red Hat
  • 1789023329 and laterNot affected
Red Hat Ansible Automation Platform 2.18Red Hat
  • 1789001715 and laterNot affected
Red Hat Ansible Automation Platform 2.5Red Hat
  • 1784035663 and laterNot affected
Red Hat Ansible Automation Platform 2.5Red Hat
  • 1789634812 and laterNot affected
Red Hat Ansible Automation Platform 2.5Red Hat
  • 1784051694 and laterNot affected
Red Hat Ansible Automation Platform 2.5Red Hat
  • 1789654540 and laterNot affected
Red Hat Ansible Automation Platform 2.6Red Hat
  • 1789658734 and laterNot affected
Red Hat Ansible Automation Platform 2.6Red Hat
  • 1789661423 and laterNot affected
Red Hat Ansible Automation Platform 2.6Red Hat
  • 1789654312 and laterNot affected
Red Hat Ansible Automation Platform 2.7Red Hat
  • 1788901236 and laterNot affected
Red Hat Ansible Automation Platform 2.7Red Hat
  • 1789582543 and laterNot affected
Red Hat Ansible Automation Platform 2.7Red Hat
  • 1789584820 and laterNot affected
Red Hat Ansible Automation Platform 2Red Hat
    Red Hat Ansible Automation Platform 2Red Hat
      Red Hat Ansible Automation Platform 2Red Hat
        Red Hat Ansible Automation Platform 2Red Hat
          Red Hat Ansible Automation Platform 2Red Hat
            Red Hat Ansible Automation Platform 2Red Hat
              Red Hat Ansible Automation Platform 2Red Hat
                Red Hat Ansible Automation Platform 2Red Hat
                  Red Hat Ansible Automation Platform 2Red Hat
                    Red Hat Ansible Automation Platform 2Red Hat
                      Red Hat Ansible Automation Platform 2Red Hat
                        Red Hat Ansible Automation Platform 2Red Hat
                          Red Hat Ansible Automation Platform 2Red Hat
                            Red Hat Ansible Automation Platform Ansible Core 2Red Hat
                              Red Hat Ansible Automation Platform Ansible Core 2Red Hat

                                References

                                Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.