CVE-2017-1000257 json
An IMAP FETCH response line indicates the size of the returned data, in number of bytes.
published 2017-10-31 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-1518
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.2%
- EPSS 6.2% chance of exploitation in 30 days, percentile 93%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- curl Debian 14, Debian 13, Debian 12 7.56.1-1
debian advisories DEBIAN-CVE-2017-1000257
- curl Ubuntu 14.04 LTS 7.35.0-1ubuntu2.12
- curl Ubuntu 16.04 LTS 7.47.0-1ubuntu2.4
ubuntu advisories UBUNTU-CVE-2017-1000257
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- httpd24-curl RHEL 3 SOFTWARE_COLLECTIONS 7.61.1-1.el6
- httpd24-curl RHEL 3 SOFTWARE_COLLECTIONS 7.61.1-1.el7
- httpd24-httpd RHEL 3 SOFTWARE_COLLECTIONS 2.4.34-7.el6
- httpd24-httpd RHEL 3 SOFTWARE_COLLECTIONS 2.4.34-7.el7
- httpd24-mod_md RHEL 3 SOFTWARE_COLLECTIONS 2.4.34-7.el7
- httpd24-libcurl RHEL 3 SOFTWARE_COLLECTIONS 7.61.1-1.el6
- httpd24-libcurl RHEL 3 SOFTWARE_COLLECTIONS 7.61.1-1.el7
- httpd24-mod_ssl RHEL 3 SOFTWARE_COLLECTIONS 1:2.4.34-7.el6
red hat advisories RHSA-2018:3558RHSA-2017:3263
- curl SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +6 more 7.37.0-37.8.1
suse advisories SUSE-SU-2017:2831-1
- curl openSUSE Tumbleweed 7.79.1-1.1
opensuse advisories openSUSE-SU-2024:10582-1
- curl Alpine 3.24, Alpine 3.23, Alpine 3.22 +17 more 7.56.1-r0
- curl Alpine 3.4, Alpine 3.3 7.55.0-r2
alpine advisories ALPINE-CVE-2017-1000257
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-1000257 updated cvss 4.8
curl: IMAP FETCH response out of bounds read
-
Red Hat .NET Core 1.0 on Red Hat Enterprise Linux rh-dotnetcore10-curl Red Hat .NET Core 1.1 on Red Hat Enterprise Linux rh-dotnetcore11-curl Red Hat .NET Core 2.0 on Red Hat Enterprise Linux rh-dotnet20-curl Red Hat .NET Core 2.1 on Red Hat Enterprise Linux rh-dotnet21-curl, rh-dotnet21-libcurlaffected: workaround, no fix planned “Switch off IMAP in `CURLOPT_PROTOCOLS`”
-
Red Hat Enterprise Linux Client (v. 7) curl 7.29.0-42.el7_4.1, libcurl 7.29.0-42.el7_4.1 Red Hat Enterprise Linux Client Optional (v. 7) libcurl-devel 7.29.0-42.el7_4.1, curl-debuginfo 7.29.0-42.el7_4.1 Red Hat Enterprise Linux ComputeNode (v. 7) curl 7.29.0-42.el7_4.1, libcurl 7.29.0-42.el7_4.1 Red Hat Enterprise Linux ComputeNode Optional (v. 7) libcurl-devel 7.29.0-42.el7_4.1, curl-debuginfo 7.29.0-42.el7_4.1 Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) curl 7.29.0-42.el7_4.1, libcurl 7.29.0-42.el7_4.1 Red Hat Enterprise Linux Server (v. 7) curl 7.29.0-42.el7_4.1, libcurl 7.29.0-42.el7_4.1fixed: vendor fix “Switch off IMAP in `CURLOPT_PROTOCOLS`” RHSA-2017:3263
+1 more productsfewer
Red Hat Enterprise Linux Workstation (v. 7) curl 7.29.0-42.el7_4.1, libcurl 7.29.0-42.el7_4.1 -
Red Hat JBoss Core Servicesfixed: vendor fix “Switch off IMAP in `CURLOPT_PROTOCOLS`” RHSA-2018:2486
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) httpd24-curl 7.61.1-1.el6, httpd24-httpd 2.4.34-7.el6, httpd24-nghttp2 1.7.1-7.el6, httpd24-libcurl 7.61.1-1.el6, httpd24-mod_ssl 2.4.34-7.el6, httpd24-mod_ldap 2.4.34-7.el6, +5 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) httpd24-curl 7.61.1-1.el7, httpd24-httpd 2.4.34-7.el7, httpd24-mod_md 2.4.34-7.el7, httpd24-nghttp2 1.7.1-7.el7, httpd24-libcurl 7.61.1-1.el7, httpd24-mod_ssl 2.4.34-7.el7, +6 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) httpd24-curl 7.61.1-1.el7, httpd24-httpd 2.4.34-7.el7, httpd24-mod_md 2.4.34-7.el7, httpd24-nghttp2 1.7.1-7.el7, httpd24-libcurl 7.61.1-1.el7, httpd24-mod_ssl 2.4.34-7.el7, +6 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) httpd24-curl 7.61.1-1.el7, httpd24-httpd 2.4.34-7.el7, httpd24-mod_md 2.4.34-7.el7, httpd24-nghttp2 1.7.1-7.el7, httpd24-libcurl 7.61.1-1.el7, httpd24-mod_ssl 2.4.34-7.el7, +6 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) httpd24-curl 7.61.1-1.el7, httpd24-httpd 2.4.34-7.el7, httpd24-mod_md 2.4.34-7.el7, httpd24-nghttp2 1.7.1-7.el7, httpd24-libcurl 7.61.1-1.el7, httpd24-mod_ssl 2.4.34-7.el7, +6 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) httpd24-curl 7.61.1-1.el6, httpd24-httpd 2.4.34-7.el6, httpd24-nghttp2 1.7.1-7.el6, httpd24-libcurl 7.61.1-1.el6, httpd24-mod_ssl 2.4.34-7.el6, httpd24-mod_ldap 2.4.34-7.el6, +5 morefixed: vendor fix “Switch off IMAP in `CURLOPT_PROTOCOLS`” RHSA-2018:3558
+1 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) httpd24-curl 7.61.1-1.el7, httpd24-httpd 2.4.34-7.el7, httpd24-mod_md 2.4.34-7.el7, httpd24-nghttp2 1.7.1-7.el7, httpd24-libcurl 7.61.1-1.el7, httpd24-mod_ssl 2.4.34-7.el7, +6 more -
Red Hat Enterprise Linux 5 curl Red Hat Enterprise Linux 6 curl, libcurl Red Hat Enterprise Virtualization 3 mingw-virt-viewer, mingw32-virt-viewer, mingw64-virt-viewer Red Hat JBoss Web Server 3 curlnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-19-155-01 updated cvss 9.1
PHOENIX CONTACT PLCNext AXC F 2152
-
Phoenix Contact AXC F 2152 2404267 version 1.x, 1046568 (Starterkit) version 1.xaffected: vendor fix, mitigation “Phoenix Contact recommends affected users update to firmware release 2019.0 LTS or later, update to PLCNext Engineer release 2019.0 LTS or later, and apply the following specific mitigations below:” phoenixcontact.com
From CISA ICS and IT advisories (CSAF, https://github.com/cisagov/CSAF), a U.S. Government work; changed: reduced to products, statuses and remediations. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
6.22% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 3.0 | 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
access.redhat.com
/errata/RHSA-2017:3263
vendor-advisory
-
security.gentoo.org
/glsa/201712-04
vendor-advisory
-
access.redhat.com
/errata/RHSA-2018:3558
vendor-advisory
-
debian.org
/security/2017/dsa-4007
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:2486
vendor-advisory
-
curl.haxx.se
/docs/adv_20171023.html
vendor-advisory
-
securitytracker.com
/id/1039644
vdb-entry, third-party-advisory
-
securityfocus.com
/bid/101519
vdb-entry, third-party-advisory
Sources
- CVE List CVE-2017-1000257
- NVD CVE-2017-1000257
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.