CVE-2017-1000254

Summary

CVECVE-2017-1000254
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2017-10-06 13:29:00 UTC
Updated2023-11-07 02:37:00 UTC
Descriptionlibcurl 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.

Risk And Classification

Problem Types: CWE-119

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Haxx Libcurl 7.10 All All All
Application Haxx Libcurl 7.10.1 All All All
Application Haxx Libcurl 7.10.2 All All All
Application Haxx Libcurl 7.10.3 All All All
Application Haxx Libcurl 7.10.4 All All All
Application Haxx Libcurl 7.10.5 All All All
Application Haxx Libcurl 7.10.6 All All All
Application Haxx Libcurl 7.10.7 All All All
Application Haxx Libcurl 7.10.8 All All All
Application Haxx Libcurl 7.11.0 All All All
Application Haxx Libcurl 7.11.1 All All All
Application Haxx Libcurl 7.11.2 All All All
Application Haxx Libcurl 7.12.0 All All All
Application Haxx Libcurl 7.12.1 All All All
Application Haxx Libcurl 7.12.2 All All All
Application Haxx Libcurl 7.12.3 All All All
Application Haxx Libcurl 7.13.0 All All All
Application Haxx Libcurl 7.13.1 All All All
Application Haxx Libcurl 7.13.2 All All All
Application Haxx Libcurl 7.14.0 All All All
Application Haxx Libcurl 7.14.1 All All All
Application Haxx Libcurl 7.15.0 All All All
Application Haxx Libcurl 7.15.1 All All All
Application Haxx Libcurl 7.15.2 All All All
Application Haxx Libcurl 7.15.3 All All All
Application Haxx Libcurl 7.15.4 All All All
Application Haxx Libcurl 7.15.5 All All All
Application Haxx Libcurl 7.16.0 All All All
Application Haxx Libcurl 7.16.1 All All All
Application Haxx Libcurl 7.16.2 All All All
Application Haxx Libcurl 7.16.3 All All All
Application Haxx Libcurl 7.16.4 All All All
Application Haxx Libcurl 7.17.0 All All All
Application Haxx Libcurl 7.17.1 All All All
Application Haxx Libcurl 7.18.0 All All All
Application Haxx Libcurl 7.18.1 All All All
Application Haxx Libcurl 7.18.2 All All All
Application Haxx Libcurl 7.19.0 All All All
Application Haxx Libcurl 7.19.1 All All All
Application Haxx Libcurl 7.19.2 All All All
Application Haxx Libcurl 7.19.3 All All All
Application Haxx Libcurl 7.19.4 All All All
Application Haxx Libcurl 7.19.5 All All All
Application Haxx Libcurl 7.19.6 All All All
Application Haxx Libcurl 7.19.7 All All All
Application Haxx Libcurl 7.20.0 All All All
Application Haxx Libcurl 7.20.1 All All All
Application Haxx Libcurl 7.21.0 All All All
Application Haxx Libcurl 7.21.1 All All All
Application Haxx Libcurl 7.21.2 All All All
Application Haxx Libcurl 7.21.3 All All All
Application Haxx Libcurl 7.21.4 All All All
Application Haxx Libcurl 7.21.5 All All All
Application Haxx Libcurl 7.21.6 All All All
Application Haxx Libcurl 7.21.7 All All All
Application Haxx Libcurl 7.22.0 All All All
Application Haxx Libcurl 7.23.0 All All All
Application Haxx Libcurl 7.23.1 All All All
Application Haxx Libcurl 7.24.0 All All All
Application Haxx Libcurl 7.25.0 All All All
Application Haxx Libcurl 7.26.0 All All All
Application Haxx Libcurl 7.27.0 All All All
Application Haxx Libcurl 7.28.0 All All All
Application Haxx Libcurl 7.28.1 All All All
Application Haxx Libcurl 7.29.0 All All All
Application Haxx Libcurl 7.30.0 All All All
Application Haxx Libcurl 7.31.0 All All All
Application Haxx Libcurl 7.32.0 All All All
Application Haxx Libcurl 7.33.0 All All All
Application Haxx Libcurl 7.34.0 All All All
Application Haxx Libcurl 7.35.0 All All All
Application Haxx Libcurl 7.36.0 All All All
Application Haxx Libcurl 7.37.0 All All All
Application Haxx Libcurl 7.37.1 All All All
Application Haxx Libcurl 7.38.0 All All All
Application Haxx Libcurl 7.39 All All All
Application Haxx Libcurl 7.40.0 All All All
Application Haxx Libcurl 7.41.0 All All All
Application Haxx Libcurl 7.42.0 All All All
Application Haxx Libcurl 7.42.1 All All All
Application Haxx Libcurl 7.43.0 All All All
Application Haxx Libcurl 7.44.0 All All All
Application Haxx Libcurl 7.45.0 All All All
Application Haxx Libcurl 7.46.0 All All All
Application Haxx Libcurl 7.47.0 All All All
Application Haxx Libcurl 7.47.1 All All All
Application Haxx Libcurl 7.48.0 All All All
Application Haxx Libcurl 7.49.0 All All All
Application Haxx Libcurl 7.49.1 All All All
Application Haxx Libcurl 7.50.0 All All All
Application Haxx Libcurl 7.50.1 All All All
Application Haxx Libcurl 7.50.2 All All All
Application Haxx Libcurl 7.50.3 All All All
Application Haxx Libcurl 7.51.0 All All All
Application Haxx Libcurl 7.52.0 All All All
Application Haxx Libcurl 7.52.1 All All All
Application Haxx Libcurl 7.53.0 All All All
Application Haxx Libcurl 7.53.1 All All All
Application Haxx Libcurl 7.54.0 All All All
Application Haxx Libcurl 7.54.1 All All All
Application Haxx Libcurl 7.55.0 All All All
Application Haxx Libcurl 7.55.1 All All All
Application Haxx Libcurl 7.7 All All All
Application Haxx Libcurl 7.7.1 All All All
Application Haxx Libcurl 7.7.2 All All All
Application Haxx Libcurl 7.7.3 All All All
Application Haxx Libcurl 7.8 All All All
Application Haxx Libcurl 7.8.1 All All All
Application Haxx Libcurl 7.9 All All All
Application Haxx Libcurl 7.9.1 All All All
Application Haxx Libcurl 7.9.2 All All All
Application Haxx Libcurl 7.9.3 All All All
Application Haxx Libcurl 7.9.4 All All All
Application Haxx Libcurl 7.9.5 All All All
Application Haxx Libcurl 7.9.6 All All All
Application Haxx Libcurl 7.9.7 All All All
Application Haxx Libcurl 7.9.8 All All All
Application Haxx Libcurl 7.10 All All All
Application Haxx Libcurl 7.10.1 All All All
Application Haxx Libcurl 7.10.2 All All All
Application Haxx Libcurl 7.10.3 All All All
Application Haxx Libcurl 7.10.4 All All All
Application Haxx Libcurl 7.10.5 All All All
Application Haxx Libcurl 7.10.6 All All All
Application Haxx Libcurl 7.10.7 All All All
Application Haxx Libcurl 7.10.8 All All All
Application Haxx Libcurl 7.11.0 All All All
Application Haxx Libcurl 7.11.1 All All All
Application Haxx Libcurl 7.11.2 All All All
Application Haxx Libcurl 7.12.0 All All All
Application Haxx Libcurl 7.12.1 All All All
Application Haxx Libcurl 7.12.2 All All All
Application Haxx Libcurl 7.12.3 All All All
Application Haxx Libcurl 7.13.0 All All All
Application Haxx Libcurl 7.13.1 All All All
Application Haxx Libcurl 7.13.2 All All All
Application Haxx Libcurl 7.14.0 All All All
Application Haxx Libcurl 7.14.1 All All All
Application Haxx Libcurl 7.15.0 All All All
Application Haxx Libcurl 7.15.1 All All All
Application Haxx Libcurl 7.15.2 All All All
Application Haxx Libcurl 7.15.3 All All All
Application Haxx Libcurl 7.15.4 All All All
Application Haxx Libcurl 7.15.5 All All All
Application Haxx Libcurl 7.16.0 All All All
Application Haxx Libcurl 7.16.1 All All All
Application Haxx Libcurl 7.16.2 All All All
Application Haxx Libcurl 7.16.3 All All All
Application Haxx Libcurl 7.16.4 All All All
Application Haxx Libcurl 7.17.0 All All All
Application Haxx Libcurl 7.17.1 All All All
Application Haxx Libcurl 7.18.0 All All All
Application Haxx Libcurl 7.18.1 All All All
Application Haxx Libcurl 7.18.2 All All All
Application Haxx Libcurl 7.19.0 All All All
Application Haxx Libcurl 7.19.1 All All All
Application Haxx Libcurl 7.19.2 All All All
Application Haxx Libcurl 7.19.3 All All All
Application Haxx Libcurl 7.19.4 All All All
Application Haxx Libcurl 7.19.5 All All All
Application Haxx Libcurl 7.19.6 All All All
Application Haxx Libcurl 7.19.7 All All All
Application Haxx Libcurl 7.20.0 All All All
Application Haxx Libcurl 7.20.1 All All All
Application Haxx Libcurl 7.21.0 All All All
Application Haxx Libcurl 7.21.1 All All All
Application Haxx Libcurl 7.21.2 All All All
Application Haxx Libcurl 7.21.3 All All All
Application Haxx Libcurl 7.21.4 All All All
Application Haxx Libcurl 7.21.5 All All All
Application Haxx Libcurl 7.21.6 All All All
Application Haxx Libcurl 7.21.7 All All All
Application Haxx Libcurl 7.22.0 All All All
Application Haxx Libcurl 7.23.0 All All All
Application Haxx Libcurl 7.23.1 All All All
Application Haxx Libcurl 7.24.0 All All All
Application Haxx Libcurl 7.25.0 All All All
Application Haxx Libcurl 7.26.0 All All All
Application Haxx Libcurl 7.27.0 All All All
Application Haxx Libcurl 7.28.0 All All All
Application Haxx Libcurl 7.28.1 All All All
Application Haxx Libcurl 7.29.0 All All All
Application Haxx Libcurl 7.30.0 All All All
Application Haxx Libcurl 7.31.0 All All All
Application Haxx Libcurl 7.32.0 All All All
Application Haxx Libcurl 7.33.0 All All All
Application Haxx Libcurl 7.34.0 All All All
Application Haxx Libcurl 7.35.0 All All All
Application Haxx Libcurl 7.36.0 All All All
Application Haxx Libcurl 7.37.0 All All All
Application Haxx Libcurl 7.37.1 All All All
Application Haxx Libcurl 7.38.0 All All All
Application Haxx Libcurl 7.39 All All All
Application Haxx Libcurl 7.40.0 All All All
Application Haxx Libcurl 7.41.0 All All All
Application Haxx Libcurl 7.42.0 All All All
Application Haxx Libcurl 7.42.1 All All All
Application Haxx Libcurl 7.43.0 All All All
Application Haxx Libcurl 7.44.0 All All All
Application Haxx Libcurl 7.45.0 All All All
Application Haxx Libcurl 7.46.0 All All All
Application Haxx Libcurl 7.47.0 All All All
Application Haxx Libcurl 7.47.1 All All All
Application Haxx Libcurl 7.48.0 All All All
Application Haxx Libcurl 7.49.0 All All All
Application Haxx Libcurl 7.49.1 All All All
Application Haxx Libcurl 7.50.0 All All All
Application Haxx Libcurl 7.50.1 All All All
Application Haxx Libcurl 7.50.2 All All All
Application Haxx Libcurl 7.50.3 All All All
Application Haxx Libcurl 7.51.0 All All All
Application Haxx Libcurl 7.52.0 All All All
Application Haxx Libcurl 7.52.1 All All All
Application Haxx Libcurl 7.53.0 All All All
Application Haxx Libcurl 7.53.1 All All All
Application Haxx Libcurl 7.54.0 All All All
Application Haxx Libcurl 7.54.1 All All All
Application Haxx Libcurl 7.55.0 All All All
Application Haxx Libcurl 7.55.1 All All All
Application Haxx Libcurl 7.7 All All All
Application Haxx Libcurl 7.7.1 All All All
Application Haxx Libcurl 7.7.2 All All All
Application Haxx Libcurl 7.7.3 All All All
Application Haxx Libcurl 7.8 All All All
Application Haxx Libcurl 7.8.1 All All All
Application Haxx Libcurl 7.9 All All All
Application Haxx Libcurl 7.9.1 All All All
Application Haxx Libcurl 7.9.2 All All All
Application Haxx Libcurl 7.9.3 All All All
Application Haxx Libcurl 7.9.4 All All All
Application Haxx Libcurl 7.9.5 All All All
Application Haxx Libcurl 7.9.6 All All All
Application Haxx Libcurl 7.9.7 All All All
Application Haxx Libcurl 7.9.8 All All All

