CVE-2022-3358
Last modified
CVE-2022-3358 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. OpenSSL supports creating a custom cipher via the legacy EVP_CIPHER_meth_new() function and associated function calls. This function was deprecated in OpenSSL 3.0 and application authors are instead encouraged to use the new provider mechanism in order to implement custom ciphers. EPSS estimates a 2.85% chance of exploitation in the next 30 days.
Description
OpenSSL supports creating a custom cipher via the legacy EVP_CIPHER_meth_new() function and associated function calls. This function was deprecated in OpenSSL 3.0 and application authors are instead encouraged to use the new provider mechanism in order to implement custom ciphers. OpenSSL versions 3.0.0 to 3.0.5 incorrectly handle legacy custom ciphers passed to the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() and EVP_CipherInit_ex2() functions (as well as other similarly named encryption and decryption initialisation functions). Instead of using the custom cipher directly it incorrectly tries to fetch an equivalent cipher from the available providers. An equivalent cipher is found based on the NID passed to EVP_CIPHER_meth_new(). This NID is supposed to represent the unique NID for a given cipher. However it is possible for an application to incorrectly pass NID_undef as this value in the call to EVP_CIPHER_meth_new(). When NID_undef is used in this way the OpenSSL encryption/decryption initialisation function will match the NULL cipher as being equivalent and will fetch this from the available providers. This will succeed if the default provider has been loaded (or if a third party provider has been loaded that offers this cipher). Using the NULL cipher means that the plaintext is emitted as the ciphertext. Applications are only affected by this issue if they call EVP_CIPHER_meth_new() using NID_undef and subsequently use it in a call to an encryption/decryption initialisation function. Applications that only use SSL/TLS are not impacted by this issue. Fixed in OpenSSL 3.0.6 (Affected 3.0.0-3.0.5).
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Openssl | Openssl | >= 3.0.0, < 3.0.6 |
References
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0023Third Party Advisory
- https://security.netapp.com/advisory/ntap-20221028-0014/Third Party Advisory
- https://www.openssl.org/news/secadv/20221011.txtVendor Advisory
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0023Third Party Advisory
- https://security.netapp.com/advisory/ntap-20221028-0014/Third Party Advisory
- https://www.openssl.org/news/secadv/20221011.txtVendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-3358?
How severe is CVE-2022-3358?
How do I fix CVE-2022-3358?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-3351An issue has been discovered in GitLab EE affecting all vers…4.3
- CVE-2022-3352Use After Free in GitHub repository vim/vim prior to 9.0.061…7.8
- CVE-2022-3353 A vulnerability exists in the IEC 61850 communication sta…7.5
- CVE-2022-3354A vulnerability has been found in Open5GS up to 2.4.10 and c…7.5
- CVE-2022-3355Cross-site Scripting (XSS) - Stored in GitHub repository inv…5.4
- CVE-2022-3357The Smart Slider 3 WordPress plugin before 3.5.1.11 unserial…8.8
- CVE-2022-3359The Shortcodes and extra features for Phlox theme WordPress …8.8
- CVE-2022-3360The LearnPress WordPress plugin before 4.1.7.2 unserialises …8.1
- CVE-2022-3361The Ultimate Member plugin for WordPress is vulnerable to di…4.3
- CVE-2022-3362Insufficient Session Expiration in GitHub repository ikus060…9.8
- CVE-2022-3363Business Logic Errors in GitHub repository ikus060/rdiffweb …9.8
- CVE-2022-33631Microsoft Excel Security Feature Bypass Vulnerability7.3
Are you affected by CVE-2022-3358?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
