Skip to content

fix: backport CVE-2026-108147 fix from Django 5.2 - #12152

Merged
jennifer-richards merged 1 commit into
ietf-tools:mainfrom
rjsparks:django-cve-2026-108147
Dec 3, 2026
Merged

jennifer-richards merged 1 commit into
ietf-tools:mainfrom
rjsparks:django-cve-2026-108147

Conversation

@rjsparks

@rjsparks rjsparks commented Dec 3, 2026

Copy link
Copy Markdown
Member

CVE-2026-108147: Potential memory exhaustion in MultiPartParser via base64-encoded file upload

Patch from django/django@4bd1f59

A base64-encoded file part whose length is not a multiple of 4 was read and decoded in full before reaching upload handlers, bypassing FILE_UPLOAD_MAX_MEMORY_SIZE. Decoded data now reaches handlers in chunks, and truncated base64 data is rejected as a bad request instead of being saved as an empty file.

Verified that Django's new tests fail on 4.2.30 and pass after patching.

CVE-2026-108147: Potential memory exhaustion in MultiPartParser via
base64-encoded file upload

Patch from django/django@4bd1f59

A base64-encoded file part whose length is not a multiple of 4 was
read and decoded in full before reaching upload handlers, bypassing
FILE_UPLOAD_MAX_MEMORY_SIZE. Decoded data now reaches handlers in
chunks, and truncated base64 data is rejected as a bad request instead
of being saved as an empty file.

Verified that Django's new tests fail on 4.2.30 and pass after patching.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.40%. Comparing base (e4103bc) to head (8661f0d).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12152      +/-   ##
==========================================
- Coverage   89.45%   89.40%   -0.05%     
==========================================
  Files         343      343              
  Lines       47044    46557     -487     
==========================================
- Hits        42083    41626     -457     
+ Misses       4961     4931      -30     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jennifer-richards
jennifer-richards merged commit 5372672 into ietf-tools:main Dec 3, 2026
9 checks passed
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.

2 participants