P0: su-exec in Docker entrypoint may fail silently — container runs as root #4

Open
opened 2026-05-13 20:39:36 -05:00 by null · 0 comments
Owner

Severity: P0 — Critical

File: docker-entrypoint.sh ~line 16

Problem: su-exec nodejs node server/index.js assumes the user exists. If UID/GID 1001 conflicts, su-exec may fail silently and the container runs as root.

Impact: Security vulnerability — container runs as root instead of the intended non-root user.

Fix: Add explicit check that su-exec succeeded, or use gosu with error handling.

## Severity: P0 — Critical **File:** docker-entrypoint.sh ~line 16 **Problem:** su-exec nodejs node server/index.js assumes the user exists. If UID/GID 1001 conflicts, su-exec may fail silently and the container runs as root. **Impact:** Security vulnerability — container runs as root instead of the intended non-root user. **Fix:** Add explicit check that su-exec succeeded, or use gosu with error handling.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: null/Queue-North-Website#4
No description provided.