CVE-2026-46344
JSON

5.3medium

liboqs: Heap-buffer-overflow in XMSS verification path via OID-controlled parameter mismatch (xmss_commons.c:194)

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.30% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. Prior to 0.16.0, an out-of-bounds read has been identified in the XMSS and XMSS^MT stateful signature verification code. When the verification function is called with a correctly-sized signature buffer for the declared algorithm but a public key whose OID bytes (pk[0..3]) reference a different XMSS parameter set with a larger sig_bytes, the implementation re-parses the OID from the public key inside xmss_sign_open / xmssmt_sign_open and uses the resulting (larger) sig_bytes to index the caller-supplied signature buffer. As with CVE-2026-44518, the out-of-bounds bytes are consumed only as input to an internal hash computation and are not returned to the caller, so no oracle exists to leak their contents to an attacker. The primary observable effect is a possible crash (denial of service) of the verifying process if the read crosses into an unmapped memory page. This vulnerability is fixed in 0.16.0.

Affected

Product or packageVersionsReported by
open-quantum-safe liboqs< 0.16.0CVE List
openquantumsafe liboqsup to 0.15.0NVD

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. Prior to 0.16.0, an out-of-bounds read has been identified in the XMSS and XMSS^MT stateful signature verification code. When the verification function is called with a correctly-sized signature buffer for the declared algorithm but a public key whose OID bytes (pk[0..3]) reference a different XMSS parameter set with a larger sig_bytes, the implementation re-parses the OID from the public key inside xmss_sign_open / xmssmt_sign_open and uses the resulting (larger) sig_bytes to index the caller-supplied signature buffer. As with CVE-2026-44518, the out-of-bounds bytes are consumed only as input to an internal hash computation and are not returned to the caller, so no oracle exists to leak their contents to an attacker. The primary observable effect is a possible crash (denial of service) of the verifying process if the read crosses into an unmapped memory page. This vulnerability is fixed in 0.16.0.

NVD (es)

liboqs es una biblioteca criptográfica en lenguaje C que proporciona implementaciones de algoritmos de criptografía postcuántica. Antes de la versión 0.16.0, se ha identificado una lectura fuera de límites en el código de verificación de firma con estado de XMSS y XMSS^MT. Cuando se llama a la función de verificación con un búfer de firma de tamaño correcto para el algoritmo declarado pero una clave pública cuyos bytes OID (pk[0..3]) hacen referencia a un conjunto de parámetros XMSS diferente con un sig_bytes mayor, la implementación vuelve a analizar el OID de la clave pública dentro de xmss_sign_open / xmssmt_sign_open y utiliza el sig_bytes resultante (mayor) para indexar el búfer de firma proporcionado por el llamador. Al igual que con CVE-2026-44518, los bytes fuera de límites se consumen solo como entrada para un cálculo de hash interno y no se devuelven al llamador, por lo que no existe un oráculo para filtrar su contenido a un atacante. El efecto observable principal es un posible fallo (denegación de servicio) del proceso de verificación si la lectura cruza a una página de memoria no mapeada. Esta vulnerabilidad se corrige en la versión 0.16.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-46344 changed 2026-05-29CVE Terms of Use
NVDCVE-2026-46344 changed 2026-07-22Public domain