Skip to content

Fix 47 High/Critical CVEs: upgrade certifi, django, djangorestframework and 3 more - #5

Open
liorgol wants to merge 1 commit into
cve-remediator/base-2025-08from
cve-remediator/20261120-564b3589
Open

liorgol wants to merge 1 commit into
cve-remediator/base-2025-08from
cve-remediator/20261120-564b3589

Conversation

@liorgol

@liorgol liorgol commented Nov 20, 2026

Copy link
Copy Markdown
Owner

This PR fixes 47 High/Critical findings by upgrading 5 pinned Python dependencies and moving to a newer build of the same base image. The image was rebuilt, the repository's own tests were run unchanged, and the image was rescanned with Trivy.

Validation

Check Result
Image builds ✅ pass
No owner test got worse (tests unchanged) ✅ pass (926 tests)
Targeted CVEs gone on rescan ✅ pass
No new or worsened High/Critical ✅ pass

Trivy findings before and after

Severity Before After Change
CRITICAL 8 4 -4
HIGH 283 240 -43
MEDIUM 965 908 -57
LOW 427 404 -23
UNKNOWN 225 220 -5
Total 1908 1776 -132

Changes

Package From To File
certifi 2024.8.30 2026.10.18 requirements.txt line 15
django 5.2.3 5.2.17 requirements.txt line 30
djangorestframework 3.15.2 3.18.2 requirements.txt line 40
sqlparse 0.5.1 0.6.0 requirements.txt line 71
urllib3 2.5.0 2.8.0 requirements.txt line 75
base image python:3.12.9-slim-bookworm python:3.12.16-slim-bookworm docker/default.Dockerfile line 54

The base image moves only to a newer build of the same Python minor version and Debian release; OS findings it removes are listed as fixed.

Upgrades left out

Upgrading soupsieve broke tests that passed before, and automatic repair did not fix it. This PR ships the remaining upgrades, which pass on their own; the findings those upgrades would fix are listed under Not fixed and need a manual migration.

Fixed by this PR

CVE Package Severity Fixed by
CVE-2025-64459 Django 5.2.3 CRITICAL django 5.2.3 → 5.2.17
GHSA-6q48-6c7w-9gw2 certifi 2024.8.30 CRITICAL certifi 2024.8.30 → 2026.10.18
CVE-2026-33845 libgnutls30 3.7.9-2+deb12u4 CRITICAL base image refresh
CVE-2026-42010 libgnutls30 3.7.9-2+deb12u4 CRITICAL base image refresh
CVE-2025-57833 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2025-59681 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2025-64458 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-1207 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-1287 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-15307 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-25673 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-33034 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-3902 Django 5.2.3 HIGH django 5.2.3 → 5.2.17
CVE-2026-109518 apt 2.6.1 HIGH base image refresh
CVE-2026-114136 djangorestframework 3.15.2 HIGH djangorestframework 3.15.2 → 3.18.2
CVE-2026-114137 djangorestframework 3.15.2 HIGH djangorestframework 3.15.2 → 3.18.2
CVE-2026-114138 djangorestframework 3.15.2 HIGH djangorestframework 3.15.2 → 3.18.2
CVE-2025-68973 gpgv 2.2.40-1.1 HIGH base image refresh
CVE-2026-109518 libapt-pkg6.0 2.6.1 HIGH base image refresh
CVE-2026-4878 libcap2 1:2.66-4 HIGH base image refresh
CVE-2025-32988 libgnutls30 3.7.9-2+deb12u4 HIGH base image refresh
CVE-2025-32990 libgnutls30 3.7.9-2+deb12u4 HIGH base image refresh
CVE-2026-33846 libgnutls30 3.7.9-2+deb12u4 HIGH base image refresh
CVE-2026-3833 libgnutls30 3.7.9-2+deb12u4 HIGH base image refresh
CVE-2026-42009 libgnutls30 3.7.9-2+deb12u4 HIGH base image refresh
CVE-2026-40355 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH base image refresh
CVE-2026-40356 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH base image refresh
CVE-2026-40355 libk5crypto3 1.20.1-2+deb12u2 HIGH base image refresh
CVE-2026-40356 libk5crypto3 1.20.1-2+deb12u2 HIGH base image refresh
CVE-2026-40355 libkrb5-3 1.20.1-2+deb12u2 HIGH base image refresh
CVE-2026-40356 libkrb5-3 1.20.1-2+deb12u2 HIGH base image refresh
CVE-2026-40355 libkrb5support0 1.20.1-2+deb12u2 HIGH base image refresh
CVE-2026-40356 libkrb5support0 1.20.1-2+deb12u2 HIGH base image refresh
CVE-2026-103111 libpcre2-8-0 10.42-1 HIGH base image refresh
CVE-2026-86145 libpcre2-8-0 10.42-1 HIGH base image refresh
CVE-2026-89157 libpcre2-8-0 10.42-1 HIGH base image refresh
CVE-2026-89161 libpcre2-8-0 10.42-1 HIGH base image refresh
CVE-2025-6965 libsqlite3-0 3.40.1-2+deb12u1 HIGH base image refresh
CVE-2026-54284 sqlparse 0.5.1 HIGH sqlparse 0.5.1 → 0.6.0
CVE-2026-59893 sqlparse 0.5.1 HIGH sqlparse 0.5.1 → 0.6.0
CVE-2026-71491 sqlparse 0.5.1 HIGH sqlparse 0.5.1 → 0.6.0
CVE-2025-66418 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0
CVE-2025-66471 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0
CVE-2026-21441 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0
CVE-2026-44431 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0
CVE-2026-97687 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0
CVE-2026-97689 urllib3 2.5.0 HIGH urllib3 2.5.0 → 2.8.0

