SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com






Category:   Application (Generic)  >   cURL Vendors:   curl.haxx.se
cURL curl_mprintf() Buffer Overflow i Deprecated Function Lets Users Execute Arbitrary Code
SecurityTracker Alert ID:  1037515
SecurityTracker URL:  http://securitytracker.com/id/1037515
CVE Reference:   CVE-2016-9586   (Links to External Site)
Date:  Dec 21 2016
Impact:   Execution of arbitrary code via local system, Execution of arbitrary code via network, User access via local system, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 7.1 - 7.51.0
Description:   A vulnerability was reported in cURL. A remote or local user can execute arbitrary code on the target system.

A user can send specially crafted data to trigger a buffer overflow in performing floating point conversions using certain deprecated curl_mprintf() functions and execute arbitrary code on the target system.

libcurl is affected. The specific impact depends on the application or service using libcurl.

The command line tool is not affected.

Daniel Stenberg reported this vulnerability.

Impact:   A remote or local user can execute arbitrary code on the target system.
Solution:   The vendor has issued a fix (libcurl 7.52.0).

The vendor advisory is available at:

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

Vendor URL:  curl.haxx.se/docs/adv_20161221A.html (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   None.


 Source Message Contents

Date:  Wed, 21 Dec 2016 07:59:15 +0100 (CET)
Subject:  [oss-security] [SECURITY ADVISORY] curl: printf floating point buffer overflow

printf floating point buffer overflow
=====================================

Project curl Security Advisory, December 21, 2016 -
[Permalink](https://curl.haxx.se/docs/adv_20161221A.html)

VULNERABILITY
-------------

libcurl's implementation of the printf() functions triggers a buffer overflow
when doing a large floating point output. The bug occurs when the conversion
outputs more than 255 bytes.

The flaw happens because the floating point conversion is using system
functions without the correct boundary checks.

The functions have been documented as deprecated for a long time and users are
discouraged from using them in "new programs" as they are planned to get
removed at a future point. But as the functions are present and there's
nothing preventing users from using them, we expect there to be a certain
amount of existing users in the wild.

If there are any application that accepts a format string from the outside
without necessary input filtering, it could allow remote attacks.

This flaw does not exist in the command line tool.

We are not aware of any exploit of this flaw.

INFO
----

The Common Vulnerabilities and Exposures (CVE) project has assigned the name
CVE-2016-9586 to this issue.

AFFECTED VERSIONS
-----------------

This flaw exists in the following libcurl versions.

- Affected versions: libcurl 7.1 to and including 7.51.0
- Not affected versions: libcurl >= 7.52.0

libcurl is used by many applications, but not always advertised as such!

THE SOLUTION
------------

In version 7.52.0, the conversion is limited to never generate a larger output
than what fits in the fixed size buffer.

A [patch for CVE-2016-9586](https://curl.haxx.se/CVE-2016-9586.patch) is
available.

RECOMMENDATIONS
---------------

We suggest you take one of the following actions immediately, in order of
preference:

  A - Upgrade curl and libcurl to version 7.52.0

  B - Apply the patch to your version and rebuild

  C - Do not use the `curl_mprintf()` functions

TIME LINE
---------

It was first reported to the curl project on November 8 by Daniel Stenberg.

We contacted distros@openwall on December 13.

curl 7.52.0 was released on December 21 2016, coordinated with the publication
of this advisory.

CREDITS
-------

Reported and patched by Daniel Stenberg.

-- 

  / daniel.haxx.se
 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

Copyright 2017, SecurityGlobal.net LLC