CVE-2017-1000254

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.

Risk Information

Base Score
7.5
MODERATE
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score
Exploitation Probability
1.348

Associated Vulnerability

VulnerabilityOS Platform
Multiple Vulnerabilities are affected in Curl For Windows 7.50.3Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.21.6Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.21.4Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.21.5Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.21.7Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.22.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.23.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.23.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.24.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.25.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.26.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.27.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.28.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.28.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.29.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.30.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.31.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.32.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.33.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.17.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.18.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.18.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.18.2Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.19.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.19.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.19.2Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.19.3Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.19.4Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.19.5Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.19.6Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.19.7Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.20.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.20.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.21.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.21.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.21.2Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.21.3Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.34.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.35.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.36.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.37.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.37.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.38.0Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.10Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.10.1Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.10.2Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.10.3Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.10.4Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.10.5Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.10.6Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.10.7Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.10.8Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.11.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.11.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.11.2Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.12.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.12.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.12.2Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.12.3Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.13.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.13.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.13.2Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.14.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.14.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.15.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.15.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.15.2Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.15.3Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.15.4Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.15.5Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.16.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.16.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.16.2Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.16.3Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.16.4Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.17.0Windows
Vulnerabilities CVE-2014-8150,CVE-2014-8151,CVE-2017-1000100,CVE-2017-1000254 are affected in Curl For Windows 7.39Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.7Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.7.1Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.7.2Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.7.3Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.8Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.8.1Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.9Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.9.1Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.9.2Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.9.3Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.9.4Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.9.5Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.9.6Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.9.7Windows
Vulnerabilities CVE-2013-1944,CVE-2013-2174,CVE-2014-8150,CVE-2017-1000254 are affected in Curl For Windows 7.9.8Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.50.0Windows
Vulnerabilities CVE-2016-7141,CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.50.1Windows
Vulnerabilities CVE-2016-7167,CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.50.2Windows
Vulnerabilities CVE-2017-1000099,CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.54.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.40.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.41.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.42.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.42.1Windows
Vulnerabilities CVE-2016-3739,CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.43.0Windows
Vulnerabilities CVE-2016-3739,CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.44.0Windows
Vulnerabilities CVE-2016-3739,CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.45.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.46.0Windows
Vulnerabilities CVE-2016-3739,CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.47.0Windows
Vulnerabilities CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.47.1Windows
Vulnerabilities CVE-2016-3739,CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.48.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.49.0Windows
Vulnerabilities CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.49.1Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.51.0Windows
Vulnerabilities CVE-2016-9594,CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.52.0Windows
Vulnerabilities CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254,CVE-2017-2629 are affected in Curl For Windows 7.52.1Windows
Vulnerabilities CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.53.0Windows
Multiple Vulnerabilities are affected in Curl For Windows 7.53.1Windows
Vulnerabilities CVE-2017-1000100,CVE-2017-1000101,CVE-2017-1000254,CVE-2017-9502 are affected in Curl For Windows 7.54.0Windows
Vulnerabilities CVE-2017-1000101,CVE-2017-1000254 are affected in Curl For Windows 7.55.0Windows
Vulnerabilities CVE-2017-1000254 are affected in Curl For Windows 7.55.1Windows
Vulnerabilities CVE-2017-1000254 are fixed in Curl For Windows 7.56.0Windows
Multiple vulnerabilities are fixed in macOS High Sierra 10.13.2Mac
Multiple vulnerabilities are fixed in macOS High Sierra 10.13.2 Combo UpdateMac
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) curl_7.47.0-1ubuntu2.3_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) curl_7.47.0-1ubuntu2.3_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) curl_7.52.1-4ubuntu1.2_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) curl_7.52.1-4ubuntu1.2_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) curl_7.35.0-1ubuntu2.11_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) curl_7.35.0-1ubuntu2.11_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3_7.47.0-1ubuntu2.3_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3_7.47.0-1ubuntu2.3_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3_7.52.1-4ubuntu1.2_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3_7.52.1-4ubuntu1.2_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3_7.35.0-1ubuntu2.11_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3_7.35.0-1ubuntu2.11_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-nss_7.47.0-1ubuntu2.3_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-nss_7.47.0-1ubuntu2.3_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-nss_7.52.1-4ubuntu1.2_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-nss_7.52.1-4ubuntu1.2_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-nss_7.35.0-1ubuntu2.11_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-nss_7.35.0-1ubuntu2.11_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-gnutls_7.47.0-1ubuntu2.3_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-gnutls_7.47.0-1ubuntu2.3_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-gnutls_7.52.1-4ubuntu1.2_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-gnutls_7.52.1-4ubuntu1.2_amd64.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-gnutls_7.35.0-1ubuntu2.11_i386.debLinux
HTTP, HTTPS, and FTP client and client libraries (USN-3441-1) libcurl3-gnutls_7.35.0-1ubuntu2.11_amd64.debLinux
curl security update(DSA-3992-1) curl_7.52.1-5_i386.debLinux
curl security update(DSA-3992-1) curl_7.38.0-4+deb8u6_i386.debLinux
Improper Restriction of Operations within the Bounds of a Memory Buffer Vulnerability (CVE-2017-1000254)NCM

Patch Details

Click to see the patches provided by ManageEngine for this CVE
Patch IDPatch Description
PATCH-601562macOS High Sierra 10.13.6 - Reboot Automatically
PATCH-601563macOS High Sierra 10.13.6 Combo Update - Reboot Automatically

References

https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234