The same upgrades also removed 85 lower-severity finding(s).

Finding status (Critical/High)

Status Count
Fixed by this PR 47
Vendor-dependent: no fix from Debian yet 235
Open: fix exists in Debian, needs a newer base image 0
Open: other (reasons below) 9

Not fixed by this PR

CVE Package Severity Fix available Reason
CVE-2026-26007 cryptography 43.0.1 HIGH 46.0.5 no compatible release satisfies all findings for the declaration
CVE-2026-69249 cryptography 43.0.1 HIGH 49.0.0 no compatible release satisfies all findings for the declaration
GHSA-537c-gmf6-5ccf cryptography 43.0.1 HIGH 48.0.1 no compatible release satisfies all findings for the declaration
CVE-2026-27459 pyOpenSSL 24.2.1 HIGH 26.0.0 combined direct pins conflict with published dependency constraints
CVE-2025-47273 setuptools 70.3.0 HIGH 78.1.1 target provenance is not confirmed
CVE-2026-126190 soupsieve 2.6 HIGH 4.0.0 upgrade 2.6 → 4.0 breaks the application's tests and automatic repair did not fix it; needs a manual migration
CVE-2026-126191 soupsieve 2.6 HIGH 3.0.2 upgrade 2.6 → 4.0 breaks the application's tests and automatic repair did not fix it; needs a manual migration
CVE-2026-49476 soupsieve 2.6 HIGH 2.8.4 upgrade 2.6 → 4.0 breaks the application's tests and automatic repair did not fix it; needs a manual migration
CVE-2026-49477 soupsieve 2.6 HIGH 2.8.4 upgrade 2.6 → 4.0 breaks the application's tests and automatic repair did not fix it; needs a manual migration

235 High/Critical findings are in OS (Debian) packages from the base image. This version of the tool reports them but does not change OS packages.

