The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-8766

CVE-2025-8766: Container Privilege Escalation Vulnerability

CVE-2025-8766 is a container privilege escalation vulnerability in Multi-Cloud Object Gateway Core images. Attackers can exploit group-writable /etc/passwd permissions to gain root access within containers.

Published: March 20, 2026

CVE-2025-8766 Overview

A container privilege escalation vulnerability has been identified in certain Multi-Cloud Object Gateway Core images. This security flaw stems from the /etc/passwd file being created with group-writable permissions during the container image build process. Under 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 could allow the attacker to add a new user with any arbitrary UID, including UID 0, leading to full root privileges within the container.

Critical Impact

An attacker with command execution capability inside an affected container can escalate to full root privileges by exploiting insecure file permissions on /etc/passwd, potentially compromising container security boundaries.

Affected Products

  • Multi-Cloud Object Gateway Core (certain container images)
  • Red Hat container images with misconfigured /etc/passwd permissions

Discovery Timeline

  • 2026-03-13 - CVE-2025-8766 published to NVD
  • 2026-03-16 - Last updated in NVD database

Technical Details for CVE-2025-8766

Vulnerability Analysis

This vulnerability is classified under CWE-276 (Incorrect Default Permissions), a common misconfiguration issue that can have severe security implications in containerized environments. The root cause lies in the build-time configuration of affected container images, where the /etc/passwd file is inadvertently created with group-writable permissions (typically mode 0664 or similar instead of the secure 0644).

In containerized environments, users are often added to the root group (GID 0) to allow certain operations without full root privileges. However, when combined with group-writable permissions on critical system files like /etc/passwd, this creates a privilege escalation pathway. The local attack vector requires the attacker to already have some level of command execution within the container, though the high privileges required suggest this typically involves an attacker with an established foothold or a compromised application running within the container.

Root Cause

The vulnerability originates from the container image build process where the /etc/passwd file is created or modified with incorrect file permissions. Specifically, the file is set with group-writable permissions, allowing any user who is a member of the root group (GID 0) to modify this critical authentication file. This is a violation of the principle of least privilege and represents a significant deviation from secure container image building practices.

Attack Vector

The attack requires local access to the container environment. An attacker who has gained command execution within an affected container—through application vulnerabilities, compromised credentials, or other means—can exploit this flaw if they are a member of the root group. The exploitation process involves:

  1. Identifying that /etc/passwd has group-writable permissions
  2. Confirming membership in the root group (GID 0)
  3. Appending a new user entry with UID 0 to /etc/passwd
  4. Switching to the newly created root user to gain full container privileges

The attack methodology involves checking file permissions on /etc/passwd and verifying group membership. If the attacker is in the root group and the file is group-writable, they can add a new user entry with root privileges (UID 0) and then use su to switch to that user. For detailed technical analysis, refer to the Red Hat CVE-2025-8766 Advisory.

Detection Methods for CVE-2025-8766

Indicators of Compromise

  • Unexpected modifications to /etc/passwd file within containers, particularly new user entries with UID 0
  • Audit logs showing file write operations to /etc/passwd by non-root processes
  • Presence of unauthorized user accounts in container environments
  • Evidence of su or sudo commands executed shortly after /etc/passwd modifications

Detection Strategies

  • Implement file integrity monitoring (FIM) on critical system files including /etc/passwd, /etc/shadow, and /etc/group within containers
  • Deploy runtime security tools that can detect privilege escalation attempts in container environments
  • Audit container images for insecure file permissions during CI/CD pipeline stages using tools like trivy, grype, or custom scripts
  • Monitor for unusual process execution patterns, particularly su or shell spawning by non-interactive processes

Monitoring Recommendations

  • Enable container runtime auditing to track file system modifications on sensitive paths
  • Configure alerts for any changes to /etc/passwd that are not part of expected container lifecycle operations
  • Implement SentinelOne Singularity for Containers to detect and respond to privilege escalation attempts in real-time
  • Review container orchestration logs for anomalous container behavior or unexpected privilege changes

How to Mitigate CVE-2025-8766

Immediate Actions Required

  • Audit all Multi-Cloud Object Gateway Core container images for group-writable permissions on /etc/passwd
  • Rebuild affected container images with correct file permissions (mode 0644 for /etc/passwd)
  • Restrict user membership in the root group (GID 0) to only those processes that absolutely require it
  • Implement container security policies that prevent modification of system authentication files

Patch Information

Organizations should consult the Red Hat CVE-2025-8766 Advisory for official guidance on patched container image versions. Additionally, the Red Hat Bug Report #2387265 contains detailed tracking information for this vulnerability. Update to the latest patched container images as they become available from Red Hat.

Workarounds

  • Manually fix file permissions in running containers by executing chmod 644 /etc/passwd as a temporary measure (note: this change will not persist across container restarts unless the image is rebuilt)
  • Use read-only root filesystems where possible to prevent runtime modification of system files
  • Implement Kubernetes PodSecurityPolicies or Pod Security Standards to enforce secure container configurations
  • Consider running containers with a non-root user that is not a member of the root group
bash
# Configuration example - Verify and fix /etc/passwd permissions in containers
# Check current permissions
ls -la /etc/passwd

# If group-writable (e.g., -rw-rw-r--), fix permissions
chmod 644 /etc/passwd

# Verify the fix
ls -la /etc/passwd
# Expected output: -rw-r--r-- 1 root root ... /etc/passwd

# For Dockerfile remediation, add this line after any passwd modifications:
# RUN chmod 644 /etc/passwd

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechMulti Cloud Object Gateway

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.01%

  • 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-8766 Advisory

  • Red Hat Bug Report #2387265
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
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