Skip to main content
EPSS 0.2%top 95%

CVE-2025-57847: Incorrect Default Permissions in Red Hat Red Hat Ansible Automation Platform 2.16

0
Medium
VulnerabilityCVE-2025-57847cvecve-2025-57847
Published: 04/08/2026 (04/08/2026, 13:55:00 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: Red Hat Ansible Automation Platform 2.16

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.

CVSS v3.1

Score 6.4medium

Attack Vector
Local
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected software

Red Hat

Red Hat Ansible Automation Platform 2.16

Red Hat

Red Hat Ansible Automation Platform 2.18

Red Hat

Red Hat Ansible Automation Platform 2.5

Red Hat

Red Hat Ansible Automation Platform 2.5

Red Hat

Red Hat Ansible Automation Platform 2

Red Hat

Red Hat Ansible Automation Platform 2

redhat/redhat-ansible-automation-platform
pkg:rpm/redhat/redhat-ansible-automation-platform
Affected versions
=2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/08/2026, 13:25:25 UTC

Technical Analysis

This vulnerability arises because certain container images of Red Hat Ansible Automation Platform 2.5 create the /etc/passwd file with group-writable permissions. If an attacker can execute commands inside the container and is part of the root group, they can exploit this permission misconfiguration to modify /etc/passwd. This allows the attacker to add a new user with any UID, including UID 0, effectively escalating privileges to root within the container. The flaw affects version 2 of the product. Red Hat has issued security advisories (RHSA-2026:42141 and RHSA-2026:42144) and released updated container images and patches to remediate this issue.

Potential Impact

An attacker with command execution inside an affected container and membership in the root group can escalate privileges to root by modifying the /etc/passwd file. This grants full root privileges within the container, potentially allowing unauthorized actions and control over containerized workloads.

Mitigation Recommendations

Red Hat has released official security updates for Red Hat Ansible Automation Platform 2.5 that address this vulnerability. Users should apply these updates as described in the Red Hat advisories RHSA-2026:42141 and RHSA-2026:42144. Before applying the update, ensure all previously released errata relevant to your system have been applied. Follow the official Red Hat documentation for upgrading: https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5#Upgrading. No additional mitigations are required once the update is applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
redhat
Date Reserved
2025-08-21T14:40:40.821Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2025-57847","vendor":"Red Hat"}]

Threat ID: 69d664421cc7ad14da7c09ae

Added to database: 04/08/2026, 14:20:50 UTC

Last enriched: 08/08/2026, 13:25:25 UTC

Last updated: 09/10/2026, 19:46:15 UTC

Views: 223

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses