[🐛 Bug]: [Critical, CVSS 9.8] Bundled rclone v1.75.2 contains vulnerable github.com/andybalholm/brotli v1.2.2 (excessive memory allocation, fixed in v1.2.7)

Đang mở Phù hợp với người mới
#3,294 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 1 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
77/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ệ
docker, go
Lĩnh vực
devops, security

Hướng nghiên cứu

Tìm nơi bản build chọn phiên bản rclone và cách tệp nhị phân được sao chép vào các image Video/Base. Bắt đầu bằng cách kiểm tra phiên bản rclone và dependency brotli đi kèm trong image bị ảnh hưởng; issue đề xuất rclone v1.76.0 trở lên. Công việc hoàn tất khi image được build sử dụng brotli v1.2.7 trở lên và các image đã cập nhật được phát hành.

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

Mô tả

What happened?

Our security scanner (Datadog) flags github.com/andybalholm/brotli in the rclone binary shipped in the Selenium images, rated Critical with a severity score of 9.8. In brotli before v1.2.7, the decompressor allocates Huffman tables and block-type trees on every meta-block header without a cumulative bound. A small crafted stream can cause hundreds of MB of allocations per KB of input, which can lead to denial of service.

Because of the Critical rating, many users' security scans will block or flag these images until a patched rclone is bundled, so a prompt rebuild would be much appreciated.

Affected image (also reproducible in selenium/node-base):

  • selenium/node-chrome:4.52.0-20261101 (linux/amd64)
$ docker run --rm --entrypoint sh selenium/node-chrome:4.52.0-20261101 -c \
  'rclone version | head -1; grep -a -o "andybalholm/brotli@v[0-9.]*" /usr/local/bin/rclone | sort -u'
rclone v1.75.2
andybalholm/[email protected]
Expected

rclone built with andybalholm/brotli >= v1.2.7. rclone v1.76.0 (released 2026-11-06) already depends on brotli v1.2.7:
https://github.com/rclone/rclone/blob/v1.76.0/go.mod

Suggested fix

Bump the rclone version used in the build (the rclone binary is copied into the Video/Base images) to >= v1.76.0 and publish refreshed images.

Workaround

Overwrite /usr/local/bin/rclone in a derived image with the official v1.76.0 linux-amd64 release. I verified this gives brotli v1.2.7.

Related but separate: #3282 (libbrotli1 OS package).

Ngôn ngữ chính
Go
Star
8.7k
Fork
2.5k
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
28

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 SeleniumHQ/docker-selenium

Tất cả issue của SeleniumHQ/docker-selenium

Issue tương tự

Thêm issue về Go

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.