Advisory

RUSTSEC-2026-0479

Also known as: CVE-2026-41677, GHSA-xmgf-hq76-4vx2

Summary

Out-of-bounds read when a PEM password callback returns an oversized length

Details

The *_from_pem_callback functions, such as EcKey::private_key_from_pem_callback, pass the length returned by the user's password callback to OpenSSL without checking it against the size of the buffer the callback was given. If the callback reports more bytes than the buffer holds, some OpenSSL versions read past the end of the buffer while deriving the decryption key. OpenSSL 3.x is not affected.

0.10.78 treats a returned length larger than the buffer as a failed callback.

Severity

Not rated by the source.

Dates

Published
2026-04-19 12:00 UTC
Modified
2026-11-10 14:00 UTC

Affected packages and fixes

openssl

crates.io · All systems

Affected

  • introduced 0.9.0, fixed 0.10.78 (semver)

Fixed versions

0.10.78

Fix

  • Fixed version 0.10.78
    cargo update -p openssl --precise 0.10.78

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences