Out-of-bounds read when a PEM password callback returns an oversized length
Historical advisory saved 10 Nov 2026 14:21:29 UTC. The publisher may have updated it since then. Latest advisory.
osv · RUSTSEC-2026-0479
PublishedThe `*_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.
- Source published
- 19 Apr 2026 12:00:00 UTC
- Source modified
- 10 Nov 2026 14:00:02 UTC
- Saved here
- 10 Nov 2026 14:21:29 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.