CVE-2025-65493: Global Openssl Engine Singleton

A globally hardcoded OpenSSL ENGINE instance restricts the application to a single hardware or custom cryptographic module configuration. This structural limitation can lead to failed handshakes or inappropriate cryptographic states when different engines are required. Ensure `ENGINE *` instances are dynamically injected or passed by reference.

Provally CuratedPublic repositoryLowMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2025-65493-global-openssl-engine-singleton --engine opengrep

Description

A globally hardcoded OpenSSL ENGINE instance restricts the application to a single hardware or custom cryptographic module configuration. This structural limitation can lead to failed handshakes or inappropriate cryptographic states when different engines are required. Ensure `ENGINE *` instances are dynamically injected or passed by reference.