Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-57847

CVE-2025-57847: Ansible Automation Platform Escalation Flaw

CVE-2025-57847 is a container privilege escalation flaw in Ansible Automation Platform images. Attackers can exploit writable /etc/passwd permissions to gain root access. This article covers technical details, impact, and mitigation.

Published: April 9, 2026

CVE-2025-57847 Overview

A container privilege escalation vulnerability has been identified in certain Ansible Automation Platform images. The flaw stems from improper file permissions during the container build process, where the /etc/passwd file is created with group-writable permissions. An attacker who gains command execution within an affected container—even as a non-root user—can exploit their membership in the root group to modify the /etc/passwd file. This enables the creation of new users with arbitrary UIDs, including UID 0, effectively granting full root privileges within the container.

Critical Impact

Attackers with limited access to an affected container can escalate to full root privileges by manipulating the /etc/passwd file, potentially leading to complete container compromise and lateral movement within containerized environments.

Affected Products

  • Ansible Automation Platform container images
  • Container images built with insecure /etc/passwd permissions (group-writable)
  • Environments where users have root group membership within containers

Discovery Timeline

  • April 8, 2026 - CVE-2025-57847 published to NVD
  • April 8, 2026 - Last updated in NVD database

Technical Details for CVE-2025-57847

Vulnerability Analysis

This vulnerability is classified as CWE-276 (Incorrect Default Permissions), a configuration weakness that occurs when software sets insecure permissions on files or directories during installation or build processes. The vulnerability requires local access and high privileges to exploit, combined with high attack complexity due to the specific conditions needed—namely, the attacker must have root group membership within the container context.

The impact is significant once exploitation is achieved: the attacker gains full control over the container's user authentication mechanism, enabling complete confidentiality, integrity, and availability compromise within the container boundary.

Root Cause

The root cause of this vulnerability lies in the container image build process for certain Ansible Automation Platform images. During the build phase, the /etc/passwd file is created with group-writable permissions (-rw-rw-r-- or similar). This insecure permission setting allows any user who is a member of the root group (GID 0) to modify the authentication database file.

In containerized environments, it is not uncommon for non-root users to be assigned membership in the root group to facilitate certain operations. This creates a dangerous combination where a low-privileged user can modify critical system authentication files.

Attack Vector

The attack requires local access to an affected container with the ability to execute commands. The exploitation process involves:

  1. Initial Access: The attacker must gain command execution within the affected container, potentially through application vulnerabilities, compromised credentials, or legitimate but limited access.

  2. Permission Verification: The attacker identifies that /etc/passwd has group-writable permissions and confirms their membership in the root group.

  3. User Injection: By appending a new entry to /etc/passwd, the attacker creates a user with UID 0 (root). This new user can have a known password hash or no password requirement, depending on the system configuration.

  4. Privilege Escalation: Using su or direct login mechanisms, the attacker switches to the newly created root user, gaining full administrative privileges within the container.

This local attack vector requires specific preconditions but poses significant risk in multi-tenant container environments or when containers process untrusted input.

Detection Methods for CVE-2025-57847

Indicators of Compromise

  • Unexpected modifications to the /etc/passwd file within container filesystems
  • New user entries with UID 0 that were not created during legitimate provisioning
  • Audit log entries showing write operations to /etc/passwd by non-administrative processes
  • Process execution by unexpected root-level users within affected containers

Detection Strategies

  • Implement file integrity monitoring (FIM) on critical authentication files including /etc/passwd, /etc/shadow, and /etc/group within containers
  • Monitor container runtime events for unexpected privilege escalation patterns or user switching operations
  • Scan container images for improper file permissions during CI/CD pipeline stages before deployment
  • Deploy runtime security solutions that alert on modifications to sensitive system files

Monitoring Recommendations

  • Enable detailed audit logging for file system operations within containerized environments
  • Configure container security platforms to baseline and alert on deviations in critical file permissions
  • Implement real-time monitoring for user creation events and UID 0 assignments within running containers
  • Establish alerting thresholds for suspicious su or sudo activity patterns

How to Mitigate CVE-2025-57847

Immediate Actions Required

  • Audit all Ansible Automation Platform container images in your environment for improper /etc/passwd permissions
  • Verify file permissions on /etc/passwd ensure they are set to 644 (owner-writable only) and not group-writable
  • Review container configurations to identify any non-root users that have been granted root group membership
  • Rebuild affected container images with correct file permissions applied during the build process

Patch Information

Red Hat has acknowledged this vulnerability and is tracking it through their security response process. For the latest patch information and remediation guidance, consult the Red Hat CVE-2025-57847 Advisory and Red Hat Bug Report #2391092.

Organizations should monitor Red Hat's security advisories for updated container images that address this vulnerability. Until patched images are available, implement the workarounds described below.

Workarounds

  • Modify container entrypoint scripts to correct /etc/passwd permissions at runtime using chmod 644 /etc/passwd
  • Remove root group membership from container users where it is not strictly required for application functionality
  • Implement read-only filesystem configurations for containers where possible, protecting system files from modification
  • Deploy container security policies that prevent writes to /etc/passwd and other sensitive files
bash
# Configuration example
# Verify and correct /etc/passwd permissions in Dockerfile
RUN chmod 644 /etc/passwd && \
    chown root:root /etc/passwd

# Or add to container entrypoint script
#!/bin/bash
chmod 644 /etc/passwd
chown root:root /etc/passwd
exec "$@"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechAnsible Automation Platform

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.00%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-276
  • Technical References
  • Red Hat CVE-2025-57847

  • Red Hat Bug Report #2391092
  • Related CVEs
  • CVE-2025-14025: Ansible Automation Platform Auth Bypass
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English