Debian Rust Security Tracker 🩺🦀

RUSTSEC-2026-0479: Out-of-bounds read when a PEM password callback returns an oversized length

1 affected
Crate
openssl
Patched Versions
>=0.10.78
Debian Version
0.10.82-1
Debian Bugs
—
Issued
2026-04-19
Aliases
CVE-2026-41677
GHSA-xmgf-hq76-4vx2
Patched:Affected

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.

Affected Packages

openssl 0.10.73 forgejo-cli 0.3.0-9