# CVE-2023-27536: GSS delegation too eager connection re-use

libcurl's connection pool matched reused connections without comparing the GSSAPI delegation setting, so a stricter-delegation transfer could reuse a laxer connection.

- Payout: $480
- Severity: low
- Program: Internet Bug Bounty
- Found by: nyymi
- Disclosed: 2023-03-20
- CVE: CVE-2023-27536
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1912782
- Library page: https://bugbountylibrary.com/r/h1%3A1912782
- Tags: area:oss domain:oss impact:privesc kind:bounty platform:hackerone sev:low tech:curl technique:source-review vuln:business-logic

**Target:** libcurl connection pool / GSSAPI (krb5/negotiate) transfer setup
**Root cause:** The CURLOPT_GSSAPI_DELEGATION setting was omitted from the connection-reuse configuration match checks, so connections matched too easily across differing delegation levels.
**Steps:**
1. Establish a transfer with lax GSS delegation (CURLOPT_GSSAPI_DELEGATION permitting delegation) so a connection is pooled.
2. Change CURLOPT_GSSAPI_DELEGATION to a more restrictive value.
3. Issue a second transfer to the same host; libcurl reuses the pooled connection despite the changed delegation setting.
**How found:** Code review of the connection-pool match logic: noticed the GSS delegation option was absent from the set of fields compared when deciding whether a pooled connection matches a new transfer's setup.
**Insight:** When auditing connection/session reuse, enumerate every per-transfer security-relevant option and verify each is part of the pool match key; auth/delegation/credential options are commonly forgotten.

