CVE-2016-7167: Buffer Overflow

Published Sep 14, 2016
·
Updated

It was found that provided string length arguments in four libcurl functions curlescape(), curleasyescape(), curlunescape and curleasyunescape were not properly checked and due to arithmetic in the functions, passing in the length 0xffffffff (2^32-1 or UINTMAX or even just -1) would end up causing an allocation of zero bytes of heap memory that curl would attempt to write gigabytes of data into.

This flaw does not affect the curl command line tool.

Affected versions: libcurl 7.11.1 to and including 7.50.2

External References:

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

Other sources

Multiple integer overflows in the (1) curlescape, (2) curleasyescape, (3) curlunescape, and (4) curleasyunescape functions in libcurl before 7.50.3 allow attackers to have unspecified impact via a string of length 0xffffffff, which triggers a heap-based buffer overflow.

MITRE

Affected Software

5 affected componentsFixes available
redhat/curl<7.50.3
7.50.3
Fedoraproject Fedora=23
Fedoraproject Fedora=24
Fedoraproject Fedora=25
haxx libcurl<=7.50.2

Event History

Oct 7, 2016
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
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-2016-7167?

CVE-2016-7167 is classified as a high severity vulnerability due to its potential to cause heap-based buffer overflows.

2

How do I fix CVE-2016-7167?

To fix CVE-2016-7167, upgrade libcurl to version 7.50.3 or later.

3

What impact can CVE-2016-7167 have on my system?

CVE-2016-7167 can allow attackers to exploit vulnerabilities in libcurl functions, potentially leading to arbitrary code execution.

4

What versions of libcurl are affected by CVE-2016-7167?

CVE-2016-7167 affects libcurl versions prior to 7.50.3.

5

Which software packages are impacted by CVE-2016-7167?

CVE-2016-7167 impacts curl packages on Red Hat and various versions of Fedora.

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