Skip to content

fix: replace gosu with su-exec (CVE-2025-68121)#1

Merged
inkme9 merged 2 commits into
release/v18.3from
fix/replace-gosu-with-su-exec
Apr 9, 2026
Merged

fix: replace gosu with su-exec (CVE-2025-68121)#1
inkme9 merged 2 commits into
release/v18.3from
fix/replace-gosu-with-su-exec

Conversation

@inkme9

@inkme9 inkme9 commented Apr 9, 2026

Copy link
Copy Markdown

Why

gosu 1.19 is built with Go stdlib 1.24.6 which contains CVE-2025-68121 (fixed in 1.24.13). No newer gosu release available. GCP Marketplace Container Images review rejects images with this CVE.

What

  • Replace gosu with su-exec (C binary, Alpine package — no Go stdlib dependency)
  • Symlink gosu -> su-exec for docker-entrypoint.sh compatibility
  • Disable upstream CI workflows (not needed for our fork)
  • Add SBOM workflow (Syft + Grype) on release/* branches

Tested: postgres 18.3 starts, accepts connections, exec gosu postgres works via symlink.

inkme9 and others added 2 commits April 9, 2026 10:40
gosu 1.19 is built with Go 1.24.6 which contains CVE-2025-68121
(fixed in 1.24.13). No newer gosu release available.

su-exec is a minimal C alternative available in Alpine packages,
providing the same CLI interface. Symlink gosu -> su-exec maintains
compatibility with docker-entrypoint.sh.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Disable ci.yml and verify-templating.yml (upstream CI, not needed)
- Add sbom.yml: build image, generate CycloneDX SBOM (Syft),
  scan vulnerabilities (Grype), upload artifact

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@inkme9 inkme9 merged commit fad2ae2 into release/v18.3 Apr 9, 2026
1 check passed
@inkme9 inkme9 deleted the fix/replace-gosu-with-su-exec branch April 9, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant