Skip to content
6.4 Medium

CVE-2025-7195 Early versions of Operator-SDK provided an insecure method to allow operator containers to run in environments that used…

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.

Affected products and versions

Product Affected versions Fixed in
operator-sdk 0.15 earliest → < 0.15.2 0.15.2
Compliance Operator 1 1768172669 earliest → < 1768172669 1768172669
File Integrity Operator 1 1.3 earliest → < 1.3 1.3
multicluster engine for Kubernetes 2.6 2.6 earliest → < 2.6 2.6
multicluster engine for Kubernetes 2.7 2.7 earliest → < 2.7 2.7
multicluster engine for Kubernetes 2.9 2.9 earliest → < 2.9 2.9
Red Hat Advanced Cluster Management for Kubernetes 2.11 2.11 earliest → < 2.11 2.11
Red Hat Advanced Cluster Management for Kubernetes 2.12 1773090513 earliest → < 1773090513 1773090513
Red Hat Advanced Cluster Management for Kubernetes 2.14 1770336554 earliest → < 1770336554 1770336554
Show the 23 other branches
Product Affected versions Fixed in
Red Hat Openshift Data Foundation 4.14 4.14 earliest → < 4.14-1764215448 4.14-1764215448
Red Hat Openshift Data Foundation 4.15 4.15 earliest → < 4.15-1764177029 4.15-1764177029
Red Hat Openshift Data Foundation 4.16 4.16 earliest → < 4.16-1764170021 4.16-1764170021
Red Hat Openshift Data Foundation 4.17 4.17 earliest → < 4.17-1764169222 4.17-1764169222
Red Hat Openshift Data Foundation 4.18 4.18 earliest → < 4.18-1761855234 4.18-1761855234
Multicluster Engine for Kubernetes Versions not published
Multicluster Global Hub Versions not published
Red Hat Advanced Cluster Management for Kubernetes 2 Versions not published
Red Hat Advanced Cluster Security 4 Versions not published
Red Hat build of Apicurio Registry 2 Versions not published
Red Hat build of Apicurio Registry 3 Versions not published
Red Hat Fuse 7 Versions not published
Red Hat OpenShift Container Platform 4 Versions not published
Red Hat OpenShift Virtualization 4 Versions not published
Red Hat Web Terminal Versions not published
RHEL-9-CNV-4.18 4.18 earliest → < 4.18.25-3 4.18.25-3
RHEL-9-CNV-4.17 4.17 earliest → < 4.17.39-2 4.17.39-2
RHEL-9-CNV-4.20 4.20 earliest → < 4.20.3-3 4.20.3-3
Red Hat Advanced Cluster Management for Kubernetes 2.13 1767829032 earliest → < 1767829032 1767829032
multicluster engine for Kubernetes 2.8 1765872400 earliest → < 1765872400 1765872400
OpenShift Compliance Operator 1 1768172669 earliest → < 1768172669 1768172669
OpenShift File Integrity Operator - FIO 1 1.3 earliest → < 1.3 1.3
multicluster engine for Kubernetes 2.9.0 2.9 earliest → < 2.9 2.9

References

Timeline

  1. Published
  2. Last modified
Track this CVE