CVE-2018-1000005 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....
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Upgrade path
11 packages: 9 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/curl(Alpine v3.4) | < 7.58.0-r0 | 7.58.0-r0 | Fixed |
| alpine/curl(Alpine v3.5) | < 7.58.0-r0 | 7.58.0-r0 | Fixed |
| alpine/curl(Alpine v3.6) | < 7.58.0-r0 | 7.58.0-r0 | Fixed |
| alpine/curl(Alpine v3.7) | < 7.58.0-r0 | 7.58.0-r0 | Fixed |
| debian/curl(Debian 12) | < 7.58.0-1 | 7.58.0-1 | Fixed |
| debian/curl(Debian 13) | < 7.58.0-1 | 7.58.0-1 | Fixed |
| debian/curl(Debian 14) | < 7.58.0-1 | 7.58.0-1 | Fixed |
| haxx libcurl | >= 7.49.0, <= 7.57.0 | after 7.57.0 | Fixed |
| ubuntu/curl(Ubuntu 16.04) | < 7.47.0-1ubuntu2.6; = 7.43.0-1ubuntu2; = 7.45.0-1ubuntu1; = 7.46.0-1ubuntu1 +7 more | 7.47.0-1ubuntu2.6 | Fixed |
| Canonical Ubuntu Linux | = 14.04; = 16.04; = 17.10 | No fix listed | Versions listed |
| debian linux | = 8.0; = 9.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/curl(Debian:12) | < 7.58.0-1 | 7.58.0-1 |
| debian/curl(Debian:13) | < 7.58.0-1 | 7.58.0-1 |
| debian/curl(Debian:14) | < 7.58.0-1 | 7.58.0-1 |
| haxx libcurl | >= 7.49.0, <= 7.57.0 | No fix listed |
| debian linux | = 8.0 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| Canonical Ubuntu Linux | = 14.04 | No fix listed |
| Canonical Ubuntu Linux | = 16.04 | No fix listed |
| Canonical Ubuntu Linux | = 17.10 | No fix listed |
| alpine/curl(Alpine:v3.4) | < 7.58.0-r0 | 7.58.0-r0 |
| alpine/curl(Alpine:v3.5) | < 7.58.0-r0 | 7.58.0-r0 |
| alpine/curl(Alpine:v3.6) | < 7.58.0-r0 | 7.58.0-r0 |
| alpine/curl(Alpine:v3.7) | < 7.58.0-r0 | 7.58.0-r0 |
| ubuntu/curl(Ubuntu:16.04) | < 7.47.0-1ubuntu2.6 | 7.47.0-1ubuntu2.6 |
| ubuntu/curl(Ubuntu:16.04) | = 7.43.0-1ubuntu2 | No fix listed |
| ubuntu/curl(Ubuntu:16.04) | = 7.45.0-1ubuntu1 | No fix listed |
| ubuntu/curl(Ubuntu:16.04) | = 7.46.0-1ubuntu1 | No fix listed |
| ubuntu/curl(Ubuntu:16.04) | = 7.47.0-1ubuntu1 | No fix listed |
| ubuntu/curl(Ubuntu:16.04) | = 7.47.0-1ubuntu2 | No fix listed |
| ubuntu/curl(Ubuntu:16.04) | = 7.47.0-1ubuntu2.1 | No fix listed |
| ubuntu/curl(Ubuntu:16.04) | = 7.47.0-1ubuntu2.2 | No fix listed |
| ubuntu/curl(Ubuntu:16.04) | = 7.47.0-1ubuntu2.3 | No fix listed |
| ubuntu/curl(Ubuntu:16.04) | = 7.47.0-1ubuntu2.4 | No fix listed |
| ubuntu/curl(Ubuntu:16.04) | = 7.47.0-1ubuntu2.5 | No fix listed |
References
- Debian Security Tracker CVE-2018-1000005 vendor-advisory
- 1040273 third-party-advisory vdb-entry
- RHSA-2019:1543 vendor-advisory
- curl.haxx.se issue-tracking patch vendor-advisory
- github.com issue-tracking patch third-party-advisory
- USN-3554-1 third-party-advisory vendor-advisory
- DSA-4098 third-party-advisory vendor-advisory
- security.alpinelinux.org vendor-advisory
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking