Research · Nov 6, 2023 · ZeroDay Catalog
Performance Issues with X9.42 DH Key Generation and Validation
Applications utilizing X9.42 DH key generation and validation functions may face significant performance delays, potentially leading to Denial of Service scenarios.
What changed
Recent findings indicate that generating or validating excessively long X9.42 Diffie-Hellman (DH) keys can result in substantial performance degradation. This issue arises when applications utilize specific functions for key generation and validation.
Functions such as DH_generate_key(), DH_check_pub_key(), DH_check_pub_key_ex(), and EVP_PKEY_public_check() are particularly affected, leading to potential Denial of Service (DoS) conditions.
Who is affected
The performance issues primarily impact applications that rely on the X9.42 DH key generation and validation processes. This includes a wide range of software solutions across various sectors.
Organizations using cryptographic libraries that implement these functions may experience significant slowdowns, especially when handling keys or parameters from untrusted sources.
- Developers using cryptographic libraries that implement X9.42 DH standards.
- Organizations that depend on secure key exchange mechanisms in their applications.
- Service providers offering cryptographic services or APIs utilizing DH key generation.
- Any entity that processes X9.42 DH keys from untrusted sources.
What to do
To mitigate the impact of these performance issues, security operators should review their applications for reliance on the affected DH functions. Implementing checks on key lengths and sources can help prevent potential DoS scenarios.
Consider updating or patching cryptographic libraries to ensure they handle key generation and validation more efficiently.
- Evaluate the use of DH_generate_key() and related functions in your applications.
- Implement input validation to restrict excessively long keys or parameters.
- Monitor application performance and response times to identify potential slowdowns.
- Stay informed about updates from cryptographic library vendors regarding performance improvements.