# CVE-2024-54137: liboqs has a correctness error in HQC decapsulation

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2024-12-06T16:00:58.061Z
- Modified: 2026-06-17T08:09:50.410Z
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. A correctness error has been identified in the reference implementation of the HQC key encapsulation mechanism. Due to an indexing error, part of the secret key is incorrectly treated as non-secret data. This results in an incorrect shared secret value being returned when the decapsulation function is called with a malformed ciphertext. This vulnerability is fixed in 0.12.0.

(As written by CVE List.)

## Affected

- open-quantum-safe liboqs: < 0.12.0
- open_quantum_safe liboqs: before 0.12.0
- openquantumsafe liboqs: before 0.12.0

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-gpf4-vrrw-r8v7> (patch, vendor-advisory)
- <https://github.com/open-quantum-safe/liboqs/commit/cce1bfde4e52c524b087b9687020d283fbde0f24> (patch)

## Sources

- CVE List: [CVE-2024-54137](https://www.cve.org/CVERecord?id=CVE-2024-54137), CVE Terms of Use, modified 2024-12-10
- NVD: [CVE-2024-54137](https://nvd.nist.gov/vuln/detail/CVE-2024-54137), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-54137 · Whole record: https://cve.day/CVE-2024-54137.json · Rebuilt by cve.day 2026-11-25T22:58:49.790Z
