{"id":"CVE-2018-1000005","aliases":["CVE-2018-1000005","CURL-CVE-2018-1000005"],"related":[],"kind":"vulnerability","state":"published","title":"HTTP/2 trailer out-of-bounds read","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"libcurl contains an out bounds read in code handling HTTP/2 trailers.\n\nIt was [reported](https://github.com/curl/curl/pull/2231) that reading an\nHTTP/2 trailer could mess up future trailers since the stored size was one\nbyte less than required.\n\nThe problem is that the code that creates HTTP/1-like headers from the HTTP/2\ntrailer data once appended a string like `\":\"` to the target buffer, while\nthis was recently changed to `\": \"` (a space was added after the colon) but\nthe associated math was not updated correspondingly.\n\nWhen accessed, the data is read out of bounds and causes either a crash or\nthat the (too large) data gets passed to the libcurl callback. This might lead\nto a denial-of-service situation or an information disclosure if someone has a\nservice that echoes back or uses the trailers for something.","format":"markdown","source":"curl"},{"lang":"es","text":"libcurl 7.49.0 hasta e incluyendo la versión 7.57.0 contiene una lectura fuera de límites en los trailers de manipulación de código HTTP/2. Se ha notificado (https://github.com/curl/curl/pull/2231) que la lectura de un trailer HTTP/2 podría dañar futuros trailers debido a que el tamaño almacenado era un byte menor de lo requerido. El problema es que el código que crea cabeceras como HTTP/1 de los datos del trailer HTTP/2 anexaron una cadena como \":\" en el búfer objetivo, a pesar de que se había cambiado recientemente a \": \" (se añadió un espacio después de los dos puntos), pero la siguiente matemática no se actualizó debidamente. Al acceder a ellos, los datos se leen fuera de límites y provocan o un cierre inesperado o que los datos (demasiado grandes) se pasen a escritura del cliente. Esto podría conducir a una situación de denegación de servicio (DoS) o a una divulgación de información si alguien tiene un servicio que devuelva ecos o que emplee los trailers para algo.","source":"nvd"}],"published":"2018-01-24T08:00:00.000Z","modified":"2026-10-25T01:05:34.091Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"curl","scheme":"rating","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.49.0","status":"affected","fixed":"7.58.0"},{"type":"git","introduced":"0761a51ee0551ad9e523cbdba24ce00d22fff9c1","status":"affected","fixed":"fa3dbb9a147488a2943bda809c66fc497efe06cb"}],"repo":"https://github.com/curl/curl.git","source":"curl"},{"ranges":[{"status":"affected","introduced":"7.49.0","lastAffected":"7.57.0"}],"vendor":"haxx","product":"libcurl","cpe":"cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"},{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"14.04"},{"status":"affected","version":"16.04"},{"status":"affected","version":"17.10"}],"vendor":"canonical","product":"ubuntu_linux","cpe":"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*","source":"nvd"}],"references":[{"url":"http://www.securitytracker.com/id/1040273","tags":["third-party-advisory","vdb-entry","x-refsource-sectrack","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://usn.ubuntu.com/3554-1/","tags":["third-party-advisory","vendor-advisory","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2018/dsa-4098","tags":["third-party-advisory","vendor-advisory","x-refsource-debian","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://curl.haxx.se/docs/adv_2018-824a.html","tags":["patch","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/curl/curl/pull/2231","tags":["issue-tracking","patch","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2019:1543","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Zhouyihai Ding","Ray Satiro"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2018-1000005","url":"https://www.cve.org/CVERecord?id=CVE-2018-1000005","licence":"CVE Terms of Use","modified":"2024-08-05T12:33:49.200Z"},{"source":"curl","name":"curl","id":"CURL-CVE-2018-1000005","url":"https://osv.dev/vulnerability/CURL-CVE-2018-1000005","licence":"MIT","modified":"2026-10-25T01:05:34.091Z"},{"source":"nvd","name":"NVD","id":"CVE-2018-1000005","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000005","licence":"Public domain","modified":"2026-06-17T01:32:11.433Z"}],"updatedAt":"2026-11-25T22:57:36.513Z","epss":{"score":0.04556,"percentile":0.91792,"date":"2026-12-01T12:00:22.000Z"}}