BreachSpiderVerified, not vibes

CVE-2017-1000254 in Haxx Libcurl

High 7.5

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 retu...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.07.5
EPSS8.1%
EPSS percentile96th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

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

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2017-1000254
BreachSpider IDBS-2017-GLOBAL-113820-H
CVSS vectorCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2017-10-06
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-119: Improper Restriction of Operations within Memory Buffer

Parent class for buffer-related vulnerabilities where operations exceed buffer boundaries.

Related attack patterns (CAPEC)

CAPEC-8 Buffer Overflow in an API Call via CWE-119

CAPEC-9 Buffer Overflow in Local Command-Line Utilities via CWE-119

CAPEC-10 Buffer Overflow via Environment Variables via CWE-119

CAPEC-14 Client-side Injection-induced Buffer Overflow via CWE-119

CAPEC-24 Filter Failure through Buffer Overflow via CWE-119

Show all 12

CAPEC-42 MIME Conversion via CWE-119

CAPEC-44 Overflow Binary Resource File via CWE-119

CAPEC-45 Buffer Overflow via Symbolic Links via CWE-119

CAPEC-46 Overflow Variables and Tags via CWE-119

CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-119

CAPEC-100 Overflow Buffers via CWE-119

CAPEC-123 Buffer Manipulation via CWE-119

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2017. A high severity vulnerability affects Haxx systems (CVE-2017-1000254). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: 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 CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Questions

What is CVE-2017-1000254?

This vulnerability was disclosed in 2017. A high severity vulnerability affects Haxx systems (CVE-2017-1000254). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2017-1000254?

CVE-2017-1000254 has CVSS 7.5 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 8.1%.

Is CVE-2017-1000254 actively exploited?

No confirmed active exploitation of CVE-2017-1000254 as of 2026-09-25.

How do I remediate CVE-2017-1000254?

Priority: MEDIUM. Advisory: https://curl.haxx.se/docs/adv_20171004.html PSIRT: [email protected]

What systems are affected by CVE-2017-1000254?

CVE-2017-1000254 affects Haxx Libcurl.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Haxx","product":"Libcurl","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.