CVE-2022-1292: The c_rehash script allows command injection
A flaw was found in OpenSSL. The crehash script does not properly sanitize shell meta-characters to prevent command injection. Some operating systems distribute this script in a manner where it is automatically executed. This flaw allows an attacker to execute arbitrary commands with the privileges of the script on these operating systems.
Other sources
The crehash 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 crehash script is considered obsolete and should be replaced by the OpenSSL rehash command line tool.
This issue affects OpenSSL versions 1.0.2, 1.1.1 and 3.0.
OpenSSL 1.0.2 users should upgrade to 1.0.2ze OpenSSL 1.1.1 users should upgrade to 1.1.1o OpenSSL 3.0 users should upgrade to 3.0.3
— Red Hat
The crehash 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 crehash 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).
Affected Software
Remediation
Information
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2022-1292?
CVE-2022-1292 has been classified as a critical severity vulnerability.
How do I fix CVE-2022-1292?
To fix CVE-2022-1292, upgrade to a patched version of the affected software as listed in the remediation section.
What versions of OpenSSL are affected by CVE-2022-1292?
CVE-2022-1292 affects OpenSSL versions prior to 1.1.1k-13.el8, 1.1.1k-13.el7, and certain earlier versions of 1.1.1.
Is there a workaround for CVE-2022-1292?
There is no effective workaround for CVE-2022-1292; applying the required updates is the only solution.
What types of attacks does CVE-2022-1292 expose to?
CVE-2022-1292 exposes systems to command injection attacks allowing attackers to execute arbitrary commands.