curl: IMAP FETCH response out of bounds read
Published Oct 31, 2017
9.1
CRITICALCVSS 3.1
EPSS 6.22%
Description
An IMAP FETCH response line indicates the size of the returned data, in number of bytes. When that response says the data is zero bytes, libcurl would pass on that (non-existing) data with a pointer and the size (zero) to the deliver-data function. libcurl's deliver-data function treats zero as a magic number and invokes strlen() on the data to figure out the length. The strlen() is called on a heap based buffer that might not be zero terminated so libcurl might read beyond the end of it into whatever memory lies after (or just crash) and then deliver that to the application as if it was actually downloaded.
Affected products
No data.
Configuration 2
- 8.0
- 9.0
No data.
Red Hat Enterprise Linux 7
curl-0:7.29.0-42.el7_4.1
Fixed · RHSA-2017:3263
Red Hat JBoss Core Services
jbcs-httpd24-curl
Fixed · RHSA-2018:2486
Red Hat Software Collections for Red Hat Enterprise Linux 6
httpd24-curl-0:7.61.1-1.el6
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 6
httpd24-httpd-0:2.4.34-7.el6
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 6
httpd24-nghttp2-0:1.7.1-7.el6
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7
httpd24-curl-0:7.61.1-1.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7
httpd24-httpd-0:2.4.34-7.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7
httpd24-nghttp2-0:1.7.1-7.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
httpd24-curl-0:7.61.1-1.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
httpd24-httpd-0:2.4.34-7.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
httpd24-nghttp2-0:1.7.1-7.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
httpd24-curl-0:7.61.1-1.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
httpd24-httpd-0:2.4.34-7.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
httpd24-nghttp2-0:1.7.1-7.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
httpd24-curl-0:7.61.1-1.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
httpd24-httpd-0:2.4.34-7.el7
Fixed · RHSA-2018:3558
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
httpd24-nghttp2-0:1.7.1-7.el7
Fixed · RHSA-2018:3558
.NET Core 1.0 on Red Hat Enterprise Linux
rh-dotnetcore10-curl
Out of support scope
.NET Core 1.1 on Red Hat Enterprise Linux
rh-dotnetcore11-curl
Out of support scope
.NET Core 2.0 on Red Hat Enterprise Linux
rh-dotnet20-curl
Out of support scope
.NET Core 2.1 on Red Hat Enterprise Linux
rh-dotnet21-curl
Will not fix
Red Hat Enterprise Linux 5
curl
Not affected
Red Hat Enterprise Linux 6
curl
Not affected
Red Hat Enterprise Virtualization 3
mingw-virt-viewer
Not affected
Red Hat JBoss Web Server 3
curl
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | curl-0:7.29.0-42.el7_4.1 | Fixed | RHSA-2017:3263 |
| Red Hat JBoss Core Services | jbcs-httpd24-curl | Fixed | RHSA-2018:2486 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | httpd24-curl-0:7.61.1-1.el6 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | httpd24-httpd-0:2.4.34-7.el6 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | httpd24-nghttp2-0:1.7.1-7.el6 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | httpd24-curl-0:7.61.1-1.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | httpd24-httpd-0:2.4.34-7.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | httpd24-nghttp2-0:1.7.1-7.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | httpd24-curl-0:7.61.1-1.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | httpd24-httpd-0:2.4.34-7.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | httpd24-nghttp2-0:1.7.1-7.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | httpd24-curl-0:7.61.1-1.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | httpd24-httpd-0:2.4.34-7.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | httpd24-nghttp2-0:1.7.1-7.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | httpd24-curl-0:7.61.1-1.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | httpd24-httpd-0:2.4.34-7.el7 | Fixed | RHSA-2018:3558 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | httpd24-nghttp2-0:1.7.1-7.el7 | Fixed | RHSA-2018:3558 |
| .NET Core 1.0 on Red Hat Enterprise Linux | rh-dotnetcore10-curl | Out of support scope | n/a |
| .NET Core 1.1 on Red Hat Enterprise Linux | rh-dotnetcore11-curl | Out of support scope | n/a |
| .NET Core 2.0 on Red Hat Enterprise Linux | rh-dotnet20-curl | Out of support scope | n/a |
| .NET Core 2.1 on Red Hat Enterprise Linux | rh-dotnet21-curl | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | curl | Not affected | n/a |
| Red Hat Enterprise Linux 6 | curl | Not affected | n/a |
| Red Hat Enterprise Virtualization 3 | mingw-virt-viewer | Not affected | n/a |
| Red Hat JBoss Web Server 3 | curl | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
Switch off IMAP in `CURLOPT_PROTOCOLS`
References (13)
- http://www.debian.org/security/2017/dsa-4007 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.securityfocus.com/bid/101519 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1039644 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:3263 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2018:2486 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2018:3558 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2017-1000257 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1503705 Issue Tracking
- https://curl.haxx.se/docs/adv_20171023.html x_refsource_CONFIRMVendor Advisory
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2017-1518 Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-1000257
- https://security.gentoo.org/glsa/201712-04 vendor-advisoryx_refsource_GENTOO
- https://www.cve.org/CVERecord?id=CVE-2017-1000257
Change history (0)
No recorded changes yet.