CVE-2022-2068

published 21 Jun 2022 · updated 14 Nov 2026

The c_rehash script allows command injection

10.0CriticalCVSS 9.8EPSS 96%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 96%. Fixed in OpenSSL 1.0.2zf, OpenSSL 1.1.1p, OpenSSL 3.0.4 and 1 more.

In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehash script does not properly sanitise shell metacharacters to prevent command injection were found by code review. When the CVE-2022-1292 was fixed it was not discovered that there are other places in the script where the file names of certificates being hashed were possibly passed to a command executed through the shell. This script is distributed by some operating systems in a manner where it is automatically executed. On such operating systems, an attacker could execute arbitrary commands with the privileges of the script. Use of the c_rehash script is considered obsolete and should be replaced by the OpenSSL rehash command line tool. Fixed in OpenSSL 3.0.4 (Affected 3.0.0,3.0.1,3.0.2,3.0.3). Fixed in OpenSSL 1.1.1p (Affected 1.1.1-1.1.1o). Fixed in OpenSSL 1.0.2zf (Affected 1.0.2-1.0.2ze).

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Broadcomsannav
OpenSSLOpenSSL=Fixed in OpenSSL 3.0.4 (Affected 3.0.0,3.0.1,3.0.2,3.0.3), >=1.0.2 <1.0.2zf, >=1.1.1 <1.1.1p, >=3.0.0 <3.0.4, =Fixed in OpenSSL 1.0.2zf (Affected 1.0.2-1.0.2ze), =Fixed in OpenSSL 1.1.1p (Affected 1.1.1-1.1.1o)1.0.2zf, 1.1.1p, 3.0.4
SiemensSINEC INS=1.0, <1.01.0
debiandebian_linux=10.0, =11.0
fedoraprojectfedora=35, =36
netappbootstrap_os
netappfas_8300_firmware
netappfas_8700_firmware
netappfas_a400_firmware
netapph300s_firmware
netapph410c_firmware
netapph410s_firmware
netapph500s_firmware
netapph610c_firmware
netapph610s_firmware
netapphci_management_node
netappontap_antivirus_connector
netappontap_select_deploy_administration_utility
netappsantricity_smi-s_provider
netappsnapmanager
netappsmi-s_provider
netappsolidfire
netapph615c_firmware
netapph700s_firmware
netappelement_software
netappaff_8300_firmware
netappaff_8700_firmware
netappaff_a400_firmware

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in OpenSSL, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-2068 severity on Zeptric[![CVE-2022-2068](https://zeptric.io/badge/cve/CVE-2022-2068.svg)](https://zeptric.io/cve/CVE-2022-2068)