Skip to content
OpenAdvisories
Unscored CVE-2018-1000005 EUVD-2018-1777GHSA-cj8j-r7q8-xg4f

libcurl 7.49.0 to and including 7.57.0 contains an out bounds read in code handling HTTP/2 trailers. It was reported (https://github.com/cu…

Published Jan 24, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

libcurl 7.49.0 to and including 7.57.0 contains an out bounds read in code handling HTTP/2 trailers. It was reported (https://github.com/curl/curl/pull/2231) that reading an HTTP/2 trailer could mess up future trailers since the stored size was one byte less than required. The problem is that the code that creates HTTP/1-like headers from the HTTP/2 trailer data once appended a string like `:` to the target buffer, while this was recently changed to `: ` (a space was added after the colon) but the following math wasn't updated correspondingly. When accessed, the data is read out of bounds and causes either a crash or that the (too large) data gets passed to client write. This could lead to a denial-of-service situation or an information disclosure if someone has a service that echoes back or uses the trailers for something.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 7.58.0-1 —
Debian 13 curl 7.58.0-1 —
Debian 12 curl 7.58.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS curl 7.47.0-1ubuntu2.6 USN-3554-1
Ubuntu 14.04 LTS curl 7.35.0-1ubuntu2.14 USN-3554-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 7.79.1-1.1 openSUSE-SU-2024:10582-1
ReleasePackageFixed inAdvisory
Alpine v3.7 curl 7.58.0-r0 —
Alpine v3.6 curl 7.58.0-r0 —
Alpine v3.5 curl 7.58.0-r0 —
Alpine v3.4 curl 7.58.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 curl +2 7.55.1-9.amzn2.0.1 ALAS2-2018-951

Advisories 6

References