# CVE-2018-1000005: HTTP/2 trailer out-of-bounds read

- Severity: Critical 9.1 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.56%, higher than 91% of CVEs (2026-12-01)
- Published: 2018-01-24T08:00:00.000Z
- Modified: 2026-10-25T01:05:34.091Z
- Also known as: CURL-CVE-2018-1000005
- Weaknesses: CWE-125
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- https://github.com/curl/curl.git: from 7.49.0 before 7.58.0; from 0761a51ee0551ad9e523cbdba24ce00d22fff9c1 before fa3dbb9a147488a2943bda809c66fc497efe06cb
- haxx libcurl: from 7.49.0 up to 7.57.0
- debian debian_linux: 8.0; 9.0
- canonical ubuntu_linux: 14.04; 16.04; 17.10

## Every score

- curl: rating Low
- NVD: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:P`

## References

- <http://www.securitytracker.com/id/1040273> (third-party-advisory, vdb-entry)
- <https://usn.ubuntu.com/3554-1/> (third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2018/dsa-4098> (third-party-advisory, vendor-advisory)
- <https://curl.haxx.se/docs/adv_2018-824a.html> (patch, vendor-advisory)
- <https://github.com/curl/curl/pull/2231> (issue-tracking, patch, third-party-advisory)
- <https://access.redhat.com/errata/RHSA-2019:1543> (vendor-advisory)

## Sources

- CVE List: [CVE-2018-1000005](https://www.cve.org/CVERecord?id=CVE-2018-1000005), CVE Terms of Use, modified 2024-08-05
- curl: [CURL-CVE-2018-1000005](https://osv.dev/vulnerability/CURL-CVE-2018-1000005), MIT, modified 2026-10-25
- NVD: [CVE-2018-1000005](https://nvd.nist.gov/vuln/detail/CVE-2018-1000005), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-1000005 · Whole record: https://cve.day/CVE-2018-1000005.json · Rebuilt by cve.day 2026-11-25T22:57:36.513Z
