LowVulnerabilityPatch available

Researcher says curl reused Kerberos connections, fixed in 8.20.0

A researcher says curl 8.5.0 could reuse Kerberos-authenticated connections across users; fixed in 8.20.0, so upgrade curl.

Published
Ecosystem
Open source
Fixed in
curl 8.20.0 (commit 34fa034d9a), according to the researcher
Exploitation
No. The source describes only a lab proof of concept by the researcher and gives no evidence of exploitation in the wild.

What happened

According to a write-up by a researcher posting as SilentSobs on the IoTSec Forum, curl’s connection pool could reuse a connection that was already authenticated with Kerberos for a different user. The author claims to have found this independently in curl 8.5.0 and to have built a working proof of concept. The author also says the issue had already been fixed in a later release, so the report was closed as a duplicate. IoTSec Forum

The author’s account of the cause, in 8.5.0:

  • The connection pool hash key is built only from port and hostname, with no credentials. IoTSec Forum
  • The credential comparison in ConnectionExists() is skipped for protocols with the PROTOPT_CREDSPERREQUEST flag, which the author says all HTTP handlers set. The author considers that acceptable for Basic, Digest and Bearer, because those send credentials on every request. IoTSec Forum
  • Kerberos authenticates the connection itself, and the author says NTLM had a matching check in lib/url.c while Negotiate had none. IoTSec Forum

In a local lab with a Kerberos KDC and a Python test server, the author says a second user’s request reused the first user’s connection, and the server logged that the first user’s GSS context persisted. IoTSec Forum

The author also reports a partial mitigation in lib/http_negotiate.c. According to the post, a single-roundtrip handshake (the MIT Kerberos default) triggers a cleanup of the context, while a multi-roundtrip handshake (Windows AD, IIS) does not. The author concludes the issue is partially mitigated for MIT Kerberos and fully exposed in Windows AD environments, and says the cleanup runs after the connection has already been matched. IoTSec Forum

After the author submitted the report on HackerOne, the post says Daniel Stenberg asked for confirmation on curl 8.20.0. The author says 8.20.0 contains a Negotiate check (url_match_auth_nego) added in commit 34fa034d9a from February 2026, credited to a different reporter, Zhicheng Chen. The author says the report was closed as a duplicate with no CVE. IoTSec Forum

Not confirmed: there is no curl security advisory or CVE in the sources for this issue. The curl project has not been quoted directly beyond the author’s paraphrase of the HackerOne exchange. No independent outlet or reproduction is available. The exact range of affected versions between 8.5.0 and 8.20.0 is not stated, and the source text provided is truncated.

Am I affected?

According to the author, the behaviour was seen in curl 8.5.0 and is addressed in 8.20.0. It relates to Negotiate (Kerberos/SPNEGO) authentication where one curl process or connection pool serves requests for different users. Whether versions between 8.5.0 and 8.20.0 are affected is not confirmed. Whether setups outside the author’s lab are exposed is also not confirmed. The author says the risk is lower with MIT Kerberos defaults and higher with Windows AD or IIS servers. IoTSec Forum

What to do now

  1. Run curl --version on systems and in container images that use --negotiate or libcurl’s Negotiate option.
  2. Upgrade to curl 8.20.0 or later, which the author says contains the fix (commit 34fa034d9a). IoTSec Forum
  3. If you rely on a distribution package, check whether the vendor has backported that commit. The source does not say whether any vendor has done so.
  4. The source describes no workaround. A workaround is not confirmed.

Sources