{
  "id": "CVE-2026-41681",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-41681",
  "published_at": "2026-04-24T17:19:15.187Z",
  "title": "rust-openssl: MdCtxRef::digest_final() writes past caller buffer with no length check",
  "vendor": "rust-openssl",
  "product": "rust-openssl",
  "cvss": {
    "score": 8.1,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
  },
  "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.10.39 to before 0.10.78, EVP_DigestFinal() always writes EVP_MD_CTX_size(ctx) to the out buffer. If out is smaller than that, MdCtxRef::digest_final() writes past its end, usually corrupting the stack. This is reachable from safe Rust. This vulnerability is fixed in 0.10.78.",
  "cwe": "CWE-121",
  "cpes": [
    "cpe:2.3:a:rust-openssl_project:rust-openssl:*:*:*:*:*:rust:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.1,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "rust-openssl",
        "product": "rust-openssl",
        "ranges": [
          "\u003e= 0.10.39, \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-ghm9-cr32-g9qj"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/rust-openssl/rust-openssl/pull/2608"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/rust-openssl/rust-openssl/commit/826c3888b77add418b394770e2b2e3a72d9f92fe"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
