CVE-2022-2068

The c_rehash script allows command injection

Published Jun 21, 2022 CVSS 3.1 · 9.8 Critical EPSS 96.4% KEV · Not listed
Description
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).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5169-1 openssl security update
Ubuntu USN Ubuntu USN USN-5488-1 OpenSSL vulnerability
Ubuntu USN Ubuntu USN USN-5488-2 OpenSSL vulnerability
Ubuntu USN Ubuntu USN USN-6457-1 Node.js vulnerabilities
Ubuntu USN Ubuntu USN USN-7018-1 OpenSSL vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
openssl
Published
Updated
Nov 4, 2026, 12:22 AM
Reserved
Jun 13, 2022, 12:00 AM
Status
Modified
Published
Jun 21, 2022, 3:15 PM
Modified
Nov 3, 2026, 10:17 PM
Severity
Moderate
Public date
Jun 21, 2022, 12:00 AM