Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(security): bump base image to python:3.14.6-slim, refresh .grype.yaml (#4523)

LearningCircuitbaa571bbfc27
diff --git a/.grype.yaml b/.grype.yaml
index ca01b3f8c4..0202df3c08 100644
--- a/.grype.yaml
+++ b/.grype.yaml
@@ -215,6 +215,16 @@ ignore:
reason: "Infinite loop in DTD parsing. Needs expat 2.7.5, not in Trixie or sid. Local attack vector, DoS only (CVSS 4.0). API XML uses defusedxml; XML upload uses lxml/libxml2 (not expat)."
- vulnerability: CVE-2026-32778
reason: "NULL deref in setContext after OOM. Needs expat 2.7.5, not in Trixie or sid. CNA CVSS 2.9 Low / NIST CVSS 5.5 Medium. Requires OOM precondition."
+ - vulnerability: CVE-2026-50219
+ reason: "UAF via reentrant parser calls from handlers in expat <2.8.2. Unfixed upstream and in sid (Debian bug 1138862). API XML uses defusedxml; XML upload uses lxml/libxml2 (not expat)."
+
+ # --- libgraphite2-3 (font shaping, transitive via harfbuzz for WeasyPrint) ---
+ - vulnerability: CVE-2026-50593
+ reason: "Integer underflow OOB write via crafted Graphite font actions. Fixed in graphite2 1.3.15 (forky/sid only); Trixie 1.3.14 no-dsa (point-release candidate). WeasyPrint renders app-generated HTML with trusted fonts only."
+
+ # --- perl-base ---
+ - vulnerability: CVE-2026-7010
+ reason: "CRLF header injection in HTTP::Tiny <0.093. Fixed in perl 5.40.1-8 (sid only); Trixie 5.40.1-6 no-dsa. perl-base is a dpkg essential package; container runs no perl HTTP clients."
# --- libxml2 ---
- vulnerability: CVE-2026-1757
@@ -292,9 +302,10 @@ ignore:
- vulnerability: CVE-2023-37769
reason: "FPE in stress-test tool. Debian: unimportant. Crash in test tool, no security impact."
- # --- python3.14 (base image python:3.14.4-slim) ---
- # 3.14.4 (2026-04-07) fixed CVE-2026-2297, -3446, -3479, -3644, -4224, -4519.
- # These remain open in 3.14.4 — fixes merged to main but not yet released.
+ # --- python3.14 (base image python:3.14.6-slim) ---
+ # 3.14.5 fixed CVE-2026-6100, -4786, -1502, -6019; 3.14.6 (2026-06-11)
+ # fixed CVE-2026-8328, -9669, -7774, -3276 — those entries were removed.
+ # The entries below remain unfixed upstream (no CPython release has them).
- vulnerability: CVE-2025-12781
reason: "base64 altchars accepts +/ regardless. Debian: minor. No alt-alphabet base64 usage."
- vulnerability: CVE-2025-15366
@@ -303,16 +314,6 @@ ignore:
reason: "poplib newline injection. Debian trixie no-dsa. No POP3 usage in container."
- vulnerability: CVE-2025-13462
reason: "tarfile AREGTYPE/DIRTYPE normalization in multi-block members. Low (CVSS 2.0). No untrusted tar extraction."
- - vulnerability: CVE-2026-6100
- reason: "Critical UAF in lzma/bz2/gzip decompressor after MemoryError. CVSS 9.1. Not fixed in 3.14.4 — awaiting next release. Not exploitable here: service never re-uses a decompressor instance after MemoryError (uses one-shot decompress() helpers and ephemeral instances for pypdf/unstructured extraction)."
- - vulnerability: CVE-2026-4786
- reason: "High command injection in webbrowser.open() via crafted URL containing 'tion'. Incomplete fix for CVE-2026-4519. Not fixed in 3.14.4. No webbrowser.open() usage anywhere in the codebase or dependencies."
- - vulnerability: CVE-2026-1502
- reason: "Medium CR/LF bytes not rejected in http.client proxy tunnel headers. Not fixed in 3.14.4. Container does not use http.client CONNECT tunneling; outbound requests go through requests/httpx which validate headers separately."
- - vulnerability: CVE-2026-6019
- reason: "Low CVSS 2.1 XSS in http.cookies.Morsel.js_output() — fails to neutralize </script> in cookie values when generating the <script> snippet. Not fixed in 3.14.4. No usage of http.cookies/SimpleCookie/Morsel/js_output anywhere in the codebase; cookies are handled by Flask/Werkzeug."
- - vulnerability: CVE-2026-8328
- reason: "Medium CVSS 5.9 SSRF in undocumented ftplib.ftpcp() — completes CVE-2021-4189 PASV-trust fix (python/cpython#149793, merged 2026-05-13 to 3.14 branch). No 3.14.6 release yet (3.14.5 tagged 2026-05-10). Not exploitable: nothing in src/ or transitive deps imports ftplib. Resolves on next Python bump."
# --- coreutils ---
- vulnerability: CVE-2025-5278
@@ -364,6 +365,6 @@ ignore:
- vulnerability: CVE-2026-2219
reason: "High vuln in dpkg 1.22.22. No fix in Trixie yet. Base image python:3.14-slim ships this version."
- # --- sed (GNU sed from Debian base image python:3.14.4-slim) ---
+ # --- sed (GNU sed from Debian base image python:3.14.6-slim) ---
- vulnerability: CVE-2026-5958
- reason: "Low CVE in GNU sed from base image. No public info — may be very new, disputed, or not yet indexed. sed not explicitly installed in Dockerfile; comes from python:3.14.4-slim. Container does not process untrusted input with sed. No fix in Trixie."
+ reason: "Low CVE in GNU sed from base image. No public info — may be very new, disputed, or not yet indexed. sed not explicitly installed in Dockerfile; comes from the python slim base image. Container does not process untrusted input with sed. No fix in Trixie."
diff --git a/Dockerfile b/Dockerfile
index 1ffab37f93..fe52f3cc64 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
####
# Used for building the LDR service dependencies.
####
-FROM python:3.14.5-slim@sha256:a7185a8e40af01bf891414a4df16ef10fc6000cee460a404a13da9029fe41604 AS builder-base
+FROM python:3.14.6-slim@sha256:c79315c9ba2403aecb221fb9090486be9af43cdc2372959ca7ccf6b17ebe9912 AS builder-base
# Set shell to bash with pipefail for safer pipe handling
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
@@ -238,7 +238,7 @@ ENV PATH="/install/.venv/bin:$PATH"
####
# Runs the LDR service.
###
-FROM python:3.14.5-slim@sha256:a7185a8e40af01bf891414a4df16ef10fc6000cee460a404a13da9029fe41604 AS ldr
+FROM python:3.14.6-slim@sha256:c79315c9ba2403aecb221fb9090486be9af43cdc2372959ca7ccf6b17ebe9912 AS ldr
# Set shell to bash with pipefail for safer pipe handling
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
diff --git a/changelog.d/+bump-python-base-image.security.md b/changelog.d/+bump-python-base-image.security.md
new file mode 100644
index 0000000000..da626bd979
--- /dev/null
+++ b/changelog.d/+bump-python-base-image.security.md
@@ -0,0 +1 @@
+Bumped the Docker base image from python:3.14.5-slim to python:3.14.6-slim, picking up the upstream CPython fixes for CVE-2026-9669 (bz2 decompressor reuse out-of-bounds write), CVE-2026-7774 (tarfile data_filter path-traversal bypass), and CVE-2026-3276 (unicodedata.normalize CPU exhaustion). Also suppressed three base-image CVEs with no fix available in Debian trixie (graphite2 CVE-2026-50593, expat CVE-2026-50219, perl HTTP::Tiny CVE-2026-7010 — none reachable in this container) in .grype.yaml, and removed five suppressions for python CVEs that the 3.14.5/3.14.6 releases fixed.