cve.bz

CVE-2025-57852 Incorrect Default Permissions

6.4 mediumEPSS 0.2%Fix available

Medium (6.4). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
A container privilege escalation flaw was found in KServe ModelMesh container 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.

Severity

CVSS 3.1

6.4 medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 5th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-09-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-276 Incorrect Default Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat OpenShift AI 2.16: fixed in sha256:97e2bd9b587f08e135a9aeb9b3e0dc6eafa1a9bdacbb5ecb681ce9bd5
  • Red Hat Red Hat OpenShift AI 2.19: fixed in sha256:53ac36baa374159b9065c718a9ede821bbb61d9ebe9502b2243e0a9f7
  • Red Hat Red Hat OpenShift AI 2.21: fixed in sha256:687c8eeed55f021ecaab1307f0e88b5b16d91f72d63b3d7168d7bbee9
  • Red Hat Red Hat OpenShift AI 2.22: fixed in sha256:1709fa3c79aad4ba7eb9be8299949396092c8e20210124e0c0936385b
  • Red Hat Red Hat OpenShift AI 2.24: fixed in sha256:92629b1462ca2ed121dd2f3069a005d78e00e1344d330d6a8710f53ec

Ask an AI about this CVE

Show the promptExplain CVE-2025-57852 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-57852?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-57852?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-57852 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat OpenShift AI 2.16sha256:97e2bd9b587f08e135a9aeb9b3e0dc6eafa1a9bdacbb5ecb681ce9bd5
Red Hat OpenShift AI 2.19sha256:53ac36baa374159b9065c718a9ede821bbb61d9ebe9502b2243e0a9f7
Red Hat OpenShift AI 2.21sha256:687c8eeed55f021ecaab1307f0e88b5b16d91f72d63b3d7168d7bbee9
Red Hat OpenShift AI 2.22sha256:1709fa3c79aad4ba7eb9be8299949396092c8e20210124e0c0936385b
Red Hat OpenShift AI 2.24sha256:92629b1462ca2ed121dd2f3069a005d78e00e1344d330d6a8710f53ec

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat Product Security has rated this vulnerability as moderate severity for affected products which run on OpenShift. The vulnerability allows for potential privilege escalation within a container, but OpenShift's default, multi-layered security posture effectively mitigates this risk.

The primary controls include the default Security Context Constraints (SCC), which severely limit a container's permissions from the start, and SELinux, which enforces mandatory access control to ensure strict isolation. While other container runtime environments may have different controls available and require case-by-case analysis, OpenShift's built-in defenses are designed to prevent this type of attack.

Out of Box RHEL configuration isolates a single process inside a container. Unless multiple processes are packaged inside a single container, that defeats the principle behind containerization, this bug can not be used to meaningfully escalate privileges.

Also, RHEL, and any common linux distributions do NOT add any additional users to the root group. The presence of the root group is strictly due to conformance with POSIX permission management requirements and can be considered to be an artifact of filesystem permission limitations.

Red Hat Security Ratings classify this as a Low and not Moderate in Red Hat OpenShift AI due to the restrictive SCC profile used for the ModelMesh containers. The restricted-v2 profile fully mitigates this vulnerability by dropping the SETUID and SETGID privileges, blocking the two system calls from processes within the container and preventing privilege escalation.

ProductPackageStateAdvisory
Red Hat OpenShift AI 2.16rhoai/odh-modelmesh-rhel8:v2.16Fixed 2025-09-29RHSA-2025:16981
Red Hat OpenShift AI 2.19rhoai/odh-modelmesh-rhel8:v2.19Fixed 2025-09-29RHSA-2025:16984
Red Hat OpenShift AI 2.21rhoai/odh-modelmesh-rhel9:v2.21Fixed 2025-09-29RHSA-2025:16983
Red Hat OpenShift AI 2.22rhoai/odh-modelmesh-rhel9:v2.22Fixed 2025-09-29RHSA-2025:16982
Red Hat OpenShift AI 2.24rhoai/odh-modelmesh-rhel9:v2.24.0-1759255555Fixed 2025-10-07RHSA-2025:17501

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-57852.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON