CVE-2025-7195: operator-sdk Privilege Escalation Due To Incorrect Vulnerability
MODERATECVE-2025-7195 is a MODERATE (CVSS 5.2) privilege escalation due to incorrect vulnerability (CWE-276: Incorrect Default Permissions) affecting operator-sdk libraries in the Go ecosystem. The issue involves privilege escalation due to incorrect permissions of /etc/passwd. Remediation is available by upgrading affected packages to version 0.15.2.
CVE-2025-7195 at a Glance
Security Impact
CVSS: 5.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:L).
How to Fix CVE-2025-7195
To remediate this vulnerability, upgrade all affected operator-sdk dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/operator-framework/operator-sdk to 0.15.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/operator-framework/operator-sdk
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-7195, inspect your project dependencies for operator-sdk:
inspect dependencies for github.com/operator-framework/operator-sdk
Analyze the terminal output to locate any version of operator-sdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.15.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In operator-sdk, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-7195 Affected operator-sdk Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/operator-framework/operator-sdk
|
Go |
< 0.15.2
|
0.15.2
|
References
Frequently Asked Questions
What is CVE-2025-7195?
Which operator-sdk versions are affected?
What version fixes CVE-2025-7195?
Is github.com/operator-framework/operator-sdk affected?
What is the CVSS score of CVE-2025-7195?
What CWE is associated with CVE-2025-7195?
How can I check Go dependencies for CVE-2025-7195?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-856v-8qm2-9wjv",
"modified" : "2026-03-24T15:30:24Z",
"published" : "2025-08-07T21:31:08Z",
"aliases" : [ "CVE-2025-7195" ],
"summary" : "operator-sdk: privilege escalation due to incorrect permissions of /etc/passwd",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/operator-framework/operator-sdk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.15.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-7195"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/operator-framework/operator-sdk"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2376300"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2025-7195"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:5633"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:2572"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:0737"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:0722"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:0718"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:0627"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:23542"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:23529"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:23528"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:22684"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:22683"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:22420"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:22418"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:22416"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:22415"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:21885"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:21368"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:19961"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:19958"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:19335"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2025:19332"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHEA-2026:0129"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHEA-2025:23478"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHEA-2025:23406"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHBA-2024:11569"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-276" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-07T21:59:46Z",
"nvd_published_at" : "2025-08-07T19:15:29Z"
}
}