CVE-2022-1292
Executive Summary
The c_rehash script in OpenSSL fails to escape shell metacharacters, allowing attackers to inject and execute arbitrary commands with the script’s privileges on systems where the script runs automatically. The vulnerability is present in OpenSSL 1.0.2‑1.0.2zd, 1.1.1‑1.1.1n, and 3.0.0‑3.0.2, and is mitigated by upgrading to 1.0.2ze, 1.1.1o, or 3.0.3. The script is obsolete and should be replaced by the OpenSSL rehash tool. The CVE is not listed in CISA KEV.
Authoritative CVE Metadata
- CVSS Base Score: 7.3 (HIGH)
- Last Modified: 03-11-26
Original Description
The c_rehash script does not properly sanitise shell metacharacters to prevent command injection. 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.3 (Affected 3.0.0,3.0.1,3.0.2). Fixed in OpenSSL 1.1.1o (Affected 1.1.1-1.1.1n). Fixed in OpenSSL 1.0.2ze (Affected 1.0.2-1.0.2zd).