References

ReferenceSourceLinkTags
[bookkeeper-issues] 20210628 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 lists.apache.org
curl: page not found CONFIRM curl.haxx.se Patch, Vendor Advisory
Pony Mail! MLIST lists.apache.org
Red Hat Customer Portal REDHAT access.redhat.com
libcurl FTP PWD Response Processing Buffer Overread Lets Remote Users Deny Service - SecurityTracker SECTRACK www.securitytracker.com Third Party Advisory, VDB Entry
Curl CVE-2017-1000254 Out of Bounds Read Denial of Service Vulnerability BID www.securityfocus.com Third Party Advisory, VDB Entry
Red Hat Customer Portal REDHAT access.redhat.com
About the security content of macOS High Sierra 10.13.2, Security Update 2017-002 Sierra, and Security Update 2017-005 El Capitan - Apple Support CONFIRM support.apple.com
cURL: Multiple vulnerabilities (GLSA 201712-04) — Gentoo security GENTOO security.gentoo.org
curl - FTP PWD response parser out of bounds read CONFIRM curl.haxx.se Patch, Vendor Advisory
Pony Mail! MLIST lists.apache.org
[bookkeeper-issues] 20210629 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 lists.apache.org
Debian -- Security Information -- DSA-3992-1 curl DEBIAN www.debian.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 710458 Gentoo Linux cURL Multiple Vulnerabilities (GLSA 201712-04)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report