CVE-2025-57848
Awaiting Analysis Awaiting Analysis - Queue
BaseFortify

Publication date: 2025-10-23

Last updated on: 2026-03-07

Assigner: Red Hat, Inc.

Description
A container privilege escalation flaw was found in certain Container-native Virtualization images. This issue stems from the /etc/passwd file being created with group-writable permissions during build time. 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 could allow the attacker to add a new user with any arbitrary UID, including UID 0, leading to full root privileges within the container.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-10-23
Last Modified
2026-03-07
Generated
2026-06-16
AI Q&A
2025-10-23
EPSS Evaluated
2026-06-15
NVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-276 During installation, installed file permissions are set to allow anyone to modify those files.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is a container privilege escalation flaw found in certain container-native virtualization images. During the container build process, the /etc/passwd file is created with group-writable permissions. An attacker who can run commands inside the affected container, even as a non-root user, and who is a member of the root group, can modify the /etc/passwd file. This allows the attacker to add a new user with any user ID, including UID 0 (root), thereby gaining full root privileges within the container. [1]

Impact Analysis

This vulnerability can allow an attacker with limited access inside a container to escalate their privileges to full root access within that container. This means the attacker can perform any action as the root user inside the container, potentially compromising the container's security and any applications or data it handles. [1]

Detection Guidance

You can detect this vulnerability by checking if the /etc/passwd file inside your container images has group-writable permissions. For example, run the command `ls -l /etc/passwd` inside the container and verify if the group permissions include write access (e.g., -rw-rw-r--). If the file is group-writable, the container is vulnerable. Additionally, verify if users inside the container belong to the root group, which could allow exploitation. [1]

Mitigation Strategies

Immediate mitigation steps include rebuilding the affected container images ensuring that the /etc/passwd file is created without group-writable permissions (e.g., permissions set to 644 or more restrictive). Also, restrict user group memberships inside containers to prevent non-root users from being in the root group. Applying updated container images or patches from your vendor that address this issue is recommended. [1]

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-57848. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart