SSL session-cache peer key omits signature_algorithms: strict-sigalg handle silently resumes a permissive sibling's session
The SSL session cache key in curl omits the signature_algorithms field, so two handles that differ only in CURLOPT_SSL_SIGNATURE_ALGORITHMS share cached sessions. A handle with a strict sigalg policy can resume a session negotiated under a permissive sibling, silently bypassing its own policy because the resumed handshake skips certificate validation.
- Disclosed after 3 days
CURLOPT_SSL_SIGNATURE_ALGORITHMS policy bypass: SSL session cache key omits sigalgs, allowing a strict-sigalg handle to resume a session negotiated under a permissive policy
AI disclosure
This report was prepared with the assistance of an AI coding assistant
(Claude). The behavioral diff (pre/post patch) reproduces
deterministically on a real OpenSSL-backed curl build against
openssl s_server; full verbose logs are attached. Code-reading
claims have been double-checked against the source at the commit
listed below (vtls.c matcher vs. vtls_scache.c peer-key builder).
This vulnerability class has a direct precedent in CVE-2020-8231
(where the same asymmetry existed between the connection-cache
matcher and the peer-key builder for a different field).
Affected versions
Introduced in commit a638828c88 ("TLS: add
CURLOPT_SSL_SIGNATURE_ALGORITHMS and --sigalgs", Andrei Florea,
2025-04-02) — the option's introducing commit added sigalgs to
match_ssl_primary_config and the clone path, but not to
Curl_ssl_peer_key_make (the session-cache key builder).
First affected release: curl 8.14.0 (git describe --tags --contains a638828c88 → curl-8_14_0~167). Affected
through curl 8.20.0 (current latest released) and master
(curl-8_20_0-78-ga32a2b0b77, LIBCURL_VERSION "8.21.0-DEV").
Confirmed on master built with
--with-openssl=/opt/homebrew/opt/openssl@3. The patch applies
cleanly to all of them.
Summary
Curl_ssl_peer_key_make (lib/vtls/vtls_scache.c) builds the cache
key used to look up cached SSL sessions for reuse. It includes fields
like cipher_list13 and curves, but omits
signature_algorithms. Meanwhile, match_ssl_primary_config
(lib/vtls/vtls.c:219) does compare signature_algorithms when
deciding whether two SSL primary configs match.
The result: two CURL handles that differ only in
CURLOPT_SSL_SIGNATURE_ALGORITHMS produce identical peer cache
keys. If they share an SSL session cache (via CURLSH with
CURL_LOCK_DATA_SSL_SESSION), a handle with a strict sigalg
policy can resume a session that was negotiated under a permissive
policy on a sibling handle — silently bypassing its own stricter
policy: the resumed handshake does not present a certificate, so the
sigalg constraint (which is applied during certificate validation)
never runs.
This is the same defect class as CVE-2020-8231 (peer-cache-key omits a field the matcher uses).
Source-level evidence (pre-patch)
lib/vtls/vtls_scache.c, Curl_ssl_peer_key_make:
if(ssl->cipher_list13) {
r = curlx_dyn_addf(&buf, ":CIPHER13-%s", ssl->cipher_list13);
if(r) goto out;
}
if(ssl->curves) {
r = curlx_dyn_addf(&buf, ":CURVES-%s", ssl->curves);
if(r) goto out;
}
/* <-- signature_algorithms NOT added to peer key */
if(ssl->verifypeer) {
…
}
lib/vtls/vtls.c:194-225, match_ssl_primary_config (the predicate
used by the connection-reuse decision):
static bool match_ssl_primary_config(struct Curl_easy *data,
struct ssl_primary_config *c1,
struct ssl_primary_config *c2)
{
(void)data;
if((c1->version == c2->version) &&
(c1->version_max == c2->version_max) &&
(c1->ssl_options == c2->ssl_options) &&
(c1->verifypeer == c2->verifypeer) &&
(c1->verifyhost == c2->verifyhost) &&
(c1->verifystatus == c2->verifystatus) &&
blobcmp(c1->cert_blob, c2->cert_blob) &&
blobcmp(c1->ca_info_blob, c2->ca_info_blob) &&
blobcmp(c1->issuercert_blob, c2->issuercert_blob) &&
Curl_safecmp(c1->CApath, c2->CApath) &&
Curl_safecmp(c1->CAfile, c2->CAfile) &&
Curl_safecmp(c1->issuercert, c2->issuercert) &&
Curl_safecmp(c1->clientcert, c2->clientcert) &&
#ifdef USE_TLS_SRP
!Curl_timestrcmp(c1->username, c2->username) &&
!Curl_timestrcmp(c1->password, c2->password) &&
#endif
curl_strequal(c1->cipher_list, c2->cipher_list) &&
curl_strequal(c1->cipher_list13, c2->cipher_list13) &&
curl_strequal(c1->curves, c2->curves) &&
curl_strequal(c1->signature_algorithms, /* line 219 */
c2->signature_algorithms) &&
curl_strequal(c1->CRLfile, c2->CRLfile) &&
curl_strequal(c1->pinned_key, c2->pinned_key))
return TRUE;
return FALSE;
}
The asymmetry: the connection-reuse matcher considers
signature_algorithms (line 219, curl_strequal), but the session-
cache key builder does not (no :SIGALGS- line in
Curl_ssl_peer_key_make). Two handles with the same host/port/CA but
different sigalgs therefore agree on cache-key equality (wrong) while
disagreeing on connection-config equivalence (correct). The session-
cache becomes the weak link.
Reproduction
Build curl with OpenSSL backend (any backend that implements
CURLOPT_SSL_SIGNATURE_ALGORITHMS):
./configure --with-openssl=<path> --enable-debug --enable-curldebug
make
Test cert (server, signed with ECDSA+SHA256):
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 \
-keyout key.pem -out cert.pem -days 1 -nodes -subj "/CN=localhost"
Run a TLS 1.3 server that supports session tickets:
openssl s_server -accept 14443 -cert cert.pem -key key.pem -tls1_3 -www -quiet
PoC (single C file, ~80 lines, attached as poc_sigalgs_bypass.c):
CURLSH *sh = curl_share_init();
curl_share_setopt(sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION);
CURL *easy = curl_easy_init();
/* Handle A: permissive sigalgs (includes ECDSA+SHA256 which the
server's cert can satisfy). Populates the session cache. */
curl_easy_setopt(easy, CURLOPT_URL, "https://localhost:14443/");
curl_easy_setopt(easy, CURLOPT_SHARE, sh);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_SIGNATURE_ALGORITHMS,
"ECDSA+SHA1:ECDSA+SHA256");
curl_easy_perform(easy); /* succeeds, caches session under permissive */
/* Handle B: strict sigalgs (only ECDSA+SHA384). The server cert is
ECDSA+SHA256 — under B's stated policy, the handshake MUST fail. */
curl_easy_reset(easy);
curl_easy_setopt(easy, CURLOPT_URL, "https://localhost:14443/");
curl_easy_setopt(easy, CURLOPT_SHARE, sh);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_SIGNATURE_ALGORITHMS, "ECDSA+SHA384");
CURLcode rc = curl_easy_perform(easy);
printf("B rc=%d (%s)\n", rc, curl_easy_strerror(rc));
Observed behavior
Pre-patch (vulnerable):
=== A_permissive: sigalgs="ECDSA+SHA1:ECDSA+SHA256" ===
SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey
A_permissive rc=0
=== B_strict: sigalgs="ECDSA+SHA384" ===
SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / UNDEF
B_strict rc=0 <-- SHOULD HAVE FAILED
B_strict connects successfully despite the server cert being signed
with ECDSA+SHA256 (which B's policy excludes). The UNDEF curve in
the second connection is the TLS 1.3 resumption marker — no fresh
key exchange occurred. B reused A's session, so B's stricter
sigalg policy never got a chance to reject the cert.
Post-patch (with :SIGALGS- added to peer key):
=== A_permissive: sigalgs="ECDSA+SHA1:ECDSA+SHA256" ===
A_permissive rc=0
=== B_strict: sigalgs="ECDSA+SHA384" ===
B_strict rc=35 (SSL connect error) <-- correctly enforced
B_strict no longer finds A's session in the cache (different peer
key), does a fresh handshake under its own policy, and the server's
ECDSA+SHA256 cert is correctly rejected.
Impact
- Policy bypass: any application that uses
CURLOPT_SSL_SIGNATURE_ALGORITHMSfor tiered authentication (e.g., stricter sigalgs for high-value endpoints, more permissive for legacy/internal) and shares an SSL session cache across handles silently inherits the weakest policy ever used against the host. - TLS 1.3 verified, TLS 1.2 plausibly equivalent: TLS 1.3
resumption is PSK-based and skips the Certificate message
entirely (verified empirically here, see the
UNDEFcurve marker in the pre-fix verbose log). TLS 1.2 abbreviated handshakes (both session-ID and ticket-based) likewise omit Certificate; the same bypass shape applies but has not been verified empirically in this report. - No memory safety, no cryptographic break. This is a policy- laundering bug, identical in class to CVE-2020-8231 (which had a CVE assigned for the analogous case in another field).
- Real-world reach: narrow but unsympathetic. Applications
that set
CURLOPT_SSL_SIGNATURE_ALGORITHMSper handle are by definition applications that want differentiated sigalg enforcement — the exact use case this defect undoes. Common pattern: PQ-ready or non-SHA1 policy on high-value endpoints, legacy on internal services. Either tier of caller, when sharing an SSL session cache with a more-permissive sibling, inherits the weaker policy silently.
Suggested fix
lib/vtls/vtls_scache.c, inside Curl_ssl_peer_key_make, add the
signature_algorithms field to the peer key alongside the other
ssl-config fields:
if(ssl->curves) {
r = curlx_dyn_addf(&buf, ":CURVES-%s", ssl->curves);
if(r)
goto out;
}
+ /* signature_algorithms must be part of the peer key: the connection
+ cache matcher (match_ssl_primary_config) compares this field, so
+ two handles differing only in CURLOPT_SSL_SIGNATURE_ALGORITHMS
+ must not share a cached session. Without this, the stricter
+ handle inherits the permissive handle's negotiated session,
+ bypassing its policy. */
+ if(ssl->signature_algorithms) {
+ r = curlx_dyn_addf(&buf, ":SIGALGS-%s", ssl->signature_algorithms);
+ if(r)
+ goto out;
+ }
if(ssl->verifypeer) {
…
After applying, the e2e test in this report flips from B rc=0 to
B rc=35 (correct policy enforcement).
Attachments
poc_sigalgs_bypass.c— single-file libcurl PoC (~80 lines)verbose-pre-patch.txt— full curl verbose log, pre-fix run (B succeeds withUNDEFcurve TLS 1.3 resumption marker)verbose-post-patch.txt— full curl verbose log, post-fix run (B fails rc=35 SSL connect error)suggested-patch.diff— unified diff adding:SIGALGS-%stoCurl_ssl_peer_key_make
Impact
Applications that use CURLOPT_SSL_SIGNATURE_ALGORITHMS for tiered authentication (stricter sigalgs for high-value endpoints, more permissive for legacy/internal) and share an SSL session cache silently inherit the weakest policy ever used against a given host. Verified empirically on TLS 1.3 (PSK resumption, no Certificate message — UNDEF curve marker in the attached log). TLS 1.2 abbreviated handshakes (session-ID and ticket) also omit Certificate, so the same bypass shape applies but was not verified empirically here. No memory-safety impact; this is policy laundering via the session cache.
When the session cache forgets your TLS policy: a CURLOPT_SSL_SIGNATURE_ALGORITHMS bypass in curl
Context
curl exposes a per-handle option, CURLOPT_SSL_SIGNATURE_ALGORITHMS (and the matching --sigalgs command-line flag), that lets an application constrain which signature algorithms the TLS layer will accept. The option was introduced in commit a638828c88 ("TLS: add CURLOPT_SSL_SIGNATURE_ALGORITHMS and --sigalgs", Andrei Florea, 2025-04-02). The constraint is applied during certificate validation: if the server presents a certificate signed with an algorithm outside the configured list, the handshake is supposed to fail.
curl also has an SSL session cache. When several easy handles share a CURLSH with CURL_LOCK_DATA_SSL_SESSION, a TLS session negotiated by one handle can be resumed by another, avoiding a full handshake. To decide whether a cached session is usable for a given handle, curl builds a peer key from the handle's SSL configuration and looks the session up under that key. The peer key is built by Curl_ssl_peer_key_make in lib/vtls/vtls_scache.c. Separately, the connection-reuse decision uses a predicate called match_ssl_primary_config in lib/vtls/vtls.c.
The report shows that these two pieces of code disagree about which fields define TLS identity, and that the disagreement lets a handle with a strict signature-algorithm policy resume a session negotiated under a permissive one.
Setup
The affected range starts with curl 8.14.0 (git describe --tags --contains a638828c88 gives curl-8_14_0~167) and runs through curl 8.20.0, the latest release at the time of writing, and master (curl-8_20_0-78-ga32a2b0b77, LIBCURL_VERSION "8.21.0-DEV"). The researcher confirmed the behaviour on master built with --with-openssl=/opt/homebrew/opt/openssl@3, and states that the patch applies cleanly to all affected versions.
The build used for reproduction:
./configure --with-openssl=<path> --enable-debug --enable-curldebug
make
Any backend that implements CURLOPT_SSL_SIGNATURE_ALGORITHMS should be usable; the reproduction here uses OpenSSL. A test certificate signed with ECDSA+SHA256 is generated with:
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 \
-keyout key.pem -out cert.pem -days 1 -nodes -subj "/CN=localhost"
A TLS 1.3 server that supports session tickets is started with:
openssl s_server -accept 14443 -cert cert.pem -key key.pem -tls1_3 -www -quiet
The precondition for the bypass is that two handles share an SSL session cache through CURLSH with CURL_LOCK_DATA_SSL_SESSION, and that they differ only in CURLOPT_SSL_SIGNATURE_ALGORITHMS (same host, port and CA configuration).
Finding it
The report sets the two places side by side: the connection-reuse matcher and the session-cache peer-key builder. The connection-reuse matcher, match_ssl_primary_config at lib/vtls/vtls.c:194-225, compares signature_algorithms at line 219:
static bool match_ssl_primary_config(struct Curl_easy *data,
struct ssl_primary_config *c1,
struct ssl_primary_config *c2)
{
(void)data;
if((c1->version == c2->version) &&
(c1->version_max == c2->version_max) &&
(c1->ssl_options == c2->ssl_options) &&
(c1->verifypeer == c2->verifypeer) &&
(c1->verifyhost == c2->verifyhost) &&
(c1->verifystatus == c2->verifystatus) &&
blobcmp(c1->cert_blob, c2->cert_blob) &&
blobcmp(c1->ca_info_blob, c2->ca_info_blob) &&
blobcmp(c1->issuercert_blob, c2->issuercert_blob) &&
Curl_safecmp(c1->CApath, c2->CApath) &&
Curl_safecmp(c1->CAfile, c2->CAfile) &&
Curl_safecmp(c1->issuercert, c2->issuercert) &&
Curl_safecmp(c1->clientcert, c2->clientcert) &&
#ifdef USE_TLS_SRP
!Curl_timestrcmp(c1->username, c2->username) &&
!Curl_timestrcmp(c1->password, c2->password) &&
#endif
curl_strequal(c1->cipher_list, c2->cipher_list) &&
curl_strequal(c1->cipher_list13, c2->cipher_list13) &&
curl_strequal(c1->curves, c2->curves) &&
curl_strequal(c1->signature_algorithms, /* line 219 */
c2->signature_algorithms) &&
curl_strequal(c1->CRLfile, c2->CRLfile) &&
curl_strequal(c1->pinned_key, c2->pinned_key))
return TRUE;
return FALSE;
}
The session-cache peer-key builder, Curl_ssl_peer_key_make in lib/vtls/vtls_scache.c, includes cipher_list13 and curves but has no equivalent line for signature_algorithms:
if(ssl->cipher_list13) {
r = curlx_dyn_addf(&buf, ":CIPHER13-%s", ssl->cipher_list13);
if(r) goto out;
}
if(ssl->curves) {
r = curlx_dyn_addf(&buf, ":CURVES-%s", ssl->curves);
if(r) goto out;
}
/* <-- signature_algorithms NOT added to peer key */
if(ssl->verifypeer) {
…
}
The asymmetry is the finding: two handles that differ only in CURLOPT_SSL_SIGNATURE_ALGORITHMS produce identical peer cache keys, so they are treated as interchangeable for session resumption, even though the connection matcher correctly considers them different configurations. The introducing commit added the field to match_ssl_primary_config and to the clone path, but not to the peer-key builder. The report cites a direct precedent in CVE-2020-8231, where the same asymmetry existed between the connection-cache matcher and the peer-key builder for a different field.
Exploitation
Step 1: share an SSL session cache between two handles
The PoC is a single C file of about 80 lines (poc_sigalgs_bypass.c). It creates a share handle and enables SSL session sharing:
CURLSH *sh = curl_share_init();
curl_share_setopt(sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION);
CURL *easy = curl_easy_init();
This is the precondition: without a shared session cache, the second handle would not be able to look up the first handle's session at all.
Step 2: populate the cache with a permissive policy
Handle A is configured with a permissive signature-algorithm list that includes ECDSA+SHA256, the algorithm the server certificate is signed with:
/* Handle A: permissive sigalgs (includes ECDSA+SHA256 which the
server's cert can satisfy). Populates the session cache. */
curl_easy_setopt(easy, CURLOPT_URL, "https://localhost:14443/");
curl_easy_setopt(easy, CURLOPT_SHARE, sh);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_SIGNATURE_ALGORITHMS,
"ECDSA+SHA1:ECDSA+SHA256");
curl_easy_perform(easy); /* succeeds, caches session under permissive */
The request succeeds and the negotiated TLS session is stored in the shared cache.
Step 3: reuse the same handle with a strict policy
The handle is reset and reconfigured with a strict policy that allows only ECDSA+SHA384. The server certificate is ECDSA+SHA256, so under this policy the handshake must fail:
/* Handle B: strict sigalgs (only ECDSA+SHA384). The server cert is
ECDSA+SHA256 — under B's stated policy, the handshake MUST fail. */
curl_easy_reset(easy);
curl_easy_setopt(easy, CURLOPT_URL, "https://localhost:14443/");
curl_easy_setopt(easy, CURLOPT_SHARE, sh);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_SIGNATURE_ALGORITHMS, "ECDSA+SHA384");
CURLcode rc = curl_easy_perform(easy);
printf("B rc=%d (%s)\n", rc, curl_easy_strerror(rc));
Step 4: observe the pre-patch result
On the vulnerable build, the strict handle succeeds:
=== A_permissive: sigalgs="ECDSA+SHA1:ECDSA+SHA256" ===
SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey
A_permissive rc=0
=== B_strict: sigalgs="ECDSA+SHA384" ===
SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / UNDEF
B_strict rc=0 <-- SHOULD HAVE FAILED
The UNDEF curve in the second connection is the TLS 1.3 resumption marker: no fresh key exchange took place. Handle B resumed handle A's session, so the certificate was never presented and the signature-algorithm constraint, which is applied during certificate validation, never ran.
Step 5: observe the post-patch result
With :SIGALGS- added to the peer key, the strict handle no longer finds the permissive session, performs a fresh handshake under its own policy, and the server certificate is rejected:
=== A_permissive: sigalgs="ECDSA+SHA1:ECDSA+SHA256" ===
A_permissive rc=0
=== B_strict: sigalgs="ECDSA+SHA384" ===
B_strict rc=35 (SSL connect error) <-- correctly enforced
Root cause
The peer key used for SSL session lookup is built from a subset of the SSL configuration. Curl_ssl_peer_key_make includes cipher_list13 and curves but not signature_algorithms, while match_ssl_primary_config compares signature_algorithms with curl_strequal. Two handles with the same host, port and CA but different signature-algorithm lists therefore agree on cache-key equality (incorrectly) while disagreeing on connection-config equivalence (correctly). The session cache becomes the weak link: the connection layer would refuse to reuse a connection across the two configurations, but the session cache happily hands the permissive session to the strict handle.
Because TLS 1.3 resumption is PSK-based and skips the Certificate message entirely, the signature-algorithm check, which lives in certificate validation, is never reached on the resumed connection. The existing defence, comparing signature_algorithms in the connection matcher, does not cover the session cache path, so it does not stop the bypass.
The researcher also notes that TLS 1.2 abbreviated handshakes, both session-ID and ticket-based, likewise omit the Certificate message, so the same bypass shape plausibly applies there, though it was not verified empirically in the report.
Impact
Any application that uses CURLOPT_SSL_SIGNATURE_ALGORITHMS for tiered authentication, for example stricter signature algorithms for high-value endpoints and more permissive ones for legacy or internal services, and that shares an SSL session cache across handles, silently inherits the weakest policy ever used against a given host. A strict handle can resume a session negotiated under a permissive sibling and never apply its own constraint.
The researcher characterises the reach as narrow but unsympathetic: applications that set the option per handle are by definition applications that want differentiated enforcement, which is exactly the use case the defect undoes. The common pattern cited is a post-quantum-ready or non-SHA1 policy on high-value endpoints and a legacy policy on internal services; either tier, when sharing a session cache with a more permissive sibling, inherits the weaker policy silently.
The report is explicit about the limits: there is no memory-safety impact and no cryptographic break. It is a policy-laundering bug, identical in class to CVE-2020-8231, which received a CVE for the analogous case in another field. TLS 1.3 was verified empirically; TLS 1.2 was not.
Fix
The suggested fix is to add signature_algorithms to the peer key in Curl_ssl_peer_key_make, alongside the other SSL configuration fields:
if(ssl->curves) {
r = curlx_dyn_addf(&buf, ":CURVES-%s", ssl->curves);
if(r)
goto out;
}
+ /* signature_algorithms must be part of the peer key: the connection
+ cache matcher (match_ssl_primary_config) compares this field, so
+ two handles differing only in CURLOPT_SSL_SIGNATURE_ALGORITHMS
+ must not share a cached session. Without this, the stricter
+ handle inherits the permissive handle's negotiated session,
+ bypassing its policy. */
+ if(ssl->signature_algorithms) {
+ r = curlx_dyn_addf(&buf, ":SIGALGS-%s", ssl->signature_algorithms);
+ if(r)
+ goto out;
+ }
if(ssl->verifypeer) {
…
After applying the patch, the end-to-end test flips from B rc=0 to B rc=35, which is the correct policy enforcement. The suggested patch is attached as suggested-patch.diff, together with poc_sigalgs_bypass.c, verbose-pre-patch.txt and verbose-post-patch.txt.
- Other fields compared by the matcher but missing from the peer key. Diff the field list in
match_ssl_primary_configagainst the fields appended inCurl_ssl_peer_key_make. A positive result is a field that the matcher compares but the key builder omits, with two handles differing only in that field producing identical peer keys and one resuming the other's session. - TLS 1.2 abbreviated handshakes. Run the same PoC against a TLS 1.2 server with session-ID and ticket resumption enabled. A positive result is the strict handle succeeding with a resumed session and no Certificate message in the verbose log, mirroring the TLS 1.3
UNDEFmarker. - Other TLS backends. Repeat the test with a backend other than OpenSSL that implements
CURLOPT_SSL_SIGNATURE_ALGORITHMS. A positive result is the samerc=0for the strict handle on the vulnerable build andrc=35after the fix. - Other per-handle TLS options with a shared session cache. Try options that affect certificate validation or negotiation but may not be part of the peer key, such as pinned keys or CRL settings, and check whether a handle with a stricter setting can resume a session negotiated under a looser one. A positive result is a resumed connection that skips the stricter check.
- Mixed-policy applications. Build a small application that uses a permissive policy for one endpoint and a strict policy for another on the same host, sharing a session cache. A positive result is the strict endpoint succeeding against a certificate its policy should reject, with the resumption marker present in the verbose output.
What happened, in plain words
curl is a small program, and a library (a reusable block of code other programs can call), that fetches things from the internet: web pages, files, API responses. When it talks to a website over HTTPS, the two sides first agree on how to encrypt the conversation. That agreement is called a TLS handshake, and it is what puts the padlock in your browser's address bar.
Part of that handshake is the server proving who it is with a certificate, a small signed document. The certificate carries a signature, and that signature is made with a particular mathematical recipe, called a signature algorithm. curl lets the program using it say which recipes it is willing to accept, through an option called CURLOPT_SSL_SIGNATURE_ALGORITHMS. If the server's certificate is signed with a recipe that is not on the list, the connection is supposed to fail.
curl also has a shortcut. Once it has completed a handshake with a server, it can remember the result in a session cache and, the next time, skip most of the work by resuming that remembered session. This is like keeping a stamped loyalty card: the shop already knows you, so you do not have to show your ID again.
The bug is that the shortcut and the ID check disagree about what makes two connections "the same". The part of curl that decides whether an existing connection can be reused does look at the signature-algorithm list. The part that builds the lookup key for the session cache does not. So a program that asks for a strict list can be handed a remembered session that was set up under a loose list, and because resuming a session skips the certificate step entirely, the strict list is never checked. The strict setting is silently ignored.
The researcher who found this wrote it up with a working demonstration, source-code evidence and a suggested fix. The report was prepared with the help of an AI coding assistant (Claude), and the researcher says the before/after behaviour reproduces reliably on a real curl build using the OpenSSL library against a test server. The code-reading claims were double-checked against the source at the commit listed in the report. The report also points out a direct precedent in CVE-2020-8231, where the same asymmetry existed between the connection-cache matcher and the peer-key builder for a different field.
The pieces involved
Before the details, here are the moving parts, explained from zero.
- curl: a command-line tool and a library for transferring data over the internet. Programs use the library (libcurl) to make web requests without writing all the network code themselves.
- TLS: the encryption layer behind HTTPS. It handles the handshake, the certificate check and the encrypted conversation.
- Certificate: a signed document a server presents to prove its identity. It is signed by a certificate authority, using a signature algorithm.
- Signature algorithm: the mathematical recipe used to produce and check a signature, for example ECDSA with SHA-256. Different recipes have different strength and compatibility properties, which is why a program might want to restrict them.
- Handle: curl's word for one configured request object. You create a handle, set options on it, and perform requests with it. Think of it as a form you fill in before pressing send.
- Session cache: a store of previously negotiated TLS sessions, so a later connection can be resumed instead of starting from scratch.
- Session resumption: reusing an earlier TLS session. In TLS 1.3 it works with a pre-shared key (PSK), a secret both sides already agreed on, so the certificate is not sent again.
- Peer key: the string curl builds from a handle's TLS settings and uses as the lookup key in the session cache. Two handles with the same peer key are treated as able to share sessions.
CURLSH/ share handle: a curl object that lets several handles share resources, including the SSL session cache whenCURL_LOCK_DATA_SSL_SESSIONis enabled.- Commit: a saved change in a code repository, identified by a short hash such as
a638828c88. - CVE: a public identifier for a known security vulnerability, so people can refer to it unambiguously.
Which versions are affected
The option was added in a commit identified as a638828c88, titled "TLS: add CURLOPT_SSL_SIGNATURE_ALGORITHMS and --sigalgs", by Andrei Florea, dated 2025-04-02. That commit added the new setting to the connection-reuse comparison and to the code that copies settings, but not to the function that builds the session-cache key. That omission is the bug.
The first release containing the option is curl 8.14.0. The report notes that git describe --tags --contains a638828c88 gives curl-8_14_0~167, which is a way of asking git, the version-control tool, which release first included that commit. The problem runs through curl 8.20.0, the latest release at the time of writing, and also affects the development branch, described as curl-8_20_0-78-ga32a2b0b77 with LIBCURL_VERSION "8.21.0-DEV". The researcher confirmed the behaviour on the development branch built with --with-openssl=/opt/homebrew/opt/openssl@3, and states that the suggested patch applies cleanly to all affected versions.
Setting up a test environment
The researcher built curl from source with debugging enabled, using the OpenSSL library as the TLS engine:
./configure --with-openssl=<path> --enable-debug --enable-curldebug
make
Line by line:
./configureruns curl's setup script. It inspects the machine and writes the build configuration.--with-openssl=<path>tells it to use the OpenSSL library found at the given path as the TLS backend. The angle brackets are a placeholder for a real directory.--enable-debugturns on debugging support in the build.--enable-curldebugturns on curl's own internal debug tracing, which is what produces the verbose logs used later.makecompiles the code into a working program.
The report says any backend that implements the option can be used; OpenSSL is the one used here.
Next, a test certificate is generated, signed with ECDSA and SHA-256:
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 \
-keyout key.pem -out cert.pem -days 1 -nodes -subj "/CN=localhost"
Line by line:
openssl reqis the OpenSSL command for creating certificate requests and self-signed certificates.-x509asks for a self-signed certificate rather than a request to be signed by someone else. For a local test, curl is told not to verify the certificate anyway.-newkey eccreates a new key using elliptic-curve cryptography.-pkeyopt ec_paramgen_curve:P-256picks the P-256 curve for that key.-keyout key.pemwrites the private key tokey.pem.-out cert.pemwrites the certificate tocert.pem.-days 1makes it valid for one day.-nodesmeans no passphrase protects the key file, which is convenient for a throwaway test.-subj "/CN=localhost"sets the certificate's subject name tolocalhost, the local machine.
Then a TLS 1.3 test server is started, one that supports session tickets (the mechanism that lets a client resume a session later):
openssl s_server -accept 14443 -cert cert.pem -key key.pem -tls1_3 -www -quiet
Line by line:
openssl s_serveris OpenSSL's simple test server.-accept 14443listens on port 14443.-cert cert.pemand-key key.pemgive it the certificate and private key generated above.-tls1_3restricts it to TLS version 1.3.-wwwmakes the server answer HTTP requests with a small status page.-quietreduces the server's own logging noise.
The precondition for the bypass is that two handles share an SSL session cache through a CURLSH with CURL_LOCK_DATA_SSL_SESSION, and that they differ only in CURLOPT_SSL_SIGNATURE_ALGORITHMS, with the same host, port and certificate-authority configuration.
Finding it in the code
The researcher compared the two places where curl decides whether two TLS configurations count as "the same".
The first is the connection-reuse check, a function called match_ssl_primary_config in lib/vtls/vtls.c, lines 194 to 225. It compares signature_algorithms at line 219:
static bool match_ssl_primary_config(struct Curl_easy *data,
struct ssl_primary_config *c1,
struct ssl_primary_config *c2)
{
(void)data;
if((c1->version == c2->version) &&
(c1->version_max == c2->version_max) &&
(c1->ssl_options == c2->ssl_options) &&
(c1->verifypeer == c2->verifypeer) &&
(c1->verifyhost == c2->verifyhost) &&
(c1->verifystatus == c2->verifystatus) &&
blobcmp(c1->cert_blob, c2->cert_blob) &&
blobcmp(c1->ca_info_blob, c2->ca_info_blob) &&
blobcmp(c1->issuercert_blob, c2->issuercert_blob) &&
Curl_safecmp(c1->CApath, c2->CApath) &&
Curl_safecmp(c1->CAfile, c2->CAfile) &&
Curl_safecmp(c1->issuercert, c2->issuercert) &&
Curl_safecmp(c1->clientcert, c2->clientcert) &&
#ifdef USE_TLS_SRP
!Curl_timestrcmp(c1->username, c2->username) &&
!Curl_timestrcmp(c1->password, c2->password) &&
#endif
curl_strequal(c1->cipher_list, c2->cipher_list) &&
curl_strequal(c1->cipher_list13, c2->cipher_list13) &&
curl_strequal(c1->curves, c2->curves) &&
curl_strequal(c1->signature_algorithms, /* line 219 */
c2->signature_algorithms) &&
curl_strequal(c1->CRLfile, c2->CRLfile) &&
curl_strequal(c1->pinned_key, c2->pinned_key))
return TRUE;
return FALSE;
}
What this does, in plain words:
- The function takes two TLS configurations,
c1andc2, and answers one question: are they equivalent? (void)data;is a way of saying thedataparameter is deliberately unused, to keep the compiler quiet.- The long
ifchains together many comparisons with&&, meaning "and". Every single one must be true for the configurations to match. - The first group compares simple settings: TLS version, maximum version, SSL options, and the three verification switches (
verifypeer,verifyhost,verifystatus). - The
blobcmpcalls compare binary blobs: the client certificate, the CA information and the issuer certificate. - The
Curl_safecmpcalls compare text settings safely, including when one of them is empty: CA path, CA file, issuer certificate and client certificate. - The
#ifdef USE_TLS_SRPblock is only compiled when TLS-SRP support is enabled; it compares a username and password. curl_strequalcompares strings. Here it checks the cipher list, the TLS 1.3 cipher list, the curves, and cruciallysignature_algorithmson line 219, then the CRL file and the pinned key.- If everything matches, the function returns
TRUE; otherwise it returnsFALSE.
The second place is the session-cache key builder, Curl_ssl_peer_key_make in lib/vtls/vtls_scache.c. It includes the TLS 1.3 cipher list and the curves, but has no equivalent line for signature_algorithms:
if(ssl->cipher_list13) {
r = curlx_dyn_addf(&buf, ":CIPHER13-%s", ssl->cipher_list13);
if(r) goto out;
}
if(ssl->curves) {
r = curlx_dyn_addf(&buf, ":CURVES-%s", ssl->curves);
if(r) goto out;
}
/* <-- signature_algorithms NOT added to peer key */
if(ssl->verifypeer) {
…
}
What this does, in plain words:
if(ssl->cipher_list13)checks whether a TLS 1.3 cipher list is set. If so, it appends a piece to the key string in the bufferbuf, in the form:CIPHER13-followed by the list.curlx_dyn_addfis curl's helper for appending formatted text to a growable string. It returns a non-zero value on failure, in which casegoto outjumps to the cleanup code.- The same pattern repeats for
curves, appending:CURVES-and the curve list. - The comment marks the gap:
signature_algorithmsis not added to the peer key. - The code then continues with other settings, such as
verifypeer.
The asymmetry is the finding. Two handles that differ only in CURLOPT_SSL_SIGNATURE_ALGORITHMS produce identical peer cache keys, so the session cache treats them as interchangeable, even though the connection matcher correctly considers them different configurations. The commit that introduced the option added the field to the matcher and to the copy path, but not to the key builder. The report notes the direct precedent in CVE-2020-8231, where the same kind of asymmetry existed between the connection-cache matcher and the peer-key builder for a different field.
Demonstrating the bypass
Step 1: share an SSL session cache between two handles
The proof-of-concept is a single C file of about 80 lines, attached to the report as poc_sigalgs_bypass.c. It creates a share handle and enables SSL session sharing:
CURLSH *sh = curl_share_init();
curl_share_setopt(sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION);
CURL *easy = curl_easy_init();
Line by line:
curl_share_init()creates a share object, a container that several handles can point at so they share resources.curl_share_setopt(sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION)tells that share object to share the SSL session cache. Without this, the second handle could not look up the first handle's session at all, so this line is the precondition for the whole demonstration.curl_easy_init()creates an easy handle, the object that holds one request's settings.
Step 2: fill the cache under a permissive policy
Handle A is configured with a loose signature-algorithm list that includes ECDSA+SHA256, the algorithm the server certificate is signed with:
/* Handle A: permissive sigalgs (includes ECDSA+SHA256 which the
server's cert can satisfy). Populates the session cache. */
curl_easy_setopt(easy, CURLOPT_URL, "https://localhost:14443/");
curl_easy_setopt(easy, CURLOPT_SHARE, sh);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_SIGNATURE_ALGORITHMS,
"ECDSA+SHA1:ECDSA+SHA256");
curl_easy_perform(easy); /* succeeds, caches session under permissive */
Line by line:
- The comment explains the intent: this handle is the permissive one, and its list includes the algorithm the server's certificate uses, so the handshake can succeed.
CURLOPT_URLsets the address to fetch:https://localhost:14443/, the local test server.CURLOPT_SHAREattaches the share object, so this handle uses the shared session cache.CURLOPT_SSL_VERIFYPEERset to0Lturns off checking that the certificate chains to a trusted authority. This is done because the test certificate is self-signed.CURLOPT_SSL_VERIFYHOSTset to0Lturns off checking that the certificate's name matches the host. Again, this is for the local test.CURLOPT_SSL_SIGNATURE_ALGORITHMSis set to"ECDSA+SHA1:ECDSA+SHA256", a list of two accepted algorithms.curl_easy_perform(easy)actually makes the request. The comment notes it succeeds and stores the negotiated session in the shared cache.
Why this step matters: it plants a session in the cache that was negotiated under a loose policy. The next step will try to pick it up under a strict policy.
Step 3: reuse the same handle with a strict policy
The handle is reset and reconfigured with a strict policy that allows only ECDSA+SHA384. The server certificate is ECDSA+SHA256, so under this policy the handshake must fail:
/* Handle B: strict sigalgs (only ECDSA+SHA384). The server cert is
ECDSA+SHA256 — under B's stated policy, the handshake MUST fail. */
curl_easy_reset(easy);
curl_easy_setopt(easy, CURLOPT_URL, "https://localhost:14443/");
curl_easy_setopt(easy, CURLOPT_SHARE, sh);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(easy, CURLOPT_SSL_SIGNATURE_ALGORITHMS, "ECDSA+SHA384");
CURLcode rc = curl_easy_perform(easy);
printf("B rc=%d (%s)\n", rc, curl_easy_strerror(rc));
Line by line:
- The comment states the expectation: this handle allows only ECDSA+SHA384, the server certificate is ECDSA+SHA256, so the handshake must fail.
curl_easy_reset(easy)clears the handle's previous settings, so it starts fresh.- The URL, share object and the two verification switches are set exactly as before, so the only meaningful difference from handle A is the signature-algorithm list.
CURLOPT_SSL_SIGNATURE_ALGORITHMSis now"ECDSA+SHA384", a single strict algorithm.curl_easy_perform(easy)makes the request and stores the result code inrc.printfprints the numeric result code and a human-readable message fromcurl_easy_strerror(rc), so the outcome is visible.
Step 4: the result before the fix
On the vulnerable build, the strict handle succeeds:
=== A_permissive: sigalgs="ECDSA+SHA1:ECDSA+SHA256" ===
SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey
A_permissive rc=0
=== B_strict: sigalgs="ECDSA+SHA384" ===
SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / UNDEF
B_strict rc=0 <-- SHOULD HAVE FAILED
Reading the output:
- The first block is handle A. The connection uses TLS 1.3, the cipher suite TLS_AES_256_GCM_SHA384, the key-exchange group X25519MLKEM768, and the key type
id-ecPublicKey. The result code is0, meaning success. - The second block is handle B. It also reports TLS 1.3 and the same cipher suite and group, but the last field is
UNDEFinstead of a key type. UNDEFis the marker of a resumed TLS 1.3 session: no fresh key exchange took place, so there is no new key type to report.- The result code is
0, success, with the report's own annotation that it should have failed.
Handle B resumed handle A's session. Because the certificate was never presented, the signature-algorithm check, which happens during certificate validation, never ran. The strict policy was bypassed without any error.
Step 5: the result after the fix
With :SIGALGS- added to the peer key, the strict handle no longer finds the permissive session, performs a fresh handshake under its own policy, and the server certificate is rejected:
=== A_permissive: sigalgs="ECDSA+SHA1:ECDSA+SHA256" ===
A_permissive rc=0
=== B_strict: sigalgs="ECDSA+SHA384" ===
B_strict rc=35 (SSL connect error) <-- correctly enforced
Reading the output:
- Handle A still succeeds with
rc=0, as expected. - Handle B now returns
rc=35, which curl reports as an SSL connect error. The fresh handshake presented the certificate, the strict policy rejected its ECDSA+SHA256 signature, and the connection failed as it should.
Why it happens
The peer key used to look up SSL sessions is built from only some of the TLS settings. Curl_ssl_peer_key_make includes the TLS 1.3 cipher list and the curves, but not signature_algorithms, while match_ssl_primary_config compares signature_algorithms with curl_strequal. Two handles with the same host, port and certificate authority but different signature-algorithm lists therefore agree on cache-key equality, incorrectly, while disagreeing on connection-configuration equivalence, correctly. The session cache becomes the weak link: the connection layer would refuse to reuse a connection across the two configurations, but the session cache hands the permissive session to the strict handle anyway.
Because TLS 1.3 resumption is based on a pre-shared key and skips the Certificate message entirely, the signature-algorithm check, which lives in certificate validation, is never reached on the resumed connection. The existing defence, comparing signature_algorithms in the connection matcher, does not cover the session-cache path, so it does not stop the bypass.
The researcher also notes that TLS 1.2 abbreviated handshakes, both session-ID and ticket-based, likewise omit the Certificate message, so the same bypass shape plausibly applies there, though it was not verified empirically in the report.
What it means in practice
Any application that uses CURLOPT_SSL_SIGNATURE_ALGORITHMS for tiered authentication, for example stricter signature algorithms for high-value endpoints and more permissive ones for legacy or internal services, and that shares an SSL session cache across handles, silently inherits the weakest policy ever used against a given host. A strict handle can resume a session negotiated under a permissive sibling and never apply its own constraint.
The researcher describes the reach as narrow but unsympathetic: applications that set the option per handle are by definition applications that want differentiated enforcement, which is exactly the use case the defect undoes. The common pattern cited is a post-quantum-ready or non-SHA1 policy on high-value endpoints and a legacy policy on internal services; either tier, when sharing a session cache with a more permissive sibling, inherits the weaker policy silently.
The report is explicit about the limits: there is no memory-safety impact and no cryptographic break. It is a policy-laundering bug, identical in class to CVE-2020-8231, which received a CVE for the analogous case in another field. TLS 1.3 was verified empirically; TLS 1.2 was not.
The suggested fix
The fix is to add signature_algorithms to the peer key in Curl_ssl_peer_key_make, alongside the other TLS settings:
if(ssl->curves) {
r = curlx_dyn_addf(&buf, ":CURVES-%s", ssl->curves);
if(r)
goto out;
}
+ /* signature_algorithms must be part of the peer key: the connection
+ cache matcher (match_ssl_primary_config) compares this field, so
+ two handles differing only in CURLOPT_SSL_SIGNATURE_ALGORITHMS
+ must not share a cached session. Without this, the stricter
+ handle inherits the permissive handle's negotiated session,
+ bypassing its policy. */
+ if(ssl->signature_algorithms) {
+ r = curlx_dyn_addf(&buf, ":SIGALGS-%s", ssl->signature_algorithms);
+ if(r)
+ goto out;
+ }
if(ssl->verifypeer) {
…
Reading the diff:
- Lines starting with a space are unchanged context. The existing block appends the curve list to the key.
- Lines starting with
+are the new code. The comment explains why the field must be in the key: the connection matcher compares it, so two handles differing only in this option must not share a cached session. if(ssl->signature_algorithms)checks whether the setting is present.curlx_dyn_addf(&buf, ":SIGALGS-%s", ssl->signature_algorithms)appends:SIGALGS-followed by the list to the key string, exactly as the cipher and curve blocks do.- The error check
if(r) goto out;handles a failure to append.
After applying the patch, the end-to-end test flips from B rc=0 to B rc=35, which is the correct policy enforcement. The patch is supplied as suggested-patch.diff in the attachments, together with poc_sigalgs_bypass.c, verbose-pre-patch.txt and verbose-post-patch.txt.
Other things worth testing
- Other fields compared by the matcher but missing from the peer key. Compare the field list in
match_ssl_primary_configwith the fields appended inCurl_ssl_peer_key_make. A positive result is a field the matcher compares but the key builder omits, with two handles differing only in that field producing identical peer keys and one resuming the other's session. - TLS 1.2 abbreviated handshakes. Run the same proof-of-concept against a TLS 1.2 server with session-ID and ticket resumption enabled. A positive result is the strict handle succeeding with a resumed session and no Certificate message in the verbose log, mirroring the TLS 1.3
UNDEFmarker. - Other TLS backends. Repeat the test with a backend other than OpenSSL that implements
CURLOPT_SSL_SIGNATURE_ALGORITHMS. A positive result is the samerc=0for the strict handle on the vulnerable build andrc=35after the fix. - Other per-handle TLS options with a shared session cache. Try options that affect certificate validation or negotiation but may not be part of the peer key, such as pinned keys or CRL settings, and check whether a handle with a stricter setting can resume a session negotiated under a looser one. A positive result is a resumed connection that skips the stricter check.
- Mixed-policy applications. Build a small application that uses a permissive policy for one endpoint and a strict policy for another on the same host, sharing a session cache. A positive result is the strict endpoint succeeding against a certificate its policy should reject, with the resumption marker present in the verbose output.
Glossary
- API: an agreed way for one piece of software to ask another to do something, like a menu of functions with fixed names and inputs.
- Backend: the underlying library curl uses to do a job, here the TLS engine such as OpenSSL.
- Certificate: a signed document a server presents to prove its identity, containing its name and public key.
- Certificate authority (CA): an organisation whose signature on a certificate is trusted by clients.
- Cipher suite: the combination of algorithms used to encrypt and authenticate a TLS connection.
- Commit: a saved change in a code repository, identified by a hash.
- Connection reuse: keeping an already open connection and using it for another request instead of opening a new one.
- CRL: certificate revocation list, a list of certificates that should no longer be trusted.
- curl: a command-line tool and library for transferring data over the internet.
- CVE: a public identifier for a known security vulnerability.
- CVE-2020-8231: an earlier curl vulnerability where a similar mismatch existed between two pieces of code for a different setting.
- ECDSA: a family of signature algorithms based on elliptic-curve cryptography.
- Handle: curl's object holding one request's settings.
- Handshake: the opening exchange in TLS where the two sides agree on encryption and the server proves its identity.
- HTTPS: HTTP carried over an encrypted TLS connection.
- libcurl: the library form of curl that programs call directly.
- OpenSSL: a widely used open-source library implementing TLS.
- Peer key: the string curl builds from a handle's TLS settings and uses to look up sessions in the session cache.
- Pinned key: a setting that requires a server to present one specific public key.
- Policy bypass: making a system skip a rule it was configured to enforce, without triggering an error.
- Post-quantum-ready: configured with algorithms chosen to resist future quantum computers.
- Pre-shared key (PSK): a secret both sides already know, used in TLS 1.3 to resume a session without a full handshake.
- Proof-of-concept (PoC): a small program that demonstrates a vulnerability in practice.
- Result code (
rc): the number a curl function returns to say whether it succeeded or why it failed;0means success. - Session cache: a store of previously negotiated TLS sessions for later reuse.
- Session resumption: reusing an earlier TLS session instead of doing a full handshake.
- Session ticket: a piece of data a server gives a client so the session can be resumed later.
- SHA-256 / SHA-384 / SHA-1: hash functions used inside signature algorithms; the number is the output size in bits.
- Share handle (
CURLSH): a curl object that lets several handles share resources such as the session cache. - Signature algorithm: the mathematical recipe used to create and check a digital signature.
- TLS: the encryption protocol behind HTTPS.
- TLS 1.2 / TLS 1.3: versions of the TLS protocol; 1.3 is newer and resumes sessions with a pre-shared key.
UNDEF: in curl's verbose output, the marker that a TLS 1.3 session was resumed and no fresh key exchange happened.- Verbose log: detailed output from curl showing what happened during a request.
- X25519MLKEM768: the key-exchange group named in the test output.