CVE-2022-2068
The c_rehash script allows command injection
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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).
Official description from the CVE record, published by openssl. Copyright © 1999-2026 The MITRE Corporation. See /security/cve/legal for the CVE license. View the record on cve.org
Key data
CVSS 3.1 Critical 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector: Network
The vulnerable component can be reached over a network, possibly from the Internet.
Attack complexity: Low
No special conditions are needed. The attack can be repeated at will.
Privileges required: None
No account or privileges are needed.
User interaction: None
No action from any user is needed.
Scope: Unchanged
The impact stays within the vulnerable component.
Confidentiality impact: High
Serious or total effect on the secrecy of data.
Integrity impact: High
Serious or total effect on the trustworthiness of data.
Availability impact: High
Serious or total effect on availability.
| Metric | Value | What it means |
|---|---|---|
| Attack vector | Network | The vulnerable component can be reached over a network, possibly from the Internet. |
| Attack complexity | Low | No special conditions are needed. The attack can be repeated at will. |
| Privileges required | None | No account or privileges are needed. |
| User interaction | None | No action from any user is needed. |
| Scope | Unchanged | The impact stays within the vulnerable component. |
| Confidentiality impact | High | Serious or total effect on the secrecy of data. |
| Integrity impact | High | Serious or total effect on the trustworthiness of data. |
| Availability impact | High | Serious or total effect on availability. |
CVSS is owned and managed by FIRST.Org, Inc. (FIRST) and is used by permission. Each CVSS score on this site is shown together with its vector string, as published in the CVE record by the source named next to it. Learn more at first.org/cvss.
EPSS
- Score
- 0.96391 (96.4% probability)
- Percentile
- 99.9%
- Scores of
- Nov 10, 2026
- Model
- v2026.06.15
CISA assessment as of Dec 30, 2025
- Exploitation
- Public proof of concept recorded by CISA
- Automatable
- yes
- Technical impact
- total
Weakness (CWE)
- CWE-78Improper Neutralization of Special Elements used in an OS Command
Affected products
OpenSSL
- affected: Fixed in OpenSSL 3.0.4 (Affected 3.0.0,3.0.1,3.0.2,3.0.3)
- affected: Fixed in OpenSSL 1.1.1p (Affected 1.1.1-1.1.1o)
- affected: Fixed in OpenSSL 1.0.2zf (Affected 1.0.2-1.0.2ze)
References
- openssl.org/news/secadv/20220621.txt
- git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=2c…
- git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=96…
- git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=7a…
- DSA-5169 (debian.org)vendor-advisory
- FEDORA-2022-3b7d0abd0b (lists.fedoraproject.org)vendor-advisory
- security.netapp.com/advisory/ntap-20220707-0008
- FEDORA-2022-41890e9e44 (lists.fedoraproject.org)vendor-advisory
- cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf
- gitlab.com/fraf0/cve-2022-1292-re_score-analysis
- seclists.org/fulldisclosure/2024/Nov/0
Timeline
- ID reserved
- Record published
- Record last updated
Look up another CVE
About CubePath
Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 19:50 UTC. Sources and licenses