#739·laya

Docker image: runtime venv ships pip 24.0 and setuptools 79.0.1 with known CVEs; consider Debian 13 (trixie) as the default base

Author: RingosystemsCreated Sep 29, 2026Updated Sep 30, 2026

I build laya v0.3.21 from the repository's Dockerfile (default base python:3.11-slim-bookworm, linux/arm64) and scanned the resulting image with Trivy.

pip and setuptools in the runtime stage

The runtime venv still contains pip 24.0 and setuptools 79.0.1, which carry these advisories:

Package Installed Advisory Severity Fixed in
pip 24.0 CVE-2025-8869 Medium 25.3
pip 24.0 CVE-2026-1703 Low 26.0
pip 24.0 CVE-2026-3219 Medium 26.1
pip 24.0 CVE-2026-6357 Medium 26.1
pip 24.0 CVE-2026-8643 Medium 26.1.2
pip 24.0 CVE-2026-13346 Medium 26.2.0
setuptools 79.0.1 CVE-2026-59890 Medium 83.0.0

laya-serve never runs pip or setuptools at run time, so the practical impact is low. They do show up in every image scan, though. Could the runtime stage drop pip and setuptools, or upgrade them in the build stage, for example with python -m venv --upgrade-deps?

Base image

Debian 12 (bookworm) is now in LTS. On the v0.3.21 image, Trivy reports 124 distinct OS-package CVEs. Five of them are critical, and none of the five has a fix available:

  • CVE-2023-45853 (zlib1g)
  • CVE-2025-7458 (libsqlite3-0)
  • CVE-2026-13221, CVE-2026-42496 and CVE-2026-8376 (perl-base)

python:3.11-slim-trixie (Debian 13, same Python 3.11) reports 70 and no critical ones. Would you consider making trixie the default base? Downstream builders could then drop their override.

Happy to test a build if that helps.