Bug 858673 (CVE-2014-0015) - VUL-0: CVE-2014-0015: libcurl: re-use of wrong HTTP NTLM connection
Summary: VUL-0: CVE-2014-0015: libcurl: re-use of wrong HTTP NTLM connection
Status: RESOLVED FIXED
Alias: CVE-2014-0015
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Deadline: 2014-01-28
Assignee: Security Team bot
QA Contact: Security Team bot
URL:
Whiteboard: maint:released:sle11-sp1:55843 maint:...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-14 11:43 UTC by Sebastian Krahmer
Modified: 2019-05-01 16:13 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Sebastian Krahmer 2014-01-14 11:45:35 UTC
CVE-2014-0015
Comment 3 Swamp Workflow Management 2014-01-14 13:38:24 UTC
The SWAMPID for this issue is 55841.
This issue was rated as moderate.
Please submit fixed packages until 2014-01-28.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 6 Swamp Workflow Management 2014-01-14 23:00:26 UTC
bugbot adjusting priority
Comment 10 Swamp Workflow Management 2014-01-31 14:04:23 UTC
Update released for: curl, curl-devel
Products:
SUSE-CORE 9-SP3-TERADATA (x86_64)
Comment 11 Swamp Workflow Management 2014-01-31 14:04:44 UTC
Update released for: curl, curl-debuginfo, curl-debugsource, libcurl-devel, libcurl4
Products:
SLE-SERVER 11-SP1-TERADATA (x86_64)
Comment 12 Swamp Workflow Management 2014-01-31 15:52:05 UTC
Update released for: curl, curl-debuginfo, curl-debugsource, libcurl-devel, libcurl4, libcurl4-32bit, libcurl4-64bit, libcurl4-x86
Products:
SLE-DEBUGINFO 11-SP2 (i386, ia64, ppc64, s390x, x86_64)
SLE-DESKTOP 11-SP2 (i386, x86_64)
SLE-SDK 11-SP2 (i386, ia64, ppc64, s390x, x86_64)
SLE-SERVER 11-SP2 (i386, ia64, ppc64, s390x, x86_64)
SLE-STUDIOONSITE 1.3 (x86_64)
SLES4VMWARE 11-SP2 (i386, x86_64)
Comment 13 Swamp Workflow Management 2014-01-31 16:04:39 UTC
Update released for: compat-curl2, compat-curl2-debuginfo
Products:
SLE-SERVER 10-SP3-TERADATA (x86_64)
Comment 14 Swamp Workflow Management 2014-01-31 20:29:04 UTC
SUSE-SU-2014:0171-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 858673
CVE References: CVE-2014-0015
Sources used:
SUSE Studio Onsite 1.3 (src):    curl-7.19.7-1.20.31.1
SUSE Linux Enterprise Software Development Kit 11 SP2 (src):    curl-7.19.7-1.20.31.1
SUSE Linux Enterprise Server 11 SP2 for VMware (src):    curl-7.19.7-1.20.31.1
SUSE Linux Enterprise Server 11 SP2 (src):    curl-7.19.7-1.20.31.1
SUSE Linux Enterprise Desktop 11 SP2 (src):    curl-7.19.7-1.20.31.1
Comment 15 Swamp Workflow Management 2014-01-31 21:05:13 UTC
SUSE-SU-2014:0175-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 858673
CVE References: CVE-2014-0015
Sources used:
SUSE Studio Onsite 1.3 (src):    curl-7.19.7-1.20.31.1
SUSE Linux Enterprise Software Development Kit 11 SP2 (src):    curl-7.19.7-1.20.31.1
SUSE Linux Enterprise Server 11 SP2 for VMware (src):    curl-7.19.7-1.20.31.1
SUSE Linux Enterprise Server 11 SP2 (src):    curl-7.19.7-1.20.31.1
SUSE Linux Enterprise Desktop 11 SP2 (src):    curl-7.19.7-1.20.31.1
Comment 16 Bernhard Wiedemann 2014-02-04 16:00:48 UTC
This is an autogenerated message for OBS integration:
This bug (858673) was mentioned in
https://build.opensuse.org/request/show/220850 13.1+12.2+12.3 / curl
Comment 17 Vítězslav Čížek 2014-02-04 16:32:55 UTC
The last missing piece was an update for openSUSE.
And it has just been submitted.
So reassigning back to security-team.
Comment 18 Bernhard Wiedemann 2014-02-04 17:00:15 UTC
This is an autogenerated message for OBS integration:
This bug (858673) was mentioned in
https://build.opensuse.org/request/show/220857 13.1+12.3 / curl
Comment 20 Bernhard Wiedemann 2014-02-05 09:00:52 UTC
This is an autogenerated message for OBS integration:
This bug (858673) was mentioned in
https://build.opensuse.org/request/show/220950 Factory / curl
Comment 21 Swamp Workflow Management 2014-02-06 20:05:20 UTC
SUSE-SU-2014:0175-2: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 858673
CVE References: CVE-2014-0015
Sources used:
SUSE Linux Enterprise Software Development Kit 11 SP3 (src):    curl-7.19.7-1.32.1
SUSE Linux Enterprise Server 11 SP3 for VMware (src):    curl-7.19.7-1.32.1
SUSE Linux Enterprise Server 11 SP3 (src):    curl-7.19.7-1.32.1
SUSE Linux Enterprise Desktop 11 SP3 (src):    curl-7.19.7-1.32.1
Comment 22 Marcus Meissner 2014-02-19 13:08:17 UTC
done. can be included into later LTSS updates.
Comment 23 Marcus Meissner 2014-02-19 13:08:25 UTC
done. can be included into later LTSS updates.
Comment 24 Swamp Workflow Management 2014-02-21 17:04:23 UTC
openSUSE-SU-2014:0267-1: An update that solves one vulnerability and has one errata is now available.

