CVE-2022-1292: The c_rehash script allows command injection

Published May 3, 2022
·
Updated

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

107 affected componentsFixes available
redhat/jbcs-httpd24-openssl<1:1.1.1k-13.el8
1:1.1.1k-13.el8
redhat/jbcs-httpd24-openssl<1:1.1.1k-13.el7
1:1.1.1k-13.el7
redhat/openssl<1:1.1.1k-7.el8_6
1:1.1.1k-7.el8_6
redhat/openssl<1:3.0.1-41.el9_0
1:3.0.1-41.el9_0
redhat/jws5-tomcat-native<0:1.2.31-11.redhat_11.el7
0:1.2.31-11.redhat_11.el7
redhat/jws5-tomcat-native<0:1.2.31-11.redhat_11.el8
0:1.2.31-11.redhat_11.el8
redhat/jws5-tomcat-native<0:1.2.31-11.redhat_11.el9
0:1.2.31-11.redhat_11.el9
OpenSSL OpenSSL>=1.0.2<1.0.2ze
OpenSSL OpenSSL>=1.1.1<1.1.1o
OpenSSL OpenSSL>=3.0.0<3.0.3
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp Active Iq Unified Manager Vsphere
NetApp Active Iq Unified Manager Windows
NetApp Clustered Data ONTAP
NetApp Clustered Data Ontap Antivirus Connector
NetApp OnCommand Insight
NetApp OnCommand Workflow Automation
NetApp Santricity Smi-s Provider
NetApp Smi-s Provider
NetApp Snapcenter
NetApp Snapmanager Hyper-v
NetApp Solidfire\, Enterprise Sds \& Hci Storage Node
NetApp Solidfire \& Hci Management Node
NetApp A700s Firmware
NetApp A700s
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s
NetApp Aff 8300 Firmware
NetApp Aff 8300
NetApp Fas 8300 Firmware
NetApp Fas 8300
NetApp Aff 8700 Firmware
NetApp Aff 8700
NetApp Fas 8700 Firmware
NetApp Fas 8700
NetApp Aff A400 Firmware
NetApp Aff A400
NetApp Fabric-attached Storage A400 Firmware
NetApp Fabric-attached Storage A400
NetApp A250 Firmware
NetApp A250
NetApp Aff 500f Firmware
NetApp Aff 500f
NetApp Fas 500f Firmware
NetApp Fas 500f
Oracle Enterprise Manager Ops Center=12.4.0.0
Oracle MySQL Server>=5.0.0<=5.7.38
Oracle MySQL Server>=8.0.0<=8.0.29
Oracle MySQL Workbench<=8.0.29
Fedoraproject Fedora=35
Fedoraproject Fedora=36
debian/openssl
1.1.1w-0+deb11u11.1.1w-0+deb11u23.0.15-1~deb12u13.0.14-1~deb12u23.5.0-1
All of the following
NetApp A700s Firmware
NetApp A700s
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp Aff 8300 Firmware
NetApp Aff 8300
All of the following
NetApp Fas 8300 Firmware
NetApp Fas 8300
All of the following
NetApp Aff 8700 Firmware
NetApp Aff 8700
All of the following
NetApp Fas 8700 Firmware
NetApp Fas 8700
All of the following
NetApp Aff A400 Firmware
NetApp Aff A400
All of the following
NetApp Fabric-attached Storage A400 Firmware
NetApp Fabric-attached Storage A400
All of the following
NetApp A250 Firmware
NetApp A250
All of the following
NetApp Aff 500f Firmware
NetApp Aff 500f
All of the following
NetApp Fas 500f Firmware
NetApp Fas 500f
redhat/openssl<1.0.2
1.0.2
redhat/openssl<1.1.1
1.1.1
redhat/openssl<3.0.3
3.0.3
Siemens Brownfield Connectivity Gateway<2.15
IBM Watson Studio on Cloud Pak for Data<=4.0
IBM Watson Studio on Cloud Pak for Data<=5.0

Remediation

Information

As mentioned in the upstream security advisory, use of the c_rehash script is considered obsolete and should be replaced by the OpenSSL rehash command line tool.

Event History

May 3, 2022
CVE Published
12:00 AM
CVE Published
via MITRE·03:15 PM
Data Sourced
via MITRE·03:15 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·09:53 PM
DescriptionSeverityAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:04 AM
Description
Oct 14, 2024
Data Sourced
via Ubuntu·02:45 AM
RemedyDescriptionSeverityAffected Software
Aug 28, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-1292?

CVE-2022-1292 has been classified as a critical severity vulnerability.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203