CVE catalog

CVE-2017-1000254

curl: CVE-2017-1000254

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
8.14% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancurlsid8.23.0-1fixed
Debiancurlforky8.22.0-1fixed
Debiancurltrixie8.14.1-2+deb13u5fixed
Debiancurltrixie-security8.14.1-2+deb13u7fixed
Debiancurlbookworm7.88.1-10+deb12u15fixed
Debiancurlbookworm-security7.88.1-10+deb12u5fixed
Alpinecurl3.37.55.0-r1fixed
Alpinecurl3.47.55.0-r1fixed
Alpinecurl3.57.56.0-r0fixed
Alpinecurl3.67.56.0-r0fixed
Ubuntucurl14.047.32.0-1ubuntu1vulnerable
Ubuntucurl14.047.33.0-1ubuntu1vulnerable
Ubuntucurl14.047.34.0-1ubuntu1vulnerable
Ubuntucurl14.047.35.0-1ubuntu1vulnerable
Ubuntucurl14.047.35.0-1ubuntu2vulnerable
Ubuntucurl14.047.35.0-1ubuntu2.1vulnerable
Ubuntucurl14.047.35.0-1ubuntu2.2vulnerable
Ubuntucurl14.047.35.0-1ubuntu2.3vulnerable
Ubuntucurl14.047.35.0-1ubuntu2.5vulnerable
Ubuntucurl14.047.35.0-1ubuntu2.6vulnerable
Ubuntucurl14.047.35.0-1ubuntu2.7vulnerable
Ubuntucurl14.047.35.0-1ubuntu2.8vulnerable
Ubuntucurl14.047.35.0-1ubuntu2.9vulnerable
Ubuntucurl14.047.35.0-1ubuntu2.10vulnerable
Ubuntucurl14.047.35.0-1ubuntu2.11fixed
Ubuntucurl16.047.43.0-1ubuntu2vulnerable
Ubuntucurl16.047.45.0-1ubuntu1vulnerable
Ubuntucurl16.047.46.0-1ubuntu1vulnerable
Ubuntucurl16.047.47.0-1ubuntu1vulnerable
Ubuntucurl16.047.47.0-1ubuntu2vulnerable
Ubuntucurl16.047.47.0-1ubuntu2.1vulnerable
Ubuntucurl16.047.47.0-1ubuntu2.2vulnerable
Ubuntucurl16.047.47.0-1ubuntu2.3fixed
Susecurlstudio onsite 1.37.19.7-1.20.53.6.1fixed
Susecurllinux enterprise software development kit 11 sp47.19.7-1.70.8.1fixed
Susecurl-openssl1linux enterprise server 11-security7.19.7-1.70.8.1fixed
Susecurllinux enterprise server 11 sp47.19.7-1.70.8.1fixed
Susecurllinux enterprise server for sap applications 11 sp47.19.7-1.70.8.1fixed
Susecurllinux enterprise desktop 12 sp27.37.0-37.8.1fixed
Susecurllinux enterprise desktop 12 sp37.37.0-37.8.1fixed
Susecurllinux enterprise server for raspberry pi 12 sp27.37.0-37.8.1fixed
Susecurllinux enterprise software development kit 12 sp27.37.0-37.8.1fixed
Susecurllinux enterprise software development kit 12 sp37.37.0-37.8.1fixed
Susecurllinux enterprise server 12 sp27.37.0-37.8.1fixed
Susecurllinux enterprise server for sap applications 12 sp27.37.0-37.8.1fixed
Susecurllinux enterprise server 12 sp37.37.0-37.8.1fixed
Susecurllinux enterprise server for sap applications 12 sp37.37.0-37.8.1fixed
Susecurlstudio onsite 1.37.19.7-1.20.53.13.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancurlsourcesid7.56.1-1not yet assignedNot reported[877671]
Debiancurlsourceforky7.56.1-1not yet assignedNot reported[877671]
Debiancurlsourcetrixie7.56.1-1not yet assignedNot reported[877671]
Debiancurlsourcebookworm7.56.1-1not yet assignedNot reported[877671]
Alpinecurlapk3.37.55.0-r1Not reportedALPINE-CVE-2017-1000254Not reported
Alpinecurlapk3.47.55.0-r1Not reportedALPINE-CVE-2017-1000254Not reported
Alpinecurlapk3.57.56.0-r0Not reportedALPINE-CVE-2017-1000254Not reported
Alpinecurlapk3.67.56.0-r0Not reportedALPINE-CVE-2017-1000254Not reported
Ubuntucurldeb14.047.35.0-1ubuntu2.11Not reportedUBUNTU-CVE-2017-1000254Not reported
Ubuntucurldeb16.047.47.0-1ubuntu2.3Not reportedUBUNTU-CVE-2017-1000254Not reported
Susecurlrpmstudio onsite 1.37.19.7-1.20.53.6.1Not reportedSUSE-SU-2017:2789-1Not reported
Susecurlrpmlinux enterprise software development kit 11 sp47.19.7-1.70.8.1Not reportedSUSE-SU-2017:3176-1Not reported
Susecurl-openssl1rpmlinux enterprise server 11-security7.19.7-1.70.8.1Not reportedSUSE-SU-2017:3176-1Not reported
Susecurlrpmlinux enterprise server 11 sp47.19.7-1.70.8.1Not reportedSUSE-SU-2017:3176-1Not reported
Susecurlrpmlinux enterprise server for sap applications 11 sp47.19.7-1.70.8.1Not reportedSUSE-SU-2017:3176-1Not reported
Susecurlrpmlinux enterprise desktop 12 sp27.37.0-37.8.1Not reportedSUSE-SU-2017:2831-1Not reported
Susecurlrpmlinux enterprise desktop 12 sp37.37.0-37.8.1Not reportedSUSE-SU-2017:2831-1Not reported
Susecurlrpmlinux enterprise server for raspberry pi 12 sp27.37.0-37.8.1Not reportedSUSE-SU-2017:2831-1Not reported
Susecurlrpmlinux enterprise software development kit 12 sp27.37.0-37.8.1Not reportedSUSE-SU-2017:2831-1Not reported
Susecurlrpmlinux enterprise software development kit 12 sp37.37.0-37.8.1Not reportedSUSE-SU-2017:2831-1Not reported
Susecurlrpmlinux enterprise server 12 sp27.37.0-37.8.1Not reportedSUSE-SU-2017:2831-1Not reported
Susecurlrpmlinux enterprise server for sap applications 12 sp27.37.0-37.8.1Not reportedSUSE-SU-2017:2831-1Not reported
Susecurlrpmlinux enterprise server 12 sp37.37.0-37.8.1Not reportedSUSE-SU-2017:2831-1Not reported
Susecurlrpmlinux enterprise server for sap applications 12 sp37.37.0-37.8.1Not reportedSUSE-SU-2017:2831-1Not reported
Susecurlrpmstudio onsite 1.37.19.7-1.20.53.13.1Not reportedSUSE-SU-2018:0214-1Not reported

