Skip to main content
Network Thinking Solutions Logo

CVE-2017-1000254

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.

All CVEs
CVE-2017-1000254Published 10/6/2017

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.

Vendor advisory
CVSS7.5High

Overview

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.

Published
10/6/2017
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
libcurl
haxx
7.7

Verify advisory

Source
libcurl
haxx
7.7.1

Verify advisory

Source
libcurl
haxx
7.7.2

Verify advisory

Source
libcurl
haxx
7.7.3

Verify advisory

Source
libcurl
haxx
7.8

Verify advisory

Source
libcurl
haxx
7.8.1

Verify advisory

Source
libcurl
haxx
7.9

Verify advisory

Source
libcurl
haxx
7.9.1

Verify advisory

Source
libcurl
haxx
7.9.2

Verify advisory

Source
libcurl
haxx
7.9.3

Verify advisory

Source
libcurl
haxx
7.9.4

Verify advisory

Source
libcurl
haxx
7.9.5

Verify advisory

Source
libcurl
haxx
7.9.6

Verify advisory

Source
libcurl
haxx
7.9.7

Verify advisory

Source
libcurl
haxx
7.9.8

Verify advisory

Source
libcurl
haxx
7.10

Verify advisory

Source
libcurl
haxx
7.10.1

Verify advisory

Source
libcurl
haxx
7.10.2

Verify advisory

Source
libcurl
haxx
7.10.3

Verify advisory

Source
libcurl
haxx
7.10.4

Verify advisory

Source
libcurl
haxx
7.10.5

Verify advisory

Source
libcurl
haxx
7.10.6

Verify advisory

Source
libcurl
haxx
7.10.7

Verify advisory

Source
libcurl
haxx
7.10.8

Verify advisory

Source
libcurl
haxx
7.11.0

Verify advisory

Source
libcurl
haxx
7.11.1

Verify advisory

Source
libcurl
haxx
7.11.2

Verify advisory

Source
libcurl
haxx
7.12.0

Verify advisory

Source
libcurl
haxx
7.12.1

Verify advisory

Source
libcurl
haxx
7.12.2

Verify advisory

Source
libcurl
haxx
7.12.3

Verify advisory

Source
libcurl
haxx
7.13.0

Verify advisory

Source
libcurl
haxx
7.13.1

Verify advisory

Source
libcurl
haxx
7.13.2

Verify advisory

Source
libcurl
haxx
7.14.0

Verify advisory

Source
libcurl
haxx
7.14.1

Verify advisory

Source
libcurl
haxx
7.15.0

Verify advisory

Source
libcurl
haxx
7.15.1

Verify advisory

Source
libcurl
haxx
7.15.2

Verify advisory

Source
libcurl
haxx
7.15.3

Verify advisory

Source
libcurl
haxx
7.15.4

Verify advisory

Source
libcurl
haxx
7.15.5

Verify advisory

Source
libcurl
haxx
7.16.0

Verify advisory

Source
libcurl
haxx
7.16.1

Verify advisory

Source
libcurl
haxx
7.16.2

Verify advisory

Source
libcurl
haxx
7.16.3

Verify advisory

Source
libcurl
haxx
7.16.4

Verify advisory

Source
libcurl
haxx
7.17.0

Verify advisory

Source
libcurl
haxx
7.17.1

Verify advisory

Source
libcurl
haxx
7.18.0

Verify advisory

Source
libcurl
haxx
7.18.1

Verify advisory

Source
libcurl
haxx
7.18.2

Verify advisory

Source
libcurl
haxx
7.19.0

Verify advisory

Source
libcurl
haxx
7.19.1

Verify advisory

Source
libcurl
haxx
7.19.2

Verify advisory

Source
libcurl
haxx
7.19.3

Verify advisory

Source
libcurl
haxx
7.19.4

Verify advisory

Source
libcurl
haxx
7.19.5

Verify advisory

Source
libcurl
haxx
7.19.6

Verify advisory

Source
libcurl
haxx
7.19.7

Verify advisory

Source
libcurl
haxx
7.20.0

Verify advisory

Source
libcurl
haxx
7.20.1

Verify advisory

Source
libcurl
haxx
7.21.0

Verify advisory

Source
libcurl
haxx
7.21.1

Verify advisory

Source
libcurl
haxx
7.21.2

Verify advisory

Source
libcurl
haxx
7.21.3

Verify advisory

Source
libcurl
haxx
7.21.4

Verify advisory

Source
libcurl
haxx
7.21.5

Verify advisory

Source
libcurl
haxx
7.21.6

Verify advisory

Source
libcurl
haxx
7.21.7

Verify advisory

Source
libcurl
haxx
7.22.0

Verify advisory

Source
libcurl
haxx
7.23.0

Verify advisory

Source
libcurl
haxx
7.23.1

Verify advisory

Source
libcurl
haxx
7.24.0

Verify advisory

Source
libcurl
haxx
7.25.0

Verify advisory

Source
libcurl
haxx
7.26.0

Verify advisory

Source
libcurl
haxx
7.27.0

Verify advisory

Source
libcurl
haxx
7.28.0

Verify advisory

Source
libcurl
haxx
7.28.1

Verify advisory

Source
libcurl
haxx
7.29.0

Verify advisory

Source
libcurl
haxx
7.30.0

Verify advisory

Source
libcurl
haxx
7.31.0

Verify advisory

Source
libcurl
haxx
7.32.0

Verify advisory

Source
libcurl
haxx
7.33.0

Verify advisory

Source
libcurl
haxx
7.34.0

Verify advisory

Source
libcurl
haxx
7.35.0

Verify advisory

Source
libcurl
haxx
7.36.0

Verify advisory

Source
libcurl
haxx
7.37.0

Verify advisory

Source
libcurl
haxx
7.37.1

Verify advisory

Source
libcurl
haxx
7.38.0

Verify advisory

Source
libcurl
haxx
7.39

Verify advisory

Source
libcurl
haxx
7.40.0

Verify advisory

Source
libcurl
haxx
7.41.0

Verify advisory

Source
libcurl
haxx
7.42.0

Verify advisory

Source
libcurl
haxx
7.42.1

Verify advisory

Source
libcurl
haxx
7.43.0

Verify advisory

Source
libcurl
haxx
7.44.0

Verify advisory

Source
libcurl
haxx
7.45.0

Verify advisory

Source
libcurl
haxx
7.46.0

Verify advisory

Source
libcurl
haxx
7.47.0

Verify advisory

Source
libcurl
haxx
7.47.1

Verify advisory

Source
libcurl
haxx
7.48.0

Verify advisory

Source
libcurl
haxx
7.49.0

Verify advisory

Source
libcurl
haxx
7.49.1

Verify advisory

Source
libcurl
haxx
7.50.0

Verify advisory

Source
libcurl
haxx
7.50.1

Verify advisory

Source
libcurl
haxx
7.50.2

Verify advisory

Source
libcurl
haxx
7.50.3

Verify advisory

Source
libcurl
haxx
7.51.0

Verify advisory

Source
libcurl
haxx
7.52.0

Verify advisory

Source
libcurl
haxx
7.52.1

Verify advisory

Source
libcurl
haxx
7.53.0

Verify advisory

Source
libcurl
haxx
7.53.1

Verify advisory

Source
libcurl
haxx
7.54.0

Verify advisory

Source
libcurl
haxx
7.54.1

Verify advisory

Source
libcurl
haxx
7.55.0

Verify advisory

Source
libcurl
haxx
7.55.1

Verify advisory

Source
n/a
n/a
n/a

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.