CVE-2026-77014: Libsoup: libsoup: integer truncation in sort_ranges() comparator causes silent omission of http range responses

Published Aug 20, 2026
·
Updated

A flaw was found in libsoup's SoupServer HTTP Range header processing. The sortranges() comparator function in soup-message-headers.c returns the difference of two goffset (64-bit) values as an int (32-bit). When two range start positions in a multi-range request differ by more than INTMAX (~2.1 billion), the truncation flips the comparison result sign, violating qsort's ordering contract. The mis-sorted ranges are then incorrectly merged, causing the server to silently omit requested byte ranges from the HTTP 206 Partial Content response. A remote unauthenticated attacker can trigger this by sending a multi-range Range request for a resource larger than approximately 2 GB, with range start offsets more than INTMAX apart. The client receives fewer ranges than requested with no error indication, compromising data integrity for resumable downloads, delta updates, mirror synchronization, and chunked verification of large objects.

Other sources

A flaw was found in libsoup's SoupServer HTTP Range header processing. The sortranges() comparator in soup-message-headers.c truncates a 64-bit subtraction result to 32-bit int, flipping the sign for range offsets differing by more than INTMAX. This causes silent omission of requested byte ranges from HTTP 206 Partial Content responses on resources larger than approximately 2 GB.

MITRE

Affected Software

1 affected component
libsoup

Event History

Aug 20, 2026
Data Sourced
via Red Hat·07:44 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·08:21 AM
Data Sourced
via MITRE·08:21 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using libsoup's SoupServer HTTP Range header processing are exposed when they serve resources larger than approximately 2 GB and honor multi-range requests. The issue affects HTTP 206 Partial Content responses.

2

What does an attacker need to send to trigger the flaw?

An unauthenticated remote attacker must send a multi-range Range request whose range start offsets differ by more than INT_MAX, approximately 2.1 billion bytes. The targeted resource must be larger than approximately 2 GB.

3

What is the observable impact of a successful exploit?

The server can incorrectly merge mis-sorted ranges and silently omit requested byte ranges from its HTTP 206 response. The client receives fewer ranges than requested without an error, which can compromise integrity-sensitive resumable downloads, delta updates, mirror synchronization, and chunked verification.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203