cve.bz

CVE-2021-20232 Use After Free

9.8 criticalEPSS 3.4%Fix available

Critical (9.8). EPSS 3.4% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in gnutls. A use after free issue in client_send_params in lib/ext/pre_shared_key.c may lead to memory corruption and other potential consequences.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.4% (unchanged from 3.4% a week ago; 3.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-12-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20232 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20232?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20232?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20232 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-20232

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-20232](https://cve.bz/cve/badge/CVE-2021-20232.svg)](https://cve.bz/cve/CVE-2021-20232)

HTML:

<a href="https://cve.bz/cve/CVE-2021-20232"><img src="https://cve.bz/cve/badge/CVE-2021-20232.svg" alt="CVE-2021-20232"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:gnutlsfrom 3.6.3 before 3.7.1
redhat:enterprise_linux8.0
fedoraproject:fedora34

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14gnutls283.7.1-1DEBIAN-CVE-2021-20232
Ubuntu20.04:LTSgnutls283.6.13-2ubuntu1.6UBUNTU-CVE-2021-20232 USN-5029-1
Red Hatenterprise_linux:8::appstreamgnutls-c++, gnutls-dane, gnutls-devel and 6 more0:3.6.16-4.el8RHSA-2021:4451
Red Hatenterprise_linux:8::appstreamnettle-devel, nettle-debuginfo, nettle-debugsource0:3.4.1-7.el8RHSA-2021:4451
Red Hatenterprise_linux:8::baseosgnutls, gnutls-debuginfo, gnutls-debugsource and 3 more0:3.6.16-4.el8RHSA-2021:4451
Red Hatenterprise_linux:8::baseosnettle, nettle-debuginfo, nettle-debugsource0:3.4.1-7.el8RHSA-2021:4451
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 moregnutls3.6.7-6.40.2SUSE-SU-2021:0934-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2gnutls3.6.7-14.10.2SUSE-SU-2021:0935-1
openSUSELeap 15.2gnutls3.6.7-lp152.9.9.1openSUSE-SU-2021:0470-1
openSUSETumbleweedgnutls3.7.2-1.2openSUSE-SU-2024:10801-1
AlmaLinux8gnutls, gnutls-c++, gnutls-dane and 2 more3.6.16-4.el8ALSA-2021:4451
AlmaLinux8nettle, nettle-devel3.4.1-7.el8ALSA-2021:4451
Rocky Linux8gnutls0:3.6.16-4.el8RLSA-2021:4451
Rocky Linux8nettle0:3.4.1-7.el8RLSA-2021:4451
Alpinev3.10, v3.11, v3.12gnutls3.6.15-r1ALPINE-CVE-2021-20232
Alpinev3.13, v3.14, v3.15 and 9 moregnutls3.7.1-r0ALPINE-CVE-2021-20232
Azure Linux2gnutls3.6.14-5AZL-6447

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

As mentioned in the upstream advisory and GnuTLS issue 1151 (see External References) this flaw is not easily exploitable and it only happens intermittently (denial of service is not always practical). For this reason, this flaw has been rated as having a security impact of Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8gnutls-0:3.6.16-4.el8Fixed 2021-11-09RHSA-2021:4451
Red Hat Enterprise Linux 8nettle-0:3.4.1-7.el8Fixed 2021-11-09RHSA-2021:4451
Red Hat Enterprise Linux 6gnutlsNot affected
Red Hat Enterprise Linux 7gnutlsNot affected
Red Hat Enterprise Linux 9gnutlsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20232.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON