---
id: CVE-2025-57848
title: >-
  A container privilege escalation flaw was found in certain Container-native
  Virtualization images
summary: >-
  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 atta…
severity: medium
cvss: 6.4
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-276
published: '2025-10-23'
updated: '2026-08-06'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-57848'
references:
  - url: 'https://access.redhat.com/errata/RHEA-2025:19904'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHEA-2025:21119'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHEA-2025:21677'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHEA-2025:22750'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHEA-2026:0511'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-57848'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2391099'
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.0019
epssPercentile: 0.07642
ingestedAt: '2026-08-06T11:58:52.778Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
