Skip to content

Red Hat Enterprise Linux

Operator-sdk: privilege escalation due to incorrect permissions of /etc/passwd

CVE-2025-7195Published 7 Aug 2025, 19:05 UTC

Real-world risk

0.4/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.4

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from redhat)

Early versions of Operator-SDK provided an insecure method to allow operator containers to run in environments that used a random UID. Operator-SDK before 0.15.2 provided a script, user_setup, which modifies the permissions of the /etc/passwd file to 664 during build time. Developers who used Operator-SDK before 0.15.2 to scaffold their operator may still be impacted by this if the insecure user_setup script is still being used to build new container images. In affected images, the /etc/passwd file is created during build time with group-writable permissions and a group ownership of root (gid=0). An attacker who can execute commands within an affected container, even as a non-root user, may be able to 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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
Red Hat Enterprise LinuxUbiquitousnot stated—
Red Hat OpenShift Container PlatformWidespreadnot stated—
Red Hat Advanced Cluster Management for Kubernetes 2Commonnot stated—
Red Hat Fuse 7Commonnot stated—
Red Hat build of Apicurio Registry 2Commonnot stated—
multicluster engine for Kubernetes 2.17Commonnot stated—
Multicluster Global HubNichenot stated—
Red Hat Advanced Cluster Security 4.4Nichenot stated—
Red Hat Web TerminalNichenot stated—
operator-sdkNiche< 0.15.20.15.2

What to do

Update to a fixed version: 0.15.2.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionLocalMust already run code or have a shell on the machineFrom the CVSS vector0.50
Privileges neededHighAdmin or equivalentFrom the CVSS vector0.20
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.3% chance of exploitation in 30 days (percentile 19), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.045
  2. Threat T1: Nothing known0.850
  3. 10 × impact 1 × prerequisites 0.045 × threat 0.850.383
  4. Rounded to one decimal between 0.1 and 100.4

How the score works

Exploitation and evidence timeline

  1. 7 Aug 2025 Published
  2. 3 Dec 2026 Risk 0.4 (cvss fallback)

Weakness

CWE-276

References

Get alerts for Red Hat Enterprise Linux

Free email or text alerts when a vulnerability in Red Hat Enterprise Linux reaches risk 8 or higher. Nothing else.