Waiting on Debian (vendor-dependent, no fix released yet): 228
CVE Package Severity Debian status
CVE-2023-6879 libaom3 3.6.0-1+deb12u3 CRITICAL affected
CVE-2025-7458 libsqlite3-0 3.40.1-2+deb12u1 CRITICAL affected
CVE-2026-99362 linux-libc-dev 6.1.192-2 CRITICAL affected
CVE-2026-53613 bsdutils 1:2.38.1-5+deb12u3 HIGH affected
CVE-2026-53615 bsdutils 1:2.38.1-5+deb12u3 HIGH affected
CVE-2026-78410 bsdutils 1:2.38.1-5+deb12u3 HIGH affected
CVE-2026-12064 curl 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-6276 curl 7.88.1-10+deb12u15 HIGH affected
CVE-2026-8286 curl 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-8458 curl 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-8927 curl 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-41992 gzip 1.12-1 HIGH fix_deferred
CVE-2026-54369 libacl1 2.3.1-3 HIGH fix_deferred
CVE-2026-53613 libblkid1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-53615 libblkid1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-78410 libblkid1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-12064 libcurl4 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-6276 libcurl4 7.88.1-10+deb12u15 HIGH affected
CVE-2026-8286 libcurl4 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-8458 libcurl4 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-8927 libcurl4 7.88.1-10+deb12u15 HIGH fix_deferred
CVE-2026-113351 libexpat1 2.5.0-1+deb12u5 HIGH fix_deferred
CVE-2026-115506 libexpat1 2.5.0-1+deb12u5 HIGH fix_deferred
CVE-2026-117610 libexpat1 2.5.0-1+deb12u5 HIGH affected
CVE-2026-118370 libexpat1 2.5.0-1+deb12u5 HIGH affected
CVE-2026-107364 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112315 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112316 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112317 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112318 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112319 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112320 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112321 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112322 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112323 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-118380 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-119079 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71199 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71200 libgssapi-krb5-2 1.20.1-2+deb12u2 HIGH affected
CVE-2025-68431 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-120208 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-32740 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-32741 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-32882 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-41071 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-47178 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-50142 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-62289 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-62292 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84384 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84444 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84446 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84447 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84450 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-84451 libheif1 1.15.1-1+deb12u1 HIGH affected
CVE-2026-107364 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112315 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112316 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112317 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112318 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112319 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112320 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112321 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112322 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112323 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-118380 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-119079 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71199 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71200 libk5crypto3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-107364 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112315 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112316 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112317 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112318 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112319 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112320 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112321 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112322 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112323 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-118380 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-119079 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71199 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71200 libkrb5-3 1.20.1-2+deb12u2 HIGH affected
CVE-2026-107364 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112315 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112316 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112317 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112318 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112319 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112320 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112321 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112322 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-112323 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-118380 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-119079 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71199 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2026-71200 libkrb5support0 1.20.1-2+deb12u2 HIGH affected
CVE-2023-2953 libldap-2.5-0 2.5.13+dfsg-5 HIGH affected
CVE-2023-2953 libldap-common 2.5.13+dfsg-5 HIGH affected
CVE-2026-53613 libmount1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-53615 libmount1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-78410 libmount1 2.38.1-5+deb12u3 HIGH affected
CVE-2025-69720 libncursesw6 6.4-4 HIGH affected
CVE-2025-6020 libpam-modules 1.5.2-6+deb12u1 HIGH affected
CVE-2025-6020 libpam-modules-bin 1.5.2-6+deb12u1 HIGH affected
CVE-2025-6020 libpam-runtime 1.5.2-6+deb12u1 HIGH affected
CVE-2025-6020 libpam0g 1.5.2-6+deb12u1 HIGH affected
CVE-2026-9538 libperl5.36 5.36.0-7+deb12u4 HIGH fix_deferred
CVE-2026-53613 libsmartcols1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-53615 libsmartcols1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-78410 libsmartcols1 2.38.1-5+deb12u3 HIGH affected
CVE-2026-11822 libsqlite3-0 3.40.1-2+deb12u1 HIGH fix_deferred
CVE-2026-11824 libsqlite3-0 3.40.1-2+deb12u1 HIGH fix_deferred
CVE-2026-119373 libsqlite3-0 3.40.1-2+deb12u1 HIGH affected
CVE-2026-119374 libsqlite3-0 3.40.1-2+deb12u1 HIGH affected
CVE-2026-119379 libsqlite3-0 3.40.1-2+deb12u1 HIGH affected
CVE-2026-16742 libsystemd0 252.36-1~deb12u1 HIGH fix_deferred
CVE-2026-12912 libtiff6 4.5.0-6+deb12u4 HIGH affected
CVE-2026-36849 libtiff6 4.5.0-6+deb12u4 HIGH fix_deferred
CVE-2026-52490 libtiff6 4.5.0-6+deb12u4 HIGH affected

…and 108 more.

Debian will not fix (vendor-dependent, marked minor): 7
CVE Package Severity Debian status
CVE-2023-45853 zlib1g 1:1.2.13.dfsg-1 CRITICAL will_not_fix
CVE-2023-39616 libaom3 3.6.0-1+deb12u3 HIGH will_not_fix
CVE-2023-52355 libtiff6 4.5.0-6+deb12u4 HIGH will_not_fix
CVE-2013-7445 linux-libc-dev 6.1.192-2 HIGH will_not_fix
CVE-2026-31568 linux-libc-dev 6.1.192-2 HIGH will_not_fix
CVE-2026-46219 linux-libc-dev 6.1.192-2 HIGH will_not_fix
CVE-2026-46293 linux-libc-dev 6.1.192-2 HIGH will_not_fix

Generated by CVE Remediator · run 564b3589b13346c28885eb836fb4df8b. Review before merging; nothing is merged automatically.

…rk and 3 more

Validated by CVE Remediator run 564b3589b13346c28885eb836fb4df8b: image rebuilt, owner tests passed unchanged, targeted CVEs gone on Trivy rescan, no new High/Critical.
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