Security Resilience

CVE-2023-5981

Gnutls ≤ 3.8.2

Published
28 November 2023
Modified
05 November 2026
Patch / advisory
CVSS Score v3.1 5.9
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.014 73th percentile
Risk Priority 49 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2023-5981 is a medium-severity Observable Timing Discrepancy (CWE-208) vulnerability in Gnutls. Its CVSS base score is 5.9 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique File and Directory Discovery (T1083); ranked in the top 27% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

EU & UK References

Vulnerability Data

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1083 File and Directory Discovery Discovery
Adversaries may enumerate files and directories or may search in specific locations of a host or network share for certain information within a file system.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
T1589 Gather Victim Identity Information Reconnaissance
Adversaries may gather information about the victim's identity that can be used during targeting.
T1592 Gather Victim Host Information Reconnaissance
Adversaries may gather information about the victim's hosts that can be used during targeting.
T1046 Network Service Discovery Discovery
Adversaries may attempt to get a listing of services running on remote hosts and local network infrastructure devices, including those that may be vulnerable to remote software exploitation.
T1087 Account Discovery Discovery
Adversaries may attempt to get a listing of valid accounts, usernames, or email addresses on a system or within a compromised environment.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-0361Same product: Gnu Gnutls
CVE-2024-0553Same product: Gnu Gnutls
CVE-2024-56738Same vendor: Gnu
CVE-2024-0567Same product: Gnu Gnutls
CVE-2026-23519Shared CWE-203, CWE-208
CVE-2023-40021Shared CWE-203, CWE-208
CVE-2024-0202Shared CWE-203, CWE-208
CVE-2023-1538Shared CWE-203, CWE-208
CVE-2025-9031Shared CWE-203, CWE-208
CVE-2026-45410Shared CWE-203, CWE-208

Affected Assets

debian
debian linux
10.0
gnu
gnutls
≤ 3.8.2
redhat
linux
8.0, 9.0
fedoraproject
fedora
37, 38

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 1 hardening rule · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)
  • V11.2.4

Likely Mitigating Controls

Our mappings. Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-203 CWE-208

Misdirection can normalize or falsify responses to eliminate observable discrepancies that aid reconnaissance.

addresses: CWE-208 CWE-203

Observable timing discrepancies are a primary mechanism for constructing covert timing channels; analysis identifies and bounds them, limiting exploitation.

addresses: CWE-203

Prevents attackers from using observable differences in error responses to infer internal system details or state.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require constant-time implementations that eliminate observable timing discrepancies.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

prevents

Training developers about constant-time comparison and timing side-channels reduces some instances of CWE-208, but the weakness typically arises from natural coding habits (early-exit loops, String.equals) rather than deliberate choices, so education moves a minority of cases and the remainder is bounded by the subtlety of the issue and library/framework defaults the developer never sees.

prevents

A.8.28 mandates secure coding practices specific to programming languages and prohibits insecure design techniques, which can include constant-time comparison guidance, but the clause does not specifically address timing side channels and depends on developer awareness of this subtle weakness class.

finds

A.8.29's SOURCE reach (code review, static analysis) catches obvious non-constant-time comparisons and early-exit loops in security-sensitive code, and its RUNTIME reach (penetration testing) can surface some timing discrepancies under focused timing analysis, but many timing side channels are too subtle for standard code review, evade static-analysis pattern matching, and require specialised statistical timing measurement that ordinary pen testing does not perform — a nameable remainder that keeps the grade at `partial`.

prevents

A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25–8.29), so it reduces timing side-channel weaknesses in outsourced code the way those practices do; the ceiling is `partial` because timing discrepancies are subtle, require specialized constant-time knowledge, and depend on the supplier's implementation rigour.

blocks

A.8.5 items (c) and (d) directly address timing-based information disclosure during log-on — not indicating which part of the data is correct/incorrect, and validating log-on information only on completion of all input — which blocks the byte-by-byte password comparison and differential-error timing attacks documented in CWE-208's observed examples; however, the clause does not reach timing discrepancies in cryptographic operations (HMAC comparison, padding checks) or other authentication-related timing side channels beyond the log-on procedure itself.

finds

A.8.8's reach is DISCLOSURE — it finds CWE-208 only where a vendor has published a CVE for a timing discrepancy in software present in the asset inventory and a scanner flags it. Several CWE-208 instances do surface as CVEs (CVE-2019-10071, CVE-2014-0984, CVE-2003-0078, etc.), so the class commonly discloses, but most timing discrepancies in custom or unexamined code are never published, capping the grade at `partial` under the disclosure-reach ceiling.

References