[Debian bug #877671]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [curl]Unknown
    Details (6)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · amd64 · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · arm64 · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

  • Source package: [curl]

    Details (6)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · amd64 · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · arm64 · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

  • [libcurl3-nss]Unknown

    Source package: [curl]

    Details (4)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

  • [libcurl4]Unknown

    Source package: [curl]

    Details (6)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · amd64 · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · arm64 · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

  • [libcurl4-doc]Unknown

    Source package: [curl]

    Details (6)
    • 7.88.1-10+deb12u15 · all · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u15 · all · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · all · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · all · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · all · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · all · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

  • Source package: [curl]

    Details (6)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · amd64 · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · arm64 · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

  • Source package: [curl]

    Details (4)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

  • Source package: [curl]

    Details (6)
    • 7.88.1-10+deb12u15 · amd64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u15 · arm64 · bookworm

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · amd64 · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 8.14.1-2+deb13u2~bpo13+1 · arm64 · bookworm-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · amd64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

    • 7.88.1-10+deb12u5 · arm64 · bookworm-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · bookworm; dsa · curl · debian · 12

[Debian 13 (Trixie)]

  • [curl]Unknown
    Details (5)
    • 8.14.1-2+deb13u4 · amd64 · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u4 · arm64 · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · amd64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · arm64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u7 · amd64 · trixie-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

  • Source package: [curl]

    Details (5)
    • 8.14.1-2+deb13u4 · amd64 · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u4 · arm64 · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · amd64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · arm64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u7 · amd64 · trixie-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

  • [libcurl4-doc]Unknown

    Source package: [curl]

    Details (5)
    • 8.14.1-2+deb13u4 · all · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u4 · all · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u7 · all · trixie-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

  • Source package: [curl]

    Details (2)
    • 8.21.0-2~bpo13+1 · amd64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · arm64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

  • Source package: [curl]

    Details (5)
    • 8.14.1-2+deb13u4 · amd64 · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u4 · arm64 · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · amd64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · arm64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u7 · amd64 · trixie-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

  • Source package: [curl]

    Details (5)
    • 8.14.1-2+deb13u4 · amd64 · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u4 · arm64 · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · amd64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · arm64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u7 · amd64 · trixie-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

  • [libcurl4t64]Unknown

    Source package: [curl]

    Details (5)
    • 8.14.1-2+deb13u4 · amd64 · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u4 · arm64 · trixie

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · amd64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.21.0-2~bpo13+1 · arm64 · trixie-backports

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

    • 8.14.1-2+deb13u7 · amd64 · trixie-security

      Fixed · Fixed: 7.56.1-1

      dsa · curl · debian · 13

Observed:

References