CVE-2023-5981

Gnutls: timing side-channel in the rsa-psk authentication

5.9 medium EPSS 1.42%

Published 28 Nov 2023 Updated 5 Nov 2026 CNA: redhat

Check your servers for CVE-2023-5981

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-5981 affects gnutls, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

A vulnerability was found that the response times to malformed ciphertexts in RSA-PSK ClientKeyExchange differ from response times of ciphertexts with correct PKCS#1 v1.5 padding.

Severity (CVSS)

5.9 medium CVSS 3.1 from redhat (CNA)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.42%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 73.5% of all scored CVEs. Scores of 1 Dec 2026.

Weakness

  • CWE-208 Observable Timing Discrepancy

Affected products

As the CNA lists them.

ProductVersions
Red Hat Enterprise Linux 8
package gnutls
unaffected 0:3.6.16-8.el8_9 and later
Other versions: affected
Red Hat Enterprise Linux 8
package gnutls
unaffected 0:3.6.16-8.el8_9 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Extended Update Support
package gnutls
unaffected 0:3.6.16-5.el8_6.2 and later
Other versions: affected
Red Hat Enterprise Linux 8.8 Extended Update Support
package gnutls
unaffected 0:3.6.16-7.el8_8.1 and later
Other versions: affected
Red Hat Enterprise Linux 9
package gnutls
unaffected 0:3.7.6-23.el9_3.3 and later
Other versions: affected
Red Hat Enterprise Linux 9
package gnutls
unaffected 0:3.7.6-23.el9_3.3 and later
Other versions: affected
Red Hat Enterprise Linux 9.2 Extended Update Support
package gnutls
unaffected 0:3.7.6-21.el9_2.1 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/cephcsi-rhel9
unaffected v4.15.0-37 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/mcg-core-rhel9
unaffected v4.15.0-68 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/mcg-operator-bundle
unaffected v4.15.0-158 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/mcg-rhel9-operator
unaffected v4.15.0-39 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/ocs-client-console-rhel9
unaffected v4.15.0-58 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/ocs-client-operator-bundle
unaffected v4.15.0-158 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/ocs-client-rhel9-operator
unaffected v4.15.0-13 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/ocs-metrics-exporter-rhel9
unaffected v4.15.0-81 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/ocs-operator-bundle
unaffected v4.15.0-158 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/ocs-rhel9-operator
unaffected v4.15.0-79 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-cli-rhel9
unaffected v4.15.0-22 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-console-rhel9
unaffected v4.15.0-57 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-cosi-sidecar-rhel9
unaffected v4.15.0-6 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-csi-addons-operator-bundle
unaffected v4.15.0-158 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-csi-addons-rhel9-operator
unaffected v4.15.0-15 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-csi-addons-sidecar-rhel9
unaffected v4.15.0-15 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-multicluster-console-rhel9
unaffected v4.15.0-54 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-multicluster-operator-bundle
unaffected v4.15.0-158 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-multicluster-rhel9-operator
unaffected v4.15.0-10 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-must-gather-rhel9
unaffected v4.15.0-26 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-operator-bundle
unaffected v4.15.0-158 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odf-rhel9-operator
unaffected v4.15.0-19 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odr-cluster-operator-bundle
unaffected v4.15.0-158 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odr-hub-operator-bundle
unaffected v4.15.0-158 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/odr-rhel9-operator
unaffected v4.15.0-21 and later
Other versions: affected
RHODF-4.15-RHEL-9
package odf4/rook-ceph-rhel9-operator
unaffected v4.15.0-103 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/cluster-logging-operator-bundle
unaffected v5.8.6-22 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/cluster-logging-rhel9-operator
unaffected v5.8.6-11 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/elasticsearch6-rhel9
unaffected v6.8.1-407 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/elasticsearch-operator-bundle
unaffected v5.8.6-19 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/elasticsearch-proxy-rhel9
unaffected v1.0.0-479 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/elasticsearch-rhel9-operator
unaffected v5.8.6-7 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/eventrouter-rhel9
unaffected v0.4.0-247 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/fluentd-rhel9
unaffected v5.8.6-5 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/log-file-metric-exporter-rhel9
unaffected v1.1.0-227 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/logging-curator5-rhel9
unaffected v5.8.1-470 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/logging-loki-rhel9
unaffected v2.9.6-14 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/logging-view-plugin-rhel9
unaffected v5.8.6-2 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/loki-operator-bundle
unaffected v5.8.6-24 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/loki-rhel9-operator
unaffected v5.8.6-10 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/lokistack-gateway-rhel9
unaffected v0.1.0-525 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/opa-openshift-rhel9
unaffected v0.1.0-224 and later
Other versions: affected
RHOL-5.8-RHEL-9
package openshift-logging/vector-rhel9
unaffected v0.28.1-56 and later
Other versions: affected
Red Hat Enterprise Linux 6
package gnutls
unknown the record does not list versions
Red Hat Enterprise Linux 7
package gnutls
unknown the record does not list versions

Is my server affected?

Find the installed version of gnutls and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i gnutls
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-5981 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-5981

RHEL, Rocky, Alma, Fedora

rpm -q gnutls
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-5981

Alpine

apk list --installed | grep -i gnutls

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-5981
trivy image --scanners vuln IMAGE | grep CVE-2023-5981

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Other references

Source: the record CVE-2023-5981 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.