Skip to main content

liboqs EUVDEUVD-2026-118512

| CVE-2026-104254 MEDIUM
Out-of-bounds Read (CWE-125)
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
    Reach untrusted LMS/HSS verifier (AV:N, PR:N)
  2. Delivery
    Submit plausible public key with truncated signature
  3. Exploit
    Trigger out-of-bounds read past signature buffer
  4. Execution
    Read crosses unmapped page
  5. Impact
    Crash verifying process (A:L denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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

Exploitation Conditions

Exploitation requires ALL of: (1) a liboqs build compiled with OQS_ENABLE_SIG_STFL_LMS=ON, which is NOT the default configuration; (2) a caller that invokes OQS_SIG_STFL_verify or the exported OQS_SIG_STFL_alg_lms_verify on LMS or HSS-LMS signatures obtained from an untrusted source; and (3) an attacker-supplied, syntactically plausible public key paired with a truncated signature shorter than the parsed HSS structure implies (as few as 4 bytes to hit the 0.16.0 is_hss_public_key() over-read, or ~12 bytes to hit the bottom-level q/C over-read of up to 32 bytes). No valid signature, no user interaction, and no authentication are needed. Limiting factors that reduce realistic risk: the non-default build flag, the need for the application to actually verify untrusted LMS/HSS input, and the fact that a crash only occurs if the out-of-bounds read reaches an unmapped memory page - otherwise the read is silent with no security impact.

Impact

This is a genuine but moderate-severity denial-of-service issue, not a high-priority emergency. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, base 5.3 MEDIUM) is internally consistent with the advisory: the sole impact is availability (A:L) via a possible verifier crash if the out-of-bounds read crosses into an unmapped page; confidentiality and integrity are rated N because the over-read bytes are consumed only inside an internal hash computation, are never returned to the caller, and cannot cause an invalid signature to be accepted - so despite the 'Information Disclosure' tag and CWE-125, there is no memory-disclosure oracle. The vuln.today decision label is 'this_month', consistent with medium urgency rather than act_now/emergency. No EPSS score and no CISA KEV status were supplied, and there is no confirmed public exploit code, so there is no signal of active or imminent widespread exploitation. The most important risk-reducing fact is that the flaw is reachable ONLY in builds configured with OQS_ENABLE_SIG_STFL_LMS=ON, which the advisory states is not enabled by default, and only in callers that verify LMS/HSS signatures from an untrusted source - this sharply narrows the real-world exposed population below what the network attack vector alone would suggest. Net: treat as a routine-to-prompt patch (within the month) for the subset of deployments that actually enable LMS verification of untrusted input, not as a drop-everything item.

Exploit ScenarioDerived

An application links a liboqs build compiled with OQS_ENABLE_SIG_STFL_LMS=ON and calls OQS_SIG_STFL_verify (or the exported OQS_SIG_STFL_alg_lms_verify) on LMS/HSS signatures received from an untrusted remote party. The attacker sends a syntactically plausible public key together with a deliberately truncated LMS/HSS signature (as few as 4-12 bytes); the parser reads up to 32 bytes (or up to 8 bytes via is_hss_public_key() in 0.16.0) past the end of the caller's buffer, and if that read lands on an unmapped page the verifying process crashes. No valid signature and no authentication are required; no confirmed working public exploit exists, though the fix commit, pull request #2507, and an included truncated-signature test harness are public and make reproduction straightforward.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 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

A heap out-of-bounds read affects liboqs 0.11.0 through 0.16.0 when the library is built with OQS_ENABLE_SIG_STFL_LMS=ON and an application passes an untrusted, truncated LMS or HSS-LMS signature to OQS_SIG_STFL_verify or OQS_SIG_STFL_alg_lms_verify. The parser reads up to 32 bytes past the caller-supplied buffer in all affected versions, and liboqs 0.16.0 additionally over-reads up to 8 bytes at offset 8 via is_hss_public_key() after only a 4-byte length check. The over-read bytes are only fed into an internal hash and never returned, so the supported impact is a possible verifier crash (denial of service) if the read crosses an unmapped page, not memory disclosure or acceptance of invalid signatures. No public exploit code was identified at time of analysis, EPSS is not reported, and the issue is not listed in CISA KEV; exploitation requires the non-default LMS build flag plus a caller that verifies untrusted signatures.

