CVE-2016-8622: Integer Overflow

Published Oct 25, 2016
·
Updated

The URL percent-encoding decode function in libcurl before 7.51.0 is called curleasyunescape. Internally, even if this function would be made to allocate a unscape destination buffer larger than 2GB, it would return that new length in a signed 32 bit integer variable, thus the length would get either just truncated or both truncated and turned negative. That could then lead to libcurl writing outside of its heap based buffer.

Other sources

The URL percent-encoding decode function in libcurl is called curleasyunescape. Internally, even if this function would be made to allocate a unscape destination buffer larger than 2GB, it would return that new length in a signed 32 bit integer variable, thus the length would get either just truncated or both truncated and turned negative. That could then lead to libcurl writing outside of its heap based buffer.

This can be triggered by a user on a 64bit system if the user can send in a custom (very large) URL to a libcurl using program.

External References:

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

Red Hat

Affected Software

2 affected componentsFixes available
redhat/curl<7.51.0
7.51.0
haxx libcurl<7.51.0

Event History

Oct 25, 2016
Data Sourced
via Red Hat·08:32 AM
DescriptionSeverityAffected Software
Jul 31, 2018
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
DescriptionSeverityWeakness
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-8622?

CVE-2016-8622 is considered a medium-severity vulnerability as it can lead to a buffer overflow in libcurl.

2

How do I fix CVE-2016-8622?

To fix CVE-2016-8622, upgrade libcurl to version 7.51.0 or later.

3

What software is affected by CVE-2016-8622?

CVE-2016-8622 affects versions of libcurl prior to 7.51.0.

4

What impact does CVE-2016-8622 have on system security?

CVE-2016-8622 could allow an attacker to exploit a buffer overflow, potentially leading to arbitrary code execution.

5

Is CVE-2016-8622 specific to any operating system?

CVE-2016-8622 is not limited to a specific operating system but affects libcurl across multiple platforms.

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