Bump Django to >= 5.2.20 (CVE-2026-124827)

Đang mở Phù hợp với người mới
#4,644 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
django, docker, python
Lĩnh vực
devops, security

Hướng nghiên cứu

Báo cáo cho biết image chứa Django 5.2.17 và repository ghim phiên bản Django trong pyproject.toml và uv.lock. Đọc hướng dẫn cập nhật dependency và kiểm tra các file này. Tìm hiểu cách build image tự lưu trữ và cách xác minh các dependency của nó. Công việc hoàn tất khi dependency đạt ít nhất phiên bản 5.2.20, file khóa và image sử dụng phiên bản đã sửa lỗi, đồng thời mối lo ngại về bảo mật của issue được giải quyết.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Waiting for: Product Owner
Self-Hosted Version

26.11.0

CPU Architecture

x86_64

Docker Version

27.5.1

Docker Compose Version

5.6.1

Machine Specification
  • My system meets the minimum system requirements of Sentry
Installation Type

Fresh Install

Steps to Reproduce
  1. docker run --rm --entrypoint python ghcr.io/getsentry/sentry:26.11.0 -c "import django; print(django.__version__)"
  2. Compare with the fixed versions for CVE-2026-124827 (Django 5.2.20 / 6.0.11 / 6.1.4)
Expected Result

The Sentry image ships a Django version that is not affected by CVE-2026-124827 (>= 5.2.20).

Actual Result

ghcr.io/getsentry/sentry:26.11.0 ships Django 5.2.17, which is affected by
CVE-2026-124827 (CVSS 4.0: 8.7 HIGH, CWE-73, published 2026-12-02):
django.contrib.gis.db.models.RasterField allows file creation at
attacker-controlled locations via the name parameter of a data definition,
potentially leading to RCE depending on the raster driver.

getsentry/sentry master currently pins django==5.2.19 in uv.lock
(pyproject.toml: django>=5.2.19), which is still affected.

Impact assessment: As far as I can tell, Sentry does not enable
django.contrib.gis and uses sentry.db.postgres (no PostGIS), so the
vulnerable code path is most likely not reachable. Scanners such as Trivy do
not flag this yet because the GHSA entry is still unreviewed (no package
mapping), so they will start reporting it once the advisory is reviewed.

Request: Please bump Django to >= 5.2.20 in getsentry/sentry and ship
it with the next self-hosted release, or confirm that Sentry is not affected so
it can be documented as a false positive.

References:

Event ID

No response

Ngôn ngữ chính
Shell
Star
9.7k
Fork
2k
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/self-hosted

Tất cả issue của getsentry/self-hosted

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.