CVE-2017-8816: Integer Overflow
curl. An integer overflow existed in curl. This issue was addressed with improved bounds checking.
Other sources
libcurl contains a buffer overrun flaw in the NTLM authentication code.
The internal function Curlntlmcoremkntlmv2hash sums up the lengths of the user name + password (= SUM) and multiplies the sum by two (= SIZE) to figure out how large storage to allocate from the heap.
The SUM value is subsequently used to iterate over the input and generate output into the storage buffer. On systems with a 32 bit sizet, the math to calculate SIZE triggers an integer overflow when the combined lengths of the user name and password is larger than 2GB (2^31 bytes). This integer overflow usually causes a very small buffer to actually get allocated instead of the intended very huge one, making the use of that buffer end up in a buffer overrun.
This is only an issue on 32 bit systems. It also requires the user and password fields to use more than 2GB of memory combined, which in itself should be rare.
- Affected versions: libcurl 7.36.0 to and including 7.56.1 - Not affected versions: libcurl < 7.36.0 and >= 7.57.0
— Red Hat
The NTLM authentication feature in curl and libcurl before 7.57.0 on 32-bit platforms allows attackers to cause a denial of service (integer overflow and resultant buffer overflow, and application crash) or possibly have unspecified other impact via vectors involving long user and password fields.
Credit
Affected Software
Event History
Peer vulnerabilities
Found alongside the following vulnerabilities.
- CVE-2018-4170
- CVE-2018-4105
- CVE-2018-4112
- CVE-2018-4166
- CVE-2018-4155
- CVE-2018-4158
- CVE-2018-4142
- CVE-2017-13890
- CVE-2017-8816
- CVE-2018-4176
- CVE-2018-4108
- CVE-2017-13080
- CVE-2018-4167
- CVE-2018-4151
- CVE-2018-4132
- CVE-2018-4135
- CVE-2018-4150
- CVE-2018-4104
- CVE-2018-4143
- CVE-2018-4136
- CVE-2018-4160
- CVE-2018-4185
- CVE-2018-4139
- CVE-2018-4175
- CVE-2017-15412
- CVE-2018-4187
- CVE-2018-4179
- CVE-2018-4111
- CVE-2018-4174
- CVE-2018-4152
- CVE-2017-7151
- CVE-2018-4138
- CVE-2018-4107
- CVE-2018-4156
- CVE-2018-4157
- CVE-2018-4298
- CVE-2018-4144
- CVE-2017-13911
- CVE-2018-4173
- CVE-2018-4154
- CVE-2018-4115
- CVE-2018-4106
- CVE-2018-4131
Frequently Asked Questions
What is CVE-2017-8816?
CVE-2017-8816 is a vulnerability in curl that allows attackers to cause a denial of service or have unspecified impact by exploiting an integer overflow and resultant buffer overflow.
How severe is CVE-2017-8816?
CVE-2017-8816 is considered critical with a severity rating of 9.8.
Which software versions are affected by CVE-2017-8816?
curl and libcurl versions before 7.57.0 on 32-bit platforms are affected by CVE-2017-8816.
How can I fix CVE-2017-8816?
To fix CVE-2017-8816, update curl and libcurl to version 7.57.0 or later.
Where can I find more information about CVE-2017-8816?
More information about CVE-2017-8816 can be found in the references: [link 1](https://bugzilla.redhat.com/show_bug.cgi/attachment.cgi?id=1356597&action=diff), [link 2](https://bugzilla.redhat.com/show_bug.cgi/attachment.cgi?id=1356597&action=edit), [link 3](https://bugzilla.redhat.com/show_bug.cgi/attachment.cgi?id=1356599&action=diff).