From 14cf939769373f9aae76e6a7971dfafb19a7998c Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 21:49:11 +0000 Subject: [PATCH] Publish GHSA-753p-wrj5-g8fj --- .../GHSA-753p-wrj5-g8fj.json | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 advisories/github-reviewed/2024/12/GHSA-753p-wrj5-g8fj/GHSA-753p-wrj5-g8fj.json diff --git a/advisories/github-reviewed/2024/12/GHSA-753p-wrj5-g8fj/GHSA-753p-wrj5-g8fj.json b/advisories/github-reviewed/2024/12/GHSA-753p-wrj5-g8fj/GHSA-753p-wrj5-g8fj.json new file mode 100644 index 00000000000..c9b30c3a55b --- /dev/null +++ b/advisories/github-reviewed/2024/12/GHSA-753p-wrj5-g8fj/GHSA-753p-wrj5-g8fj.json @@ -0,0 +1,63 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-753p-wrj5-g8fj", + "modified": "2024-12-11T21:48:32Z", + "published": "2024-12-11T21:47:37Z", + "aliases": [], + "summary": "PQClean has a correctness error in HQC decapsulation", + "details": "### Impact\n\nA 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.\n\nNo 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.\n\n### Patches\n\nPQClean 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. \n\nPlease also [refer to our security policy](https://github.com/PQClean/PQClean/blob/master/SECURITY.md).\n\n### Workarounds\n\nManually patching is always possible\n\n### Further details\n\nIn 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.\n\n### References\n\nThis 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).\n", + "severity": [], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "pqcrypto-hqc" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.2.1" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/PQClean/PQClean/security/advisories/GHSA-753p-wrj5-g8fj" + }, + { + "type": "WEB", + "url": "https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-gpf4-vrrw-r8v7" + }, + { + "type": "WEB", + "url": "https://github.com/PQClean/PQClean/pull/578" + }, + { + "type": "WEB", + "url": "https://github.com/rustpq/pqcrypto/commit/0c07fa8badbf44f67d3ff1571df31ca54e5228c0" + }, + { + "type": "PACKAGE", + "url": "https://github.com/PQClean/PQClean" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-1240", + "CWE-200" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2024-12-11T21:47:37Z", + "nvd_published_at": null + } +} \ No newline at end of file