Skip to content
Heist/ feed
Back to feed
Low

liboqs affected by theoretical design flaw in HQC

Type: advisorySources: OSV

liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. liboqs prior to version 0.13.0 supports the HQC algorithm, an algorithm with a theoretical design flaw which leads to large numbers of malformed ciphertexts sharing the same implicit rejection value. Currently, no concrete attack on the algorithm is known. However, prospective users of HQC must take extra care when using the algorithm in protocols involving key derivation. In particular, HQC does not provide the same security guarantees as Kyber or ML-KEM. There is currently no patch for the HQC flaw available in liboqs, so HQC is disabled by default in liboqs starting from version 0.13.0. OQS will update its implementation after the HQC team releases an updated algorithm specification.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-48946
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 21:03 UTC · Revision 1

Source evidence

liboqs affected by theoretical design flaw in HQC

core-osv · Original source

Published 30 May 2025, 19:21 UTC

liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. liboqs prior to version 0.13.0 supports the HQC algorithm, an algorithm with a theoretical design flaw which leads to large numbers of malformed ciphertexts sharing the same implicit rejection value. Currently, no concrete attack on the algorithm is known. However, prospective users of HQC must take extra care when using the algorithm in protocols involving key derivation. In particular, HQC does not provide the same security guarantees as Kyber or ML-KEM. There is currently no patch for the HQC flaw available in liboqs, so HQC is disabled by default in liboqs starting from version 0.13.0. OQS will update its implementation after the HQC team releases an updated algorithm specification.

osv:CVE-2025-48946
Complete source record
{
  "id": "415f7ec333dd2c29a1e569a83630e0a4b91d71c9a65b39c4bfccb1b436a24590",
  "url": "https://osv.dev/vulnerability/CVE-2025-48946",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "liboqs affected by theoretical design flaw in HQC",
    "summary": "liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. liboqs prior to version 0.13.0 supports the HQC algorithm, an algorithm with a theoretical design flaw which leads to large numbers of malformed ciphertexts sharing the same implicit rejection value. Currently, no concrete attack on the algorithm is known. However, prospective users of HQC must take extra care when using the algorithm in protocols involving key derivation. In particular, HQC does not provide the same security guarantees as Kyber or ML-KEM. There is currently no patch for the HQC flaw available in liboqs, so HQC is disabled by default in liboqs starting from version 0.13.0. OQS will update its implementation after the HQC team releases an updated algorithm specification.",
    "evidence": "osv:CVE-2025-48946",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2025-48946",
      "aliases": [
        "CVE-2025-48946",
        "GHSA-3rxw-4v8q-9gq5"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/open-quantum-safe/liboqs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "21b3f8b0fadbb19e2c6a5df0f165c953ead164e1"
                },
                {
                  "fixed": "a7d698ca9c9d98990647459253183cbe29c550af"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openquantumsafe:liboqs:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.13.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a7d698ca9c9d98990647459253183cbe29c550af"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.12.0",
            "0.12.0-rc1",
            "0.10.0",
            "0.9.0",
            "0.9.0-rc1",
            "0.8.0",
            "0.8.0-rc1",
            "ietf116",
            "0.7.2",
            "0.7.2-rc2",
            "0.7.2-rc1",
            "0.7.1",
            "0.7.1-rc1",
            "0.7.0",
            "0.7.0-rc4",
            "0.7.0-rc3",
            "0.6.0",
            "0.6.0-rc3",
            "0.6.0-rc2",
            "0.6.0-rc1",
            "0.5.0",
            "0.4.0",
            "0.3.0",
            "0.2.0",
            "master-0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-48946.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.476469701Z",
      "provider": "osv",
      "references": [
        "https://durumcrustulum.com/2024/02/24/how-to-hold-kems/#hqc",
        "https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/Wiu4ZQo3fP80",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48946.json",
        "https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-3rxw-4v8q-9gq5",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-48946",
        "https://github.com/open-quantum-safe/liboqs/commit/a7d698ca9c9d98990647459253183cbe29c550af"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-327"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48946.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-48946",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507002,
  "published_at": "2025-05-30T19:21:14.847+00:00"
}