CVE-2025-7195
mediumpriority · track · 0OT risk · elevatedEPSS 0.002 · 14 %ileDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (131)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-2533RedHat Multicluster Engine for Kubernetes: Schwachstelle ermöglicht PrivilegieneskalationDeutsch2025-11-09csaf · cert_bundDE
Ein lokaler Angreifer kann eine Schwachstelle in RedHat Multicluster Engine for Kubernetes ausnutzen, um seine Privilegien zu erhöhen.
- GHSA-856v-8qm2-9wjvoperator-sdk: privilege escalation due to incorrect permissions of /etc/passwd2025-08-07ghsa · osvUS
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 was 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.
- GO-2025-3852operator-sdk: privilege escalation due to incorrect permissions of /etc/passwd in github.com/operator-framework/operator-sdk2025-08-11vendor · osvUS
operator-sdk: privilege escalation due to incorrect permissions of /etc/passwd in github.com/operator-framework/operator-sdk
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (79)
External citations — patches, advisories, analysis.
- https://access.redhat.com/errata/RHEA-2025:23406cnnvd
- https://access.redhat.com/errata/RHEA-2025:23478cnnvd
- https://access.redhat.com/errata/RHEA-2026:0129cnnvd
- https://access.redhat.com/errata/RHSA-2025:19332cnnvd
- https://access.redhat.com/errata/RHSA-2025:19335cnnvd
- https://access.redhat.com/errata/RHSA-2025:19958cnnvd
- https://access.redhat.com/errata/RHSA-2025:19961cnnvd
- https://access.redhat.com/errata/RHSA-2025:21368cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan