CVE-2017-1000257: Buffer Overflow

Published Oct 18, 2017
·
Updated

An IMAP FETCH response line indicates the size of the returned data, in number of bytes. When that response says the data is zero bytes, libcurl would pass on that (non-existing) data with a pointer and the size (zero) to the deliver-data function.

libcurl's deliver-data function treats zero as a magic number and invokes strlen() on the data to figure out the length. The strlen() is called on a heap based buffer that might not be zero terminated so libcurl might read beyond the end of it into whatever memory lies after (or just crash) and then deliver that to the application as if it was actually downloaded.

Introduced with:

https://github.com/curl/curl/commit/ec3bb8f727

External References:

https://curl.haxx.se/docs/adv20171023.html

Affected Software

4 affected componentsFixes available
redhat/curl<7.56.1
7.56.1
haxx libcurl>=7.20.0<=7.56.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/curl to a version that resolves this vulnerability.

    Fixed in 7.56.1

Event History

Oct 18, 2017
Data Sourced
via Red Hat·02:55 PM
DescriptionSeverityAffected Software
Oct 31, 2017
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Data Sourced
via NVD·09:29 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2017-1000257?

CVE-2017-1000257 has a medium severity rating as it involves improper handling of zero-byte data leading to potential issues.

2

How do I fix CVE-2017-1000257?

To fix CVE-2017-1000257, you should upgrade libcurl to version 7.56.1 or higher.

3

What software is affected by CVE-2017-1000257?

CVE-2017-1000257 affects libcurl versions from 7.20.0 up to 7.56.0, and it is also found in specific versions of the curl package on Red Hat and Debian.

4

What is the impact of CVE-2017-1000257?

The impact of CVE-2017-1000257 includes potential miscommunication in data handling that might lead to application failures.

5

Is CVE-2017-1000257 remote exploit?

CVE-2017-1000257 is not considered a remote exploit as it primarily affects local data handling within applications using libcurl.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203