CVE-2025-7195

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

MEDIUM 6.4

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-276 — Incorrect Default Permissions

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.4CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:Hredhat
CVSS 3.1MEDIUM 6.4CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:HNVD · secalert@redhat.com (Secondary)

Advisories

European references

Affected products

ProductVersions
operator-framework · operator-sdkaffected 0 < 0.15.2
Red Hat · RHEL-9-CNV-4.17unaffected v4.17.39-2 < *
Red Hat · RHEL-9-CNV-4.18unaffected v4.18.25-3 < *
Red Hat · RHEL-9-CNV-4.20unaffected v4.20.3-3 < *
Red Hat · multicluster engine for Kubernetes 2.6unaffected v2.6 < *
Red Hat · multicluster engine for Kubernetes 2.6unaffected v2.6 < *
Red Hat · multicluster engine for Kubernetes 2.6unaffected v2.6 < *
Red Hat · multicluster engine for Kubernetes 2.6unaffected v2.6 < *
Red Hat · multicluster engine for Kubernetes 2.6unaffected v2.6 < *
Red Hat · multicluster engine for Kubernetes 2.6unaffected v2.6 < *
Red Hat · multicluster engine for Kubernetes 2.6unaffected v2.6 < *
Red Hat · multicluster engine for Kubernetes 2.7unaffected v2.7 < *
Red Hat · multicluster engine for Kubernetes 2.7unaffected v2.7 < *
Red Hat · multicluster engine for Kubernetes 2.7unaffected v2.7 < *
Red Hat · multicluster engine for Kubernetes 2.7unaffected v2.7 < *
Red Hat · multicluster engine for Kubernetes 2.7unaffected v2.7 < *
Red Hat · multicluster engine for Kubernetes 2.7unaffected v2.7 < *
Red Hat · multicluster engine for Kubernetes 2.7unaffected v2.7 < *
Red Hat · multicluster engine for Kubernetes 2.7unaffected v2.7 < *
Red Hat · multicluster engine for Kubernetes 2.7unaffected v2.7 < *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD