CVE-2017-1000254
publishedcurl: FTP PWD response parser out of bounds read
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2019-1162 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | v3.3 | curl | Fixed | 7.55.0-r1 | Package fix record |
| Debian | jessie | curl | Advisory build | 7.38.0-4+deb8u6 | DSA-3992-1 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-curlsrc | Advisory build | 7.61.1-1.el6 | RHSA-2018:3558 |
| SUSE / openSUSE | SLE-11 | curl-openssl1i586 | Advisory build | 7.19.7-1.70.8.1 | SUSE-SU-2017:3176-1 |
| Alpine Linux | v3.4 | curl | Fixed | 7.55.0-r1 | Package fix record |
| Alpine Linux | v3.5 | curl | Fixed | 7.56.0-r0 | Package fix record |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.6 | curl | Fixed | 7.56.0-r0 | Package fix record |
| Debian | stretch | curl | Advisory build | 7.52.1-5+deb9u1 | DSA-3992-1 |
| Debian | wheezy | curl | Advisory build | 7.26.0-1+wheezy21 | DLA-1121-1 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-curlx86_64 | Advisory build | 7.61.1-1.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-curl-debuginfox86_64 | Advisory build | 7.61.1-1.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-httpdsrc | Advisory build | 2.4.34-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-httpdx86_64 | Advisory build | 2.4.34-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-httpd-debuginfox86_64 | Advisory build | 2.4.34-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-httpd-develx86_64 | Advisory build | 2.4.34-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-httpd-manualnoarch | Advisory build | 2.4.34-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-httpd-toolsx86_64 | Advisory build | 2.4.34-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-libcurlx86_64 | Advisory build | 7.61.1-1.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-libcurl-develx86_64 | Advisory build | 7.61.1-1.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-libnghttp2x86_64 | Advisory build | 1.7.1-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-libnghttp2-develx86_64 | Advisory build | 1.7.1-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-mod_ldapx86_64 | Advisory build | 2.4.34-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-mod_proxy_htmlx86_64 | Advisory build | 1:2.4.34-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-mod_sessionx86_64 | Advisory build | 2.4.34-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-mod_sslx86_64 | Advisory build | 1:2.4.34-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-nghttp2src | Advisory build | 1.7.1-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-nghttp2x86_64 | Advisory build | 1.7.1-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-6 | httpd24-nghttp2-debuginfox86_64 | Advisory build | 1.7.1-7.el6 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-curlaarch64 | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-curlppc64le | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-curls390x | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-curlsrc | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-curlx86_64 | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-curl-debuginfoaarch64 | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-curl-debuginfoppc64le | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-curl-debuginfos390x | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-curl-debuginfox86_64 | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpdaarch64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpdppc64le | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpds390x | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpdsrc | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpdx86_64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-debuginfoaarch64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-debuginfoppc64le | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-debuginfos390x | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-debuginfox86_64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-develaarch64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-develppc64le | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-devels390x | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-develx86_64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-manualnoarch | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-toolsaarch64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-toolsppc64le | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-toolss390x | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-httpd-toolsx86_64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libcurlaarch64 | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libcurlppc64le | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libcurls390x | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libcurlx86_64 | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libcurl-develaarch64 | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libcurl-develppc64le | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libcurl-devels390x | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libcurl-develx86_64 | Advisory build | 7.61.1-1.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libnghttp2aarch64 | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libnghttp2ppc64le | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libnghttp2s390x | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libnghttp2x86_64 | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libnghttp2-develaarch64 | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libnghttp2-develppc64le | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libnghttp2-devels390x | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-libnghttp2-develx86_64 | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_ldapaarch64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_ldapppc64le | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_ldaps390x | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_ldapx86_64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_mdaarch64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_mdppc64le | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_mds390x | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_mdx86_64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_proxy_htmlaarch64 | Advisory build | 1:2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_proxy_htmlppc64le | Advisory build | 1:2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_proxy_htmls390x | Advisory build | 1:2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_proxy_htmlx86_64 | Advisory build | 1:2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_sessionaarch64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_sessionppc64le | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_sessions390x | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_sessionx86_64 | Advisory build | 2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_sslaarch64 | Advisory build | 1:2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_sslppc64le | Advisory build | 1:2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_ssls390x | Advisory build | 1:2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-mod_sslx86_64 | Advisory build | 1:2.4.34-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-nghttp2aarch64 | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-nghttp2ppc64le | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-nghttp2s390x | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-nghttp2src | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-nghttp2x86_64 | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-nghttp2-debuginfoaarch64 | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-nghttp2-debuginfoppc64le | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-nghttp2-debuginfos390x | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
| Red Hat Enterprise Linux | RHEL-7 | httpd24-nghttp2-debuginfox86_64 | Advisory build | 1.7.1-7.el7 | RHSA-2018:3558 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
libcurl may read outside of a heap allocated buffer when doing FTP. When libcurl connects to an FTP server and successfully logs in (anonymous or not), it asks the server for the current directory with the `PWD` command. The server then responds with a 257 response containing the path, inside double quotes. The returned path name is then kept by libcurl for subsequent uses. Due to a flaw in the string parser for this directory name, a directory name passed like this but without a closing double quote would lead to libcurl not adding a trailing NUL byte to the buffer holding the name. When libcurl would then later access the string, it could read beyond the allocated heap buffer and crash or wrongly access data beyond the buffer, thinking it was part of the path. A malicious server could abuse this fact and effectively prevent libcurl-based clients to work with it - the PWD command is always issued on new FTP connections and the mistake has a high chance of causing a segfault. The simple fact that this has issue remained undiscovered for this long could suggest that malformed PWD responses are rare in benign servers. We are not aware of any exploit of this flaw. This bug was introduced in commit [415d2e7cb7](https://github.com/curl/curl/commit/415d2e7cb7), March 2005. In libcurl version 7.56.0, the parser always zero terminates the string but also rejects it if not terminated properly with a final double quote.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
11- DSA-3992 http://www.debian.org/security/2017/dsa-3992
- 101115 http://www.securityfocus.com/bid/101115
- 1039509 http://www.securitytracker.com/id/1039509
- RHSA-2018:2486 https://access.redhat.com/errata/RHSA-2018:2486
- RHSA-2018:3558 https://access.redhat.com/errata/RHSA-2018:3558
- https://curl.haxx.se/673d0cd8.patch
- https://curl.haxx.se/docs/adv_20171004.html
- [bookkeeper-issues] 20210629 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
- [bookkeeper-issues] 20210628 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- GLSA-201712-04 https://security.gentoo.org/glsa/201712-04
- https://support.apple.com/HT208331
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6edd4b21a041103c5171ec64555ca23eb6993f009f59997281a32f3da37c8cf0
- Ingested
- 23 Sep 2026, 07:41:47 UTC
- Source record
- Official CVE record