---
title: "Timing key-recovery attack on HQC (and BIKE) via rejection sampling in decapsulation"
url: "https://pqt-19a6ffd695e12a.pages.dev/feed/2022-06-08-timing-key-recovery-attack-on-hqc-and-bike-via-r/"
date: "2022-06-08"
classification: "Implementation vulnerability · Demonstrated"
action: "Patch"
affects: ["HQC"]
site: "PQ Tracker, maintained by zkSecurity"
reviewed: "2026-11-25"
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Timing key-recovery attack on HQC (and BIKE) via rejection sampling in decapsulation

2022-06-08 · Implementation vulnerability · Demonstrated · Action: patch

Guo, Hlauschek, Johansson, Lahr, Nilsson and Schroeder showed that the rejection-sampling routine called during re-encryption in HQC decapsulation leaks secret-dependent timing, allowing key recovery with about 866,000 idealized timing-oracle queries at the 128-bit level. The preprint dates from November 2021 and the paper appeared in TCHES 2022(3). NIST IR 8545 notes that HQC later made several implementation changes to avoid timing attacks.

- Affects: [HQC](https://pqt-19a6ffd695e12a.pages.dev/algorithms/hqc/)

## Sources

- [Guo et al.: Don't Reject This: Key-Recovery Timing Attacks Due to Rejection-Sampling in HQC and BIKE (ePrint 2021/1485)](https://eprint.iacr.org/2021/1485)
- [TCHES 2022(3), DOI 10.46586/tches.v2022.i3.223-263](https://doi.org/10.46586/tches.v2022.i3.223-263)
- [NIST IR 8545 (HQC: significant events since Round 3)](https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8545.pdf)

## Related entries

- 2025-04-02 · Reduced security margin · Action: patch · [IND-CCA2 flaw in HQC's February 2025 specification: salt not covered by the FO check](https://pqt-19a6ffd695e12a.pages.dev/feed/2025-04-02-ind-cca2-flaw-in-hqc-s-february-2025-specificati/)
- 2025-03-11 · Selection · [NIST selects HQC as a second KEM; fourth round ends (NIST IR 8545)](https://pqt-19a6ffd695e12a.pages.dev/feed/2025-03-11-nist-selects-hqc-as-a-second-kem-fourth-round-en/)
- 2024-12-06 · Implementation vulnerability · Action: patch · [liboqs HQC decapsulation returned wrong secret for malformed ciphertexts (CVE-2024-54137)](https://pqt-19a6ffd695e12a.pages.dev/feed/2024-12-06-liboqs-hqc-decapsulation-returned-wrong-secret-f/)
