Skip to content

Commit c8603bf

Browse files
authored
[RHOAIENG-35143] CVE-2025-57852: Openshift-ai: privilege escalation via excessive /etc/passwd permissions (#109)
chore: Fix [CVE-2025-57852](https://www.cve.org/CVERecord?id=CVE-2025-57852) Signed-off-by: Spolti <[email protected]>
1 parent d10a753 commit c8603bf

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
@@ -115,9 +115,6 @@ RUN --mount=type=cache,target=/root/.cache/microdnf:rw \
115115
# Create app user
116116
&& useradd -c "Application User" -U -u ${USER} -m app \
117117
&& chown -R app:0 /home/app \
118-
# Adjust permissions on /etc/passwd to be writable by group root.
119-
# The user app is replaced by the assigned UID on OpenShift.
120-
&& chmod g+w /etc/passwd \
121118
# In newer Docker there is a --chown option for the COPY command
122119
&& ln -s /opt/kserve/mmesh /opt/kserve/tas \
123120
&& mkdir -p log \

0 commit comments

Comments
 (0)