Improper Authorization in cURL - CVE-2016-5420

 

Improper Authorization in cURL - CVE-2016-5420

Published: September 8, 2016 / Updated: October 6, 2022


Vulnerability identifier: #VU378
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-5420
CWE-ID: CWE-285
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to an error when handling client TLS certificates during connection reuse. libcurl supports reuse of established connections for subsequent requests. It does this by keeping a few previous connections "alive" in a connection pool so that a subsequent request that can use one of them instead of creating a new connection will do so.

When using a client certificate for a connection that was then put into the connection pool, that connection could then wrongly get reused in a subsequent request to that same server that either didn't use a client certificate at all or that asked to use a different client certificate thus trying to tell the user that it is a different entity.

This mistakenly using the wrong connection could of course lead to applications sending requests to the wrong realms of the server using authentication that it wasn't supposed to have for those operations.


Affected software

cURL
Amazon Linux AMI
Slackware Linux
Fedora
curl (Alpine package)
curl
Flex System EN6131 40Gb Ethernet / IB6131 40Gb Infiniband Switch Firmware
QLogic Virtual Fabric Extension Module for IBM BladeCenter
Flex System FC3171 8Gb SAN Switch

How to mitigate CVE-2016-5420

Install update from vendor's website.

cURL - update to 7.50.1
curl (Alpine package) - addressed in versions 7.49.1-r1, 7.50.1-r0
Flex System EN6131 40Gb Ethernet / IB6131 40Gb Infiniband Switch Firmware - update to 3.6.6000
curl - addressed in versions 7.43.0-8.fc23, 7.47.1-6.fc24
QLogic Virtual Fabric Extension Module for IBM BladeCenter - update to 9.0.3.19.00
Flex System FC3171 8Gb SAN Switch - update to 9.1.9.02.00

External References

Related Security Bulletins