RemediationAI

Vendor-released patch: upgrade to liboqs 0.17.0, which fixes both over-reads by making is_hss_public_key() length-aware, passing signature_len through public_key_levels(), and rejecting bottom-level signatures shorter than 8 + n before any field is copied; the parser-level check also covers callers of the exported generic verify symbol that bypass wrapper validation. The fix commit is df3eb80fe68d2e5db0ecf5d503082cd5699e0859 (pull request #2507), and interim users on the main branch can apply that commit. If upgrading is not immediately possible, the compensating control is to rebuild without OQS_ENABLE_SIG_STFL_LMS=ON, removing LMS/HSS-LMS support entirely, with the trade-off that LMS stateful signatures become unavailable to the application; alternatively, restrict LMS/HSS verification to signatures from trusted sources at the application layer rather than directly from untrusted input, at the cost of losing the untrusted-verification capability that motivated enabling LMS support. Advisory: https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-wh5q-mpc8-67wf

Affected VersionsENISA

liboqs 0.11.0, ≤ 0.16.0

Affected Packages

euvd liboqs no fix

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 flaw is a missing-remaining-length validation (CWE-125) in the LMS/HSS stateful-signature verifier that liboqs vendors from cisco/hash-sigs. In hss_validate_signature_init() in src/sig_stfl/lms/external/hss_verify_inc.c, each level's consumed length is checked against the remaining signature_len, but nothing ensures enough bytes still remain for what follows; the function then unconditionally copies the bottom-level q field (4 bytes at offset 0) and the n-byte LM-OTS randomizer C (32 bytes at offset 8) into the message prefix, so a signature as short as 12 bytes produces an over-read of up to 32 bytes. liboqs 0.16.0 added public-key classification ahead of that walk, and is_hss_public_key() reads 4 bytes at offset 8 guarded only by a signature_len < 4 check, allowing up to 8 bytes of over-read from a 4-byte signature. Neither the generic OQS_SIG_STFL_verify entry point nor the LMS wrappers validated signature_len beforehand, because unlike the per-variant XMSS wrappers the single generic LMS wrapper had no compile-time signature-length constant to compare against. The out-of-bounds bytes are consumed only as hash input, giving no oracle for disclosure and no path to accepting an invalid signature.

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 5.3 MEDIUM

Untrusted signature can arrive over the network with no auth or interaction (AV:N/AC:L/PR:N/UI:N); only impact is a possible verifier crash, so C:N/I:N/A:L, matching the vendor vector.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/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

DescriptionCVE.org

liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. From 0.11.0 through 0.16.0, builds configured with OQS_ENABLE_SIG_STFL_LMS=ON can read beyond a caller-supplied signature buffer when an untrusted truncated LMS or HSS-LMS signature reaches OQS_SIG_STFL_verify or OQS_SIG_STFL_alg_lms_verify. In hss_validate_signature_init() in src/sig_stfl/lms/external/hss_verify_inc.c, consumed-length checks do not ensure that the bottom-level q and C fields remain available, allowing up to 32 bytes to be read past the buffer. In version 0.16.0, is_hss_public_key() also reads at offset 8 after only a four-byte length check, allowing an over-read of up to eight bytes. No valid signature is required, but the public key must be syntactically plausible. The read data is consumed only by an internal hash and is not exposed, so the supported impact is a possible verifier crash and denial of service, not memory disclosure or acceptance of an invalid signature. This issue is scheduled to be fixed in version 0.17.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
emerging PQC library; LMS stateful-signature build flag off by default
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 No
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

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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