CVE-2025-7195: Incorrect Default Permissions in operator-framework operator-sdk
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.
AI Analysis
Technical Summary
Operator-SDK versions before 0.15.2 include a user_setup script that modifies /etc/passwd permissions to 664 and sets group ownership to root during container image build. This configuration allows any process running inside the container with membership in the root group to modify /etc/passwd. An attacker who can execute commands inside such a container, even without root privileges, may exploit this to add a user with UID 0, effectively gaining root access within the container. This vulnerability affects operator containers scaffolded with Operator-SDK before 0.15.2 if the insecure user_setup script is still used to build images.
Potential Impact
An attacker with the ability to execute commands inside an affected container can escalate privileges to root by modifying the /etc/passwd file due to insecure group-writable permissions. This leads to full root privileges within the container, potentially compromising container integrity and security.
Mitigation Recommendations
An official fix is available in Operator-SDK version 0.15.2 and later. Users and developers should upgrade to version 0.15.2 or newer to eliminate the insecure user_setup script. For existing containers built with earlier versions, rebuild container images using the updated Operator-SDK to ensure correct permissions on /etc/passwd. Follow vendor advisories and update affected components accordingly.
CVE-2025-7195: Incorrect Default Permissions in operator-framework operator-sdk
Description
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 v3.1
Score 6.4medium
Affected software
operator-framework
operator-sdk
Red Hat
RHEL-9-CNV-4.17
Red Hat
RHEL-9-CNV-4.18
Red Hat
RHEL-9-CNV-4.20
Red Hat
Compliance Operator 1
Red Hat
Compliance Operator 1
Red Hat
multicluster engine for Kubernetes 2.6
Red Hat
multicluster engine for Kubernetes 2.7
Red Hat
multicluster engine for Kubernetes 2.8
Red Hat
multicluster engine for Kubernetes 2.8
Red Hat
multicluster engine for Kubernetes 2.8
Red Hat
multicluster engine for Kubernetes 2.8
Red Hat
multicluster engine for Kubernetes 2.8
Red Hat
multicluster engine for Kubernetes 2.8
Red Hat
multicluster engine for Kubernetes 2.8
Red Hat
multicluster engine for Kubernetes 2.8
Red Hat
multicluster engine for Kubernetes 2.9
Red Hat
OpenShift File Integrity Operator - FIO 1
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.11
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.12
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.12
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.12
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.12
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.12
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.12
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.13
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.13
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.13
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.14
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.14
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.14
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.14
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.14
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.15
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.16
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.17
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Red Hat Openshift Data Foundation 4.18
Red Hat
Multicluster Engine for Kubernetes
Red Hat
Multicluster Engine for Kubernetes
Red Hat
Multicluster Engine for Kubernetes
Red Hat
Multicluster Global Hub
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2
Red Hat
Red Hat Advanced Cluster Security 4
Red Hat
Red Hat build of Apicurio Registry 2
Red Hat
Red Hat build of Apicurio Registry 3
Red Hat
Red Hat Fuse 7
Red Hat
Red Hat OpenShift Container Platform 4
Red Hat
Red Hat OpenShift Container Platform 4
Red Hat
Red Hat OpenShift Virtualization 4
Red Hat
Red Hat OpenShift Virtualization 4
Red Hat
Red Hat Web Terminal
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Operator-SDK versions before 0.15.2 include a user_setup script that modifies /etc/passwd permissions to 664 and sets group ownership to root during container image build. This configuration allows any process running inside the container with membership in the root group to modify /etc/passwd. An attacker who can execute commands inside such a container, even without root privileges, may exploit this to add a user with UID 0, effectively gaining root access within the container. This vulnerability affects operator containers scaffolded with Operator-SDK before 0.15.2 if the insecure user_setup script is still used to build images.
Potential Impact
An attacker with the ability to execute commands inside an affected container can escalate privileges to root by modifying the /etc/passwd file due to insecure group-writable permissions. This leads to full root privileges within the container, potentially compromising container integrity and security.
Mitigation Recommendations
An official fix is available in Operator-SDK version 0.15.2 and later. Users and developers should upgrade to version 0.15.2 or newer to eliminate the insecure user_setup script. For existing containers built with earlier versions, rebuild container images using the updated Operator-SDK to ensure correct permissions on /etc/passwd. Follow vendor advisories and update affected components accordingly.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- redhat
- Date Reserved
- 2025-07-07T08:45:21.278Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/errata/RHEA-2025:23406","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHEA-2025:23478","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHEA-2026:0129","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19332","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19335","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19958","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:19961","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:21368","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:21885","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:22415","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:22416","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:22418","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:22420","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:22683","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:22684","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:23528","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:23529","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:23542","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:0627","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:0718","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:0722","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:0737","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2572","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:5633","vendor":"Red Hat"},{"url":"https://access.redhat.com/security/cve/CVE-2025-7195","vendor":"Red Hat"}]
Threat ID: 6894fbd9ad5a09ad00fc400a
Added to database: 08/07/2025, 19:17:45 UTC
Last enriched: 08/14/2026, 13:16:00 UTC
Last updated: 09/10/2026, 22:12:39 UTC
Views: 233
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.