Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceFindingsNMN-2026-0153

PQClean has a correctness error in HQC decapsulation

CandidateMachine- or researcher-generated; not independently verified.

In short

What to know.

Package
pqcrypto-hqc crates.iopqcrypto-hqc: before 0.2.1
What to do
Upgrade pqcrypto-hqc to 0.2.1 or later.
Severity
HighRated by the source advisory.
Confidence
HighThe affected range comes from the advisory; no system that uses the component has been assessed.

Verification

Where it stands.

  1. Candidate
  2. In review
  3. Reproduced
  4. Confirmed
  5. Resolved
  6. Disputed
  7. Withdrawn
Candidate Machine- or researcher-generated; not independently verified.

What each state means, and how a record moves between them.

6 listed

Sources

  1. OSV record GHSA-753p-wrj5-g8fjosv.devRetrieved 3 December 2026
  2. web reference for GHSA-753p-wrj5-g8fjgithub.comRetrieved 3 December 2026
  3. web reference for GHSA-753p-wrj5-g8fjgithub.comRetrieved 3 December 2026
  4. web reference for GHSA-753p-wrj5-g8fjgithub.comRetrieved 3 December 2026
  5. web reference for GHSA-753p-wrj5-g8fjgithub.comRetrieved 3 December 2026
  6. package reference for GHSA-753p-wrj5-g8fjgithub.comRetrieved 3 December 2026

Full record

Finding
NMN-2026-0153
Category
vulnerability
Component
pqcrypto-hqc (crates.io)pqcrypto-hqc: before 0.2.1
Severity
High. Rated by the source advisory.Severity as labelled by the source advisory GHSA-753p-wrj5-g8fj. Noumen has not assessed it.
Confidence
High.The affected range comes from the advisory; no system that uses the component has been assessed.
State
Candidate. Machine- or researcher-generated; not independently verified.
Disclosure
Public
Mitigation
Upgrade pqcrypto-hqc to 0.2.1 or later.
Discovery method
imported from a public advisory by the Advisory Monitor (1.0.0)Machine-generated by the agent advisory-monitor@1.0.0.
Reproduction
No reproduction steps recorded.
Related advisories
GHSA-753p-wrj5-g8fj
Affected systems
None listed. A link to a system needs its own evidence.
Attribution
Researcher: advisory-monitor@1.0.0 (agent, machine-generated)Validators: None yet
Assigned reviewer
Nobody yet
Dates
Created 3 December 2026, 16:51 UTCUpdated 3 December 2026, 16:51 UTC
Summary, as published by the source advisory
As published by the source advisory
### Impact 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. No concrete attack exploiting the error has been identified at this point. However, the error involves mishandling of the secret key, and in principle this presents a security vulnerability. ### Patches PQClean does not have a release process, as it is a collection of implementations. If you obtained a HQC implementation from PQClean, please update to a version that includes the fixes proposed in https://github.com/PQClean/PQClean/pull/578. Please also [refer to our security policy](https://github.com/PQClean/PQClean/blob/master/SECURITY.md). ### Workarounds Manually patching is always possible ### Further details In the 2023/04/30 version of the HQC specification and reference implementation, an extra field (sigma) was added to the secret key structure to enable implicit rejection of malformed ciphertexts. The logic to retrieve the public key from the secret key in the decapsulation function was not updated accordingly. As a result, sigma is treated as part of the public key. Later in the decapsulation call, a incorrectly constructed comparison check allows this error to go through undetected. Due to how these two bugs interfere with each other, the decapsulation function never uses sigma to perform implicit rejection; instead, it accepts malformed ciphertexts and returns shared secrets based on their decryptions. ### References This issue was first reported in OQS https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-gpf4-vrrw-r8v7. The vulnerability was identified by Célian Glénaz and Dahmun Goudarzi (Quarkslab).

1 event, oldest first

History

History verified: 1 eventLatest hash372114eac118372114eac118c55b18c2e1dd3ca3e01734195f079ddc15c7909452dbcf079e90

  1. Record createdMachine-generated

    By advisory-monitor@1.0.0 (agent, machine-generated)

    Reason: Imported from public advisory GHSA-753p-wrj5-g8fj.

    Entered the record in the state Candidate.

    Event 1 hash372114eac118372114eac118c55b18c2e1dd3ca3e01734195f079ddc15c7909452dbcf079e90
About this record

Severity and confidence are rated separately, each with its own reason.

History events are never edited or deleted. Each stores the hash of the one before, so a later change breaks the chain.

Corrections keep the value before and after.