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.
Vulnerable Products
red hat:multicluster engine for kubernetes 2.9
red hat:red hat openshift data foundation 4.14
red hat:red hat build of apicurio registry 2
red hat:red hat advanced cluster management for kubernetes 2.11
red hat:multicluster engine for kubernetes 2.6
red hat:red hat openshift data foundation 4.17
red hat:red hat openshift data foundation 4.18
red hat:rhel-9-cnv-4.20
red hat:multicluster engine for kubernetes
red hat:rhel-9-cnv-4.18
red hat:red hat advanced cluster management for kubernetes 2
red hat:multicluster engine for kubernetes 2.7
red hat:red hat openshift data foundation 4.15
red hat:red hat advanced cluster management for kubernetes 2.12
red hat:red hat web terminal
red hat:compliance operator 1
red hat:multicluster engine for kubernetes 2.8
red hat:red hat advanced cluster security 4
red hat:red hat openshift container platform 4
red hat:multicluster global hub
red hat:red hat openshift virtualization 4
red hat:red hat advanced cluster management for kubernetes 2.14
red hat:red hat openshift data foundation 4.16
red hat:red hat fuse 7
operator-framework:operator-sdk
red hat:file integrity operator 1
red hat:red hat advanced cluster management for kubernetes 2.13
red hat:rhel-9-cnv-4.17
red hat:red hat build of apicurio registry 3