Skip to content

Commit c11d716

Browse files
authored
CVE-2025-57852: Openshift-ai: privilege escalation via excessive /etc… (#164)
1 parent 433ca31 commit c11d716

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ RUN --mount=type=cache,target=/root/.cache/microdnf:rw \
108108
# Create app user
109109
&& useradd -c "Application User" -U -u ${USER} -m app \
110110
&& chown -R app:0 /home/app \
111-
# Adjust permissions on /etc/passwd to be writable by group root.
112-
# The user app is replaced by the assigned UID on OpenShift.
113-
&& chmod g+w /etc/passwd \
114111
# In newer Docker there is a --chown option for the COPY command
115112
&& ln -s /opt/kserve/mmesh /opt/kserve/tas \
116113
&& mkdir -p log \

0 commit comments

Comments
 (0)