Skip to main content

liboqs CVE-2026-47738

| EUVDEUVD-2026-118514 MEDIUM
Access of Uninitialized Pointer (CWE-824)
2026-11-06 GitHub_M
5.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Application instantiates affected NTRU KEM
  2. Exploit
    Code invokes OQS_KEM_encaps_derand
  3. Execution
    Wrapper dereferences uninitialized function pointer
  4. Impact
    Calling process crashes (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Uninitialized pointer prevention
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires BOTH that the application instantiates one of exactly six NTRU KEMs (NTRU-HPS-2048-509, NTRU-HPS-2048-677, NTRU-HPS-4096-821, NTRU-HPS-4096-1229, NTRU-HRSS-701, or NTRU-HRSS-1373) AND that it then calls the OQS_KEM_encaps_derand API on that object; these NTRU schemes do not support derandomized encapsulation, so the encaps_derand function pointer is left uninitialized on a non-zeroed heap allocation. Applications using other KEMs, or that never call encaps_derand, are not affected. The key limiting factor is that the derandomized-encapsulation call is an application code decision rather than attacker-controlled input, so an external attacker typically cannot force this path; versions 0.16.0 and later are fixed. A runtime guard is available to callers (check kem->length_encaps_seed > 0 before calling), as noted in the advisory.

Impact

This is a genuinely low-priority issue despite being network-labeled. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, base 5.3) reflects an availability-only impact - a single calling-process crash - with no confidentiality or integrity effect, consistent with CWE-824 (access of uninitialized pointer). The exploitation status is 'no public exploit identified at time of analysis': no CISA KEV listing is present, no EPSS probability was supplied, and the four references are all remediation artifacts (GHSA advisory, PR #2460, fix commit 80ceff0, and the 0.16.0 release) rather than exploit code. The vuln.today Decision label is 'this_month', not act_now or emergency, which aligns with a non-urgent availability bug. The most important caveat: the AV:N network vector is questionable for this flaw. The crash is triggered only by the application's own code path - it must instantiate one of six NTRU KEMs and then call OQS_KEM_encaps_derand on it - and an external attacker generally cannot force an application to select a specific KEM and invoke a derandomized-encapsulation API it would not otherwise call. This is better understood as a latent library-robustness defect than a remotely weaponizable DoS, which is why the real-world risk is lower than the 5.3 network-vector score suggests. No EPSS or KEV data was provided to contradict or confirm this.

Exploit ScenarioDerived

An application linked against liboqs < 0.16.0 instantiates one of the six affected NTRU KEM variants and calls OQS_KEM_encaps_derand on it; because the NTRU constructor never set the encaps_derand function pointer and the struct was allocated without zero-initialization, the wrapper calls through residual heap data and the process crashes. No public exploit code or PoC is referenced, and the trigger is the application's own API usage rather than attacker-supplied network input. Realistic impact is limited to a denial of service of the calling process.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

Calling OQS_KEM_encaps_derand on any of six NTRU KEM variants in liboqs before 0.16.0 dereferences an uninitialized encaps_derand function pointer and crashes the calling process, producing a denial of service. Only applications that both instantiate one of NTRU-HPS-2048-509, NTRU-HPS-2048-677, NTRU-HPS-4096-821, NTRU-HPS-4096-1229, NTRU-HRSS-701 or NTRU-HRSS-1373 and then invoke the derandomized encapsulation API are exposed, because those schemes do not support derandomized encapsulation and their constructors leave the member unset on a heap allocation that is not zero-initialized. Because the call is an application code decision rather than attacker-controlled input, the independently assessed vector is local and unauthenticated (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) rather than the network vector originally published, and no public exploit has been identified at time of analysis; the flaw is fixed in 0.16.0.

RemediationAI

Upgrade to liboqs 0.16.0, the release that fixes this issue (https://github.com/open-quantum-safe/liboqs/releases/tag/0.16.0); the corresponding source fix is commit 80ceff0207658eba98bae8eb22ca3aa2a364f40b and PR 2460, and the vendor advisory is at https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-jr5q-r9qx-v738. The release adds OQS_ERROR-returning encaps_derand stubs for the six NTRU schemes, NULL-checks the function pointer in each public API wrapper, and zero-initializes all KEM and SIG objects with OQS_MEM_calloc, so the packaging and build must be updated rather than only the calling code. Until an upgrade can be deployed, callers can avoid the crash by not instantiating the six NTRU KEMs for derandomized-encapsulation workflows, by checking kem->length_encaps_seed > 0 before invoking OQS_KEM_encaps_derand as the advisory suggests, or by avoiding OQS_KEM_encaps_derand entirely for those schemes; these guards only protect code paths under the application's control and do not change the library's behavior for other callers of the same process. Because the trigger is an application code decision rather than attacker-supplied input, no network-facing blocking rule or input filter is described by the vendor as a mitigation.

Affected VersionsENISA

liboqs < 0.16.0

Affected Packages

euvd liboqs fix: 0.16.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The issue is CWE-824 (access of an uninitialized pointer) in the OQS_KEM dispatch structure, which carries five function pointers: keypair, keypair_derand, encaps, decaps and encaps_derand. The six NTRU constructors under src/kem/ntru/kem_ntru_*.c assign only four of the five, omitting encaps_derand because the underlying NTRU schemes do not implement derandomized encapsulation. Every KEM object was allocated with OQS_MEM_malloc, which does not zero memory, so the unset member retained residual heap data, and the public wrappers in src/kem/kem.c (including OQS_KEM_encaps_derand) validated only that the OQS_KEM pointer was non-NULL before calling through the function pointer, so the residual value was invoked as a code address. The stored impact is limited to a calling-process crash; no confidentiality or integrity impact is claimed and the trigger is not described as reachable through attacker-supplied input. The upstream fix at commit 80ceff0 (PR 2460) addresses all three contributing factors: it adds explicit OQS_KEM_ntru_<scheme>_encaps_derand stubs returning OQS_ERROR and wires them into the NTRU constructors, it adds a function-pointer NULL check to each public API wrapper as defense in depth, and it converts all KEM and SIG constructors (including the scripts/copy_from_upstream jinja templates) from OQS_MEM_malloc to OQS_MEM_calloc(1, sizeof(OQS_KEM)) so unset members read as NULL. Callers can also detect support at runtime by checking kem->length_encaps_seed > 0 before calling OQS_KEM_encaps_derand.

Know when Liboqs gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 4.0 MEDIUM

Trigger is the application's own API call on a specific KEM, not attacker-controlled network input, so AV:L; crash-only impact gives A:L with C:N/I:N.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Nov 06, 2026 - 22:03 EUVD

DescriptionCVE.org

liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. Prior to 0.16.0, OQS_KEM_encaps_derand can dereference an uninitialized encaps_derand function pointer when called on NTRU-HPS-2048-509, NTRU-HPS-2048-677, NTRU-HPS-4096-821, NTRU-HPS-4096-1229, NTRU-HRSS-701, or NTRU-HRSS-1373. The affected NTRU constructors omit the OQS_KEM.encaps_derand member because those schemes do not support derandomized encapsulation, OQS_KEM objects are allocated without zero initialization, and the wrapper in src/kem/kem.c checks only that the OQS_KEM pointer is non-null before calling through the residual heap value. An application is affected only if it instantiates one of those six NTRU KEMs and invokes OQS_KEM_encaps_derand on it. The supported impact is a calling-process crash and denial of service. This issue is fixed in version 0.16.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Low
experimental PQC library; affected NTRU variants rarely used in production
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy