CVE-2016-8620: Integer Overflow

Published Oct 25, 2016
·
Updated

The 'globbing' feature in curl before version 7.51.0 has a flaw that leads to integer overflow and out-of-bounds read via user controlled input.

Other sources

The curl tool's "globbing" feature allows a user to specify a numerical range through which curl will iterate. It is typically specified as [1-5], specifying the first and the last numbers in the range. Or with [a-z], using letters.

1. The curl code for parsing the second unsigned number did not check for a leading minus character, which allowed a user to specify [1--1] with no complaints and have the latter -1 number get turned into the largest unsigned long value the system can handle. This would ultimately cause curl to write outside the dedicated malloced buffer after no less than 100,000 iterations, since it would have room for 5 digits but not 6.

2. When the range is specified with letters, and the ending letter is left out [L-], the code would still advance its read pointer 5 bytes even if the string was just 4 bytes and end up reading outside the given buffer.

External References:

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

Red Hat

Affected Software

2 affected componentsFixes available
redhat/curl<7.51.0
7.51.0
haxx curl<7.51.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.51.0

Event History

Oct 25, 2016
Data Sourced
via Red Hat·08:25 AM
DescriptionSeverityAffected Software
Aug 1, 2018
CVE Published
via MITRE·06:00 AM
Data Sourced
via MITRE·06:00 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2016-8620?

CVE-2016-8620 has been assigned a moderate severity level due to the potential for integer overflow and out-of-bounds reads.

2

How do I fix CVE-2016-8620?

To fix CVE-2016-8620, upgrade curl to version 7.51.0 or later.

3

What versions of curl are affected by CVE-2016-8620?

CVE-2016-8620 affects curl versions prior to 7.51.0.

4

What feature of curl is linked to CVE-2016-8620?

The 'globbing' feature in curl is linked to CVE-2016-8620.

5

Can user input exploit CVE-2016-8620?

Yes, user-controlled input can exploit CVE-2016-8620, leading to potential security issues.

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