ESB-2017.3058 - [FreeBSD] cURL: Multiple vulnerabilities 2017-11-30

Printable version
PGP/GPG verifiable version

Hash: SHA256

             AUSCERT External Security Bulletin Redistribution

                     cURL -- Multiple vulnerabilities
                             30 November 2017


        AusCERT Security Bulletin Summary

Product:           cURL
Publisher:         FreeBSD
Operating System:  FreeBSD
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated
                   Denial of Service               -- Remote/Unauthenticated
                   Access Confidential Data        -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2017-8818 CVE-2017-8817 CVE-2017-8816

Reference:         ESB-2017.3040

Original Bulletin:

- --------------------------BEGIN INCLUDED TEXT--------------------

cURL -- Multiple vulnerabilities

Affected packages

7.21.0 < curl < 7.57.0


VuXML ID 301a01b7-d50e-11e7-ac58-b499baebfeaf

Discovery 2017-11-29

Entry 2017-11-29

The cURL project reports:

NTLM buffer overflow via integer overflow (CVE-2017-8816)

libcurl contains a buffer overrun flaw in the NTLM authentication code. The 
internal function Curl_ntlm_core_mk_ntlmv2_hash 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.

FTP wildcard out of bounds read (CVE-2017-8817)

libcurl contains a read out of bounds flaw in the FTP wildcard function. 
libcurl's FTP wildcard matching feature, which is enabled with the 
CURLOPT_WILDCARDMATCH option can use a built-in wildcard function or a user 
provided one. The built-in wildcard function has a flaw that makes it not 
detect the end of the pattern string if it ends with an open bracket ([) but 
instead it will continue reading the heap beyond the end of the URL buffer 
that holds the wildcard.

SSL out of buffer access (CVE-2017-8818)

libcurl contains an out boundary access flaw in SSL related code. When 
allocating memory for a connection (the internal struct called connectdata), a
certain amount of memory is allocated at the end of the struct to be used for
SSL related structs. Those structs are used by the particular SSL library 
libcurl is built to use. The application can also tell libcurl which specific
SSL library to use if it was built to support more than one.


CVE Name CVE-2017-8816

CVE Name CVE-2017-8817

CVE Name CVE-2017-8818


- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email:
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.


« Back to bulletins