Client memory corruption via stale PSK binder pointer
Published Mar 12, 2021 · Updated Dec 3, 2025
Use-after-free in GnuTLS before 3.7.1 allows remote attackers to crash a TLS 1.3 client during a crafted resumed handshake. client_send_params keeps a pointer into extdata, then _gnutls_buffer_append_prefix can reallocate that buffer before compute_psk_binder dereferences the stale pointer. Triggering requires TLS 1.3, a large ClientHello, and a HelloRetryRequest in a resumed session previously negotiated with large FFDHE parameters; memory corruption can crash the client.
Summary
What happened
Use-after-free in GnuTLS before 3.7.1 allows remote attackers to crash a TLS 1.3 client during a crafted resumed handshake. client_send_params keeps a pointer into extdata, then _gnutls_buffer_append_prefix can reallocate that buffer before compute_psk_binder dereferences the stale pointer. Triggering requires TLS 1.3, a large ClientHello, and a HelloRetryRequest in a resumed session previously negotiated with large FFDHE parameters; memory corruption can crash the client.
The record
- CVE
- CVE-2021-20232
- Published
- Mar 12, 2021
- Updated
- Dec 3, 2025
- Vendor
- GnuTLS Project
- Product
- GnuTLS
- Classifications
- CWE-416, T1499
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 12, 2021CVE publishedPublication date reported by the CVE source.
- Dec 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=gnutls 3.7.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo