Patchwire CVEs, their patch status, and feeds to follow them

CVE-2017-1000254

Fixed in a distro release EPSS 8%

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 2017-10-06 · CVE record · OSV

Products: haxx libcurl

Distro releases

ReleasePackageFixed in
Alpine 3.3curl7.55.0-r1
Alpine 3.4curl7.55.0-r1
Alpine 3.5curl7.56.0-r0
Alpine 3.6curl7.56.0-r0
Amazon Linux 2curl7.61.1-9.amzn2.0.1
Amazon Linux 2libcurl7.61.1-9.amzn2.0.1
Amazon Linux 2libcurl-devel7.61.1-9.amzn2.0.1
Arch Linuxcurl7.56.0-1
Arch Linuxlib32-curl7.56.0-1
Arch Linuxlib32-libcurl-compat7.56.0-1
Arch Linuxlib32-libcurl-gnutls7.56.0-1
Arch Linuxlibcurl-compat7.56.0-1
Arch Linuxlibcurl-gnutls7.56.0-1
Debian 12curl7.56.1-1
Debian 13curl7.56.1-1
Debian 14curl7.56.1-1
Debian 7curl7.26.0-1+wheezy21
Debian 8curl7.38.0-4+deb8u6
Debian 9curl7.52.1-5+deb9u1
Red Hat rhel software collections 3httpd24-curl0:7.61.1-1.el7
Red Hat rhel software collections 3httpd24-curl0:7.61.1-1.el6
Red Hat rhel software collections 3httpd24-curl-debuginfo0:7.61.1-1.el7
Red Hat rhel software collections 3httpd24-curl-debuginfo0:7.61.1-1.el6
Red Hat rhel software collections 3httpd24-httpd0:2.4.34-7.el6
Red Hat rhel software collections 3httpd24-httpd0:2.4.34-7.el7
Red Hat rhel software collections 3httpd24-httpd-debuginfo0:2.4.34-7.el6
Red Hat rhel software collections 3httpd24-httpd-debuginfo0:2.4.34-7.el7
Red Hat rhel software collections 3httpd24-httpd-devel0:2.4.34-7.el6
Red Hat rhel software collections 3httpd24-httpd-devel0:2.4.34-7.el7
Red Hat rhel software collections 3httpd24-httpd-manual0:2.4.34-7.el7
Red Hat rhel software collections 3httpd24-httpd-manual0:2.4.34-7.el6
Red Hat rhel software collections 3httpd24-httpd-tools0:2.4.34-7.el7
Red Hat rhel software collections 3httpd24-httpd-tools0:2.4.34-7.el6
Red Hat rhel software collections 3httpd24-libcurl0:7.61.1-1.el6
Red Hat rhel software collections 3httpd24-libcurl0:7.61.1-1.el7
Red Hat rhel software collections 3httpd24-libcurl-devel0:7.61.1-1.el6
Red Hat rhel software collections 3httpd24-libcurl-devel0:7.61.1-1.el7
Red Hat rhel software collections 3httpd24-libnghttp20:1.7.1-7.el7
Red Hat rhel software collections 3httpd24-libnghttp20:1.7.1-7.el6
Red Hat rhel software collections 3httpd24-libnghttp2-devel0:1.7.1-7.el6
Red Hat rhel software collections 3httpd24-libnghttp2-devel0:1.7.1-7.el7
Red Hat rhel software collections 3httpd24-mod_ldap0:2.4.34-7.el6
Red Hat rhel software collections 3httpd24-mod_ldap0:2.4.34-7.el7
Red Hat rhel software collections 3httpd24-mod_md0:2.4.34-7.el7
Red Hat rhel software collections 3httpd24-mod_proxy_html1:2.4.34-7.el6
Red Hat rhel software collections 3httpd24-mod_proxy_html1:2.4.34-7.el7
Red Hat rhel software collections 3httpd24-mod_session0:2.4.34-7.el6
Red Hat rhel software collections 3httpd24-mod_session0:2.4.34-7.el7
Red Hat rhel software collections 3httpd24-mod_ssl1:2.4.34-7.el7
Red Hat rhel software collections 3httpd24-mod_ssl1:2.4.34-7.el6
Red Hat rhel software collections 3httpd24-nghttp20:1.7.1-7.el6
Red Hat rhel software collections 3httpd24-nghttp20:1.7.1-7.el7
Red Hat rhel software collections 3httpd24-nghttp2-debuginfo0:1.7.1-7.el7
Red Hat rhel software collections 3httpd24-nghttp2-debuginfo0:1.7.1-7.el6
SUSE Linux Enterprise Desktop 12 SP2curl7.37.0-37.8.1
SUSE Linux Enterprise Desktop 12 SP3curl7.37.0-37.8.1
SUSE Linux Enterprise Server 11 SP4curl7.19.7-1.70.8.1
SUSE Linux Enterprise Server 11-SECURITYcurl-openssl17.19.7-1.70.8.1
SUSE Linux Enterprise Server 12 SP2curl7.37.0-37.8.1
SUSE Linux Enterprise Server 12 SP3curl7.37.0-37.8.1
SUSE Linux Enterprise Server for Raspberry Pi 12 SP2curl7.37.0-37.8.1
SUSE Linux Enterprise Server for SAP Applications 11 SP4curl7.19.7-1.70.8.1
SUSE Linux Enterprise Server for SAP Applications 12 SP2curl7.37.0-37.8.1
SUSE Linux Enterprise Server for SAP Applications 12 SP3curl7.37.0-37.8.1
SUSE Linux Enterprise Software Development Kit 11 SP4curl7.19.7-1.70.8.1
SUSE Linux Enterprise Software Development Kit 12 SP2curl7.37.0-37.8.1
SUSE Linux Enterprise Software Development Kit 12 SP3curl7.37.0-37.8.1
SUSE Studio Onsite 1.3curl7.19.7-1.20.53.6.1
SUSE Studio Onsite 1.3curl7.19.7-1.20.53.13.1
Ubuntu 14.04 LTScurl7.35.0-1ubuntu2.11
Ubuntu 16.04 LTScurl7.47.0-1ubuntu2.3
openSUSE Tumbleweedcurl7.79.1-1.1