Skip to content

Fix GH-19428: openssl_pkey_derive segfaults for DH with low key_length #19431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

bukka
Copy link
Member

@bukka bukka commented Aug 9, 2025

This happens only for OpenSSL 1.1.1 because key_length is ignored for DH. It means that the provided string is overwritten with longer buffer.

… key_length

This happens only for OpenSSL 1.1.1 because key_length is ignored for
DH. It means that the provided string is overwritten with longer buffer.
@bukka
Copy link
Member Author

bukka commented Aug 9, 2025

Merged via 9e2aa65

@bukka bukka closed this Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openssl_pkey_derive segfaults for DH derive with low key_length param
1 participant