{
  "id": "CVE-2026-41676",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-41676",
  "published_at": "2026-04-24T17:16:20.539Z",
  "title": "rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1",
  "vendor": "rust-openssl",
  "product": "rust-openssl",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "rust-openssl provides OpenSSL bindings for the Rust programming language.  From 0.9.27 to before 0.10.78, Deriver::derive (and PkeyCtxRef::derive) sets len = buf.len() and passes it as the in/out length to EVP_PKEY_derive, relying on OpenSSL to honor it. On OpenSSL 1.1.x, X25519, X448, DH and HKDF-extract ignore the incoming *keylen, unconditionally writing the full shared secret (32/56/prime-size bytes). A caller passing a short slice gets a heap/stack overflow from safe code. OpenSSL 3.x providers do check, so this only impacts older OpenSSL. This vulnerability is fixed in 0.10.78.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:a:rust-openssl_project:rust-openssl:*:*:*:*:*:rust:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.2,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "rust-openssl",
        "product": "rust-openssl",
        "ranges": [
          "\u003e= 0.9.27, \u003c 0.10.78"
        ],
        "fixed_in": [
          "0.10.78"
        ]
      }
    ],
    "upgrade": [
      "Upgrade rust-openssl to 0.10.78 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-pqf5-4pqq-29f5"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
