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?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Red Hat Enterprise LinuxUbiquitous | not stated | — |
| Red Hat OpenShift Container PlatformWidespread | not stated | — |
| Red Hat Advanced Cluster Management for Kubernetes 2Common | not stated | — |
| Red Hat Fuse 7Common | not stated | — |
| Red Hat build of Apicurio Registry 2Common | not stated | — |
| multicluster engine for Kubernetes 2.17Common | not stated | — |
| Multicluster Global HubNiche | not stated | — |
| Red Hat Advanced Cluster Security 4.4Niche | not stated | — |
| Red Hat Web TerminalNiche | not stated | — |
| operator-sdkNiche | < 0.15.2 | 0.15.2 |
What to do
Update to a fixed version: 0.15.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.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
- Prerequisites multiplied together0.045
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.045 × threat 0.850.383
- Rounded to one decimal between 0.1 and 100.4
Exploitation and evidence timeline
- 7 Aug 2025 Published
- 3 Dec 2026 Risk 0.4 (cvss fallback)
Weakness
CWE-276
References
- https://access.redhat.com/errata/RHEA-2025:23406redhat, vendor-advisory
- https://access.redhat.com/errata/RHEA-2025:23478redhat, vendor-advisory
- https://access.redhat.com/errata/RHEA-2026:0129redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:19332redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:19335redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:19958redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:19961redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:21368redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:21885redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22415redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22416redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22418redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22420redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22683redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:22684redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:23528redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:23529redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2025:23542redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:0627redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:0718redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:0722redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:0737redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:2572redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:5633redhat, vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-7195redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2376300issue-tracking, redhat
- CVE-2025-7195 on CVE.org