Category: security (low)
Bug References: 858673,862144
CVE References: CVE-2014-0015
Sources used:
openSUSE 13.1 (src):    curl-7.32.0-2.8.1
openSUSE 12.3 (src):    curl-7.28.1-4.25.1
Comment 25 Swamp Workflow Management 2014-02-21 18:04:33 UTC
openSUSE-SU-2014:0274-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 858673,862144
CVE References: CVE-2014-0015
Sources used:
openSUSE 11.4 (src):    curl-7.21.2-41.1
Comment 26 Marcus Meissner 2014-02-24 08:19:42 UTC
http://curl.haxx.se/docs/adv_20140129.html

Project cURL Security Advisory, January 29th 2014
http://curl.haxx.se/docs/security.html
 
1. VULNERABILITY
 
  libcurl can in some circumstances re-use the wrong connection when asked to
  do an NTLM-authenticated HTTP or HTTPS request.
 
  libcurl features a pool of recent connections so that subsequent requests
  can re-use an existing connection to avoid overhead.
 
  When re-using a connection a range of criterion must first be met. Due to a
  logical error in the code, a request that was issued by an application could
  wrongfully re-use an existing connection to the same server that was
  authenticated using different credentials. One underlying reason being that
  NTLM authenticates connections and not requests, contrary to how HTTP is
  designed to work and how other authentication methods work.
 
  An application that allows NTLM and another auth method (the bug only
  triggers if more than one auth method is asked for) to a server (that
  responds wanting NTLM) with user1:password1 and then does another operation
  to the same server with user2:password2 (when the previous connection was
  left alive) - the second request will re-use the same connection and since
  it'll then see that the NTLM negotiation is already made, it will just send
  the request over that connection thinking it uses 'user2' credentials when
  it is in fact still using the connection authenticated for user1...
 
  The set of auth methods to use is set with CURLOPT_HTTPAUTH.
 
  Two common auth defines in libcurl are CURLAUTH_ANY and CURLAUTH_ANYSAFE.
  Both of them ask for NTLM and other methods and can therefore trigger this
  problem.
 
  Applications can disable libcurl's re-use of connections and thus mitigate
  this problem, by using one of the following libcurl options to alter how
  connections are or aren't re-used: CURLOPT_FRESH_CONNECT,
  CURLOPT_MAXCONNECTS and CURLMOPT_MAX_HOST_CONNECTIONS (if using curl_multi
  API).
 
  The Common Vulnerabilities and Exposures (CVE) project has assigned the name
  CVE-2014-0015 to this issue.
 
2. AFFECTED VERSIONS
 
  This flaw has existed ever since libcurl started to support NTLM, although
  the code has been restructured a few times over the years so the mistake has
  altered shape over the years.
 
  Affected versions: from libcurl 7.10.6 to and including 7.34.0
  Not affected versions: libcurl before 7.10.6 and >= 7.35.0
 
  libcurl is used by many applications, but not always advertised as such!
 
3. THE SOLUTION
 
  libcurl 7.35.0 makes sure that connections that may use NTLM cannot re-use
  another NTLM-using connection unless the credentials match.
 
  A patch for this problem (that applies to libcurl >= 7.28.0) is
  available at:
 
    https://github.com/bagder/curl/commit/8ae35102c43d8d
 
  A patch that applies for 7.27.0 is available at:
 
    http://curl.haxx.se/CVE-2014-0015-7-27.patch
 
  This fix is already committed to the public source code repository because
  the full security impact wasn't properly realized until after the fact.
 
4. RECOMMENDATIONS
 
  We suggest you take one of the following actions immediately, in order of
  preference:
 
  A - Upgrade to curl and libcurl 7.35.0
 
  B - Apply the patch and rebuild libcurl
 
  C - Avoid using HTTP NTLM in your application, or make sure to *only*
      specify NTLM as the requested authentication method.
 
5. TIME LINE
 
  It was reported to the curl project on January 7th 2014. We contacted
  distros@openwall on January 14th.
 
  libcurl 7.35.0 was released on January 29th 2014, coordinated with the
  publication of this advisory.
 
 
6. CREDITS
 
  Bug originally reported by Paras Sethia. The security impact of it was
  flagged by Yehezkel Horowitz.
 
  Thanks a lot!