CVE-2022-1292: The c_rehash script allows command injection
CVE-2022-1292 affects 70 listed versions of Oracle MySQL in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Oracle MySQL
70 of 221 listed versions are affected. No fixed release is named. The newest release, 26.10.0, is not affected.
5.7.38 5.7.37 5.7.36 5.7.35 5.7.34 5.7.33 5.7.32 5.7.31 5.7.30 5.6.51 5.6.50 5.6.49 5.6.48 5.6.47 5.6.46 5.6.45 5.6.44 5.6.43 5.6.42 5.6.41 5.6.40 5.6.39 5.6.38 5.6.37 5.5.63 5.5.62 5.5.61 5.5.60 5.5.59 5.5.58 5.5.57 5.5.56 5.5.55 5.5.54 5.5.53 5.5.52 5.5.51 5.5.50 5.5.49 5.3.13 5.1.73 5.1.72 5.1.71 5.1.70 5.1.69 5.1.68 5.1.67 5.1.66 5.1.65 5.1.64 5.1.63 5.1.62 5.1.61 5.1.60 5.1.59 5.0.96 5.0.94 5.0.93 5.0.92 5.0.91 and 10 more
What it is
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).
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H (NVD)
Published by OpenSSL on 3 May 2022. Last changed 3 November 2026.
Sources
Check one version you run: look CVE-2022-1292 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.