Vulnerabilities / CVE-2021-20232

critical

CVE-2021-20232

gnutls: Use after free in client_send_params in lib/ext/pre_shared_key.c

Published Modified CWE 416
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat3.7CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Julia9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, CBL-Mariner, Julia, Photon OS. Rated lower by Red Hat (medium), AlmaLinux (medium), Oracle (medium), Rocky Linux (medium), Ubuntu (low).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
CBL-Mariner 1.0gnutls0:3.6.14-5.cm1
CBL-Mariner 2.0gnutls0:3.6.14-5.cm2
julia::Julia Ecosystem Security AdvisoriesGnuTLS_jll3.7.1+0
Photon OS 1.0gnutls3.6.15-3.ph1
Photon OS 2.0gnutls3.6.15-3.ph2
Photon OS 3.0gnutls3.6.15-3.ph3
Photon OS 4.0gnutls, gnutls-devel3.7.1-1.ph4
alma 8gnutls, gnutls-c++, gnutls-dane and 4 more3.6.16-4.el8 and 1 more
alpine 3.10gnutls3.6.15-r1
alpine 3.11gnutls3.6.15-r1
alpine 3.12gnutls3.6.15-r1
alpine 3.13gnutls3.7.1-r0
Show all 58 entries from 39 sources
SourcePackageFixed in
CBL-Mariner 1.0gnutls0:3.6.14-5.cm1
CBL-Mariner 2.0gnutls0:3.6.14-5.cm2
julia::Julia Ecosystem Security AdvisoriesGnuTLS_jll3.7.1+0
Photon OS 1.0gnutls3.6.15-3.ph1
Photon OS 2.0gnutls3.6.15-3.ph2
Photon OS 3.0gnutls3.6.15-3.ph3
Photon OS 4.0gnutls3.7.1-1.ph4
Photon OS 4.0gnutls-devel3.7.1-1.ph4
alma 8gnutls3.6.16-4.el8
alma 8gnutls-c++3.6.16-4.el8
alma 8gnutls-dane3.6.16-4.el8
alma 8gnutls-devel3.6.16-4.el8
alma 8gnutls-utils3.6.16-4.el8
alma 8nettle3.4.1-7.el8
alma 8nettle-devel3.4.1-7.el8
alpine 3.10gnutls3.6.15-r1
alpine 3.11gnutls3.6.15-r1
alpine 3.12gnutls3.6.15-r1
alpine 3.13gnutls3.7.1-r0
alpine 3.14gnutls3.7.1-r0
alpine 3.15gnutls3.7.1-r0
alpine 3.16gnutls3.7.1-r0
alpine 3.17gnutls3.7.1-r0
alpine 3.18gnutls3.7.1-r0
alpine 3.19gnutls3.7.1-r0
alpine 3.20gnutls3.7.1-r0
alpine 3.21gnutls3.7.1-r0
alpine 3.22gnutls3.7.1-r0
alpine 3.23gnutls3.7.1-r0
alpine 3.24gnutls3.7.1-r0
alpine edgegnutls3.7.1-r0
chainguardgnutls0
debian 10gnutls283.6.7-4+deb10u7
debian 11gnutls283.7.1-1
debian 12gnutls283.7.1-1
debian 13gnutls283.7.1-1
debian 14gnutls283.7.1-1
echognutls283.7.1-1
Oracle Linux 8gnutls3.6.16-4.el8
Oracle Linux 8gnutls-c++3.6.16-4.el8
Oracle Linux 8gnutls-dane3.6.16-4.el8
Oracle Linux 8gnutls-devel3.6.16-4.el8
Oracle Linux 8gnutls-utils3.6.16-4.el8
Oracle Linux 8nettle3.4.1-7.el8
Oracle Linux 8nettle-devel3.4.1-7.el8
rocky 8gnutls3.6.16-4.el8
rocky 8gnutls-c++3.6.16-4.el8
rocky 8gnutls-dane3.6.16-4.el8
rocky 8gnutls-devel3.6.16-4.el8
rocky 8gnutls-utils3.6.16-4.el8
rocky 8nettle3.4.1-7.el8
rocky 8nettle-devel3.4.1-7.el8
root.io alpine 3.22rootio-gnutls3.7.1-r0
root.io debian 12rootio-gnutls283.7.1-1
root.io debian 13rootio-gnutls283.7.1-1
ubuntu 20.04gnutls283.6.13-2ubuntu1.6
ubuntu 20.04-ESMgnutls283.6.13-2ubuntu1.6
wolfignutls0

References

All 39 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.