{"id":"CVE-2024-37305","state":"PUBLISHED","title":"Buffer overflow in deserialization in oqs-provider","description":"oqs-provider is a provider for the OpenSSL 3 cryptography library that adds support for post-quantum cryptography in TLS, X.509, and S/MIME using post-quantum algorithms from liboqs. Flaws have been identified in the way oqs-provider handles lengths decoded with DECODE_UINT32 at the start of serialized hybrid (traditional + post-quantum) keys and signatures. Unchecked length values are later used for memory reads and writes; malformed input can lead to crashes or information leakage. Handling of plain/non-hybrid PQ key operation is not affected. This issue has been patched in in v0.6.1. All users are advised to upgrade. There are no workarounds for this issue.","publishedAt":"2024-06-17T19:42:22.091Z","updatedAt":"2024-08-02T03:50:56.102Z","severity":{"score":8.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["open-quantum-safe oqs-provider"],"affected":[{"vendor":"open-quantum-safe","product":"oqs-provider","versions":[{"version":"< 0.6.1","status":"affected"}]}],"references":["https://github.com/open-quantum-safe/oqs-provider/security/advisories/GHSA-pqvr-5cr8-v6fx","https://github.com/open-quantum-safe/oqs-provider/pull/416"],"weaknesses":["CWE-120","CWE-130","CWE-190","CWE-680","CWE-805"],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/37xxx/CVE-2024-37305.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-37305","state":"PUBLISHED","datePublished":"2024-06-17T19:42:22.091Z","dateUpdated":"2024-08-02T03:50:56.102Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-06-05T20:10:46.497Z"},"containers":{"cna":{"title":"Buffer overflow in deserialization in oqs-provider ","descriptions":[{"lang":"en","value":"oqs-provider is a provider for the OpenSSL 3 cryptography library that adds support for post-quantum cryptography in TLS, X.509, and S/MIME using post-quantum algorithms from liboqs. Flaws have been identified in the way oqs-provider handles lengths decoded with DECODE_UINT32 at the start of serialized hybrid (traditional + post-quantum) keys and signatures. Unchecked length values are later used for memory reads and writes; malformed input can lead to crashes or information leakage. Handling of plain/non-hybrid PQ key operation is not affected. This issue has been patched in in v0.6.1. All users are advised to upgrade. There are no workarounds for this issue."}],"affected":[{"vendor":"open-quantum-safe","product":"oqs-provider","versions":[{"version":"< 0.6.1","status":"affected"}]}],"references":[{"url":"https://github.com/open-quantum-safe/oqs-provider/security/advisories/GHSA-pqvr-5cr8-v6fx","name":"https://github.com/open-quantum-safe/oqs-provider/security/advisories/GHSA-pqvr-5cr8-v6fx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/open-quantum-safe/oqs-provider/pull/416","name":"https://github.com/open-quantum-safe/oqs-provider/pull/416","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-120","lang":"en","description":"CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-130","lang":"en","description":"CWE-130: Improper Handling of Length Parameter Inconsistency","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-190","lang":"en","description":"CWE-190: Integer Overflow or Wraparound","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-680","lang":"en","description":"CWE-680: Integer Overflow to Buffer Overflow","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-805","lang":"en","description":"CWE-805: Buffer Access with Incorrect Length Value","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-06-17T19:42:22.091Z"},"source":{"advisory":"GHSA-pqvr-5cr8-v6fx","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"open_quantum_safe","product":"oqs_provider","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"0.6.1","versionType":"custom"}],"cpes":["cpe:2.3:a:open_quantum_safe:oqs_provider:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-18T13:31:38.141442Z","id":"CVE-2024-37305","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-18T13:42:29.675Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/open-quantum-safe/oqs-provider/security/advisories/GHSA-pqvr-5cr8-v6fx","name":"https://github.com/open-quantum-safe/oqs-provider/security/advisories/GHSA-pqvr-5cr8-v6fx","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/open-quantum-safe/oqs-provider/pull/416","name":"https://github.com/open-quantum-safe/oqs-provider/pull/416","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:50:56.102Z"}}]}}}