CVE-2022-2068: The c_rehash script allows command injection
Noroxi assessment
Priority: Plan (action score 58/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 96.3% (FIRST EPSS); higher than 99.8% of all records.
- Someone with local access to the system can trigger it. A low-privileged account is enough. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- According to CISA the attack is automatable: targets can be found by mass scanning.
- Fixed version: openssl (AlmaLinux:8) 1:1.1.1k-7.el8_6; openssl-devel (AlmaLinux:8) 1:1.1.1k-7.el8_6; openssl-libs (AlmaLinux:8) 1:1.1.1k-7.el8_6.
- Severity is disputed: the assigning authority (CNA) scores it 9.8, NVD 7.3.
- Mentioned 4 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Add it to your regular patch cycle. Upgrade to openssl (AlmaLinux:8) 1:1.1.1k-7.el8_6; openssl-devel (AlmaLinux:8) 1:1.1.1k-7.el8_6; openssl-libs (AlmaLinux:8) 1:1.1.1k-7.el8_6 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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).
- BDU:2022-04039
- ALSA-2022:5818
- ALSA-2022:6224
- DSA-5169-1
- openSUSE-SU-2024:12159-1
- openSUSE-SU-2024:12178-1
- openSUSE-SU-2025:15136-1
- RHSA-2022:5818
- RHSA-2022:6224
- RHSA-2022:8840
- RHSA-2022:8917
- RHSA-2023:5931
- RHSA-2023:5979
- RHSA-2023:5980
- RHSA-2023:5982
- RHSA-2023:6818
- RLSA-2022:5818
- SUSE-SU-2022:2179-1
- SUSE-SU-2022:2180-1
- SUSE-SU-2022:2181-1
- Published
- Jun 21, 2022
- Updated
- Oct 14, 2026
- EPSS
- 96.3% · 99th percentile
- CWE
- CWE-78
Report tools
Action score
58
Plan
Add it to your regular patch cycle.
- CVSS
- 29 / 40 · 7.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 29 / 30 · 96.3%
CISA SSVC decision
- Exploitation
- proof of concept
- Automatable
- yes
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 7.3
- CNA · openssl
- 9.8
- 2.5 point gap
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| openssl | openssl | cpe:2.3:a:openssl:openssl |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| siemens | sinec ins | cpe:2.3:a:siemens:sinec_ins |
| netapp | element software | cpe:2.3:a:netapp:element_software |
| netapp | hci management node | cpe:2.3:a:netapp:hci_management_node |
| netapp | ontap antivirus connector | cpe:2.3:a:netapp:ontap_antivirus_connector |
| netapp | ontap select deploy administration utility | cpe:2.3:a:netapp:ontap_select_deploy_administration_utility |
| netapp | santricity smi-s provider | cpe:2.3:a:netapp:santricity_smi-s_provider |
| netapp | smi-s provider | cpe:2.3:a:netapp:smi-s_provider |
| netapp | snapmanager | cpe:2.3:a:netapp:snapmanager |
| netapp | solidfire | cpe:2.3:a:netapp:solidfire |
and 31 more
Check your server's TLS configuration
The OpenSSL version can't be seen from outside; the free SSL checker tests your certificate, enabled TLS versions and weak ciphers. Confirm the version on your server with the package manager.
Run the SSL checkAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- broadcom sannavall versions
- debian debian linux10.0
- debian debian linux11.0
- fedoraproject fedora35
- fedoraproject fedora36
- netapp aff 8300 firmwareall versions
- netapp aff 8700 firmwareall versions
- netapp aff a400 firmwareall versions
- netapp bootstrap osall versions
- netapp element softwareall versions
- netapp fas 8300 firmwareall versions
- netapp fas 8700 firmwareall versions
- netapp fas a400 firmwareall versions
- netapp h300s firmwareall versions
- netapp h410c firmwareall versions
- netapp h410s firmwareall versions
- netapp h500s firmwareall versions
- netapp h610c firmwareall versions
- netapp h610s firmwareall versions
- netapp h615c firmwareall versions
Versions reported by the vendor
Affected version ranges reported by the assigning authority (openssl). Independent of NVD's CPE analysis and usually ahead of it.
OpenSSL OpenSSL
- 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)affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | openssl | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
| AlmaLinux:8 | openssl-devel | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
| AlmaLinux:8 | openssl-libs | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
| AlmaLinux:8 | openssl-perl | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
| AlmaLinux:9 | openssl | before 1:3.0.1-41.el9_0 | 1:3.0.1-41.el9_0 |
| AlmaLinux:9 | openssl-devel | before 1:3.0.1-41.el9_0 | 1:3.0.1-41.el9_0 |
| AlmaLinux:9 | openssl-libs | before 1:3.0.1-41.el9_0 | 1:3.0.1-41.el9_0 |
| AlmaLinux:9 | openssl-perl | before 1:3.0.1-41.el9_0 | 1:3.0.1-41.el9_0 |
| Debian:10 | openssl | before 1.1.1n-0+deb10u3 | 1.1.1n-0+deb10u3 |
| Debian:11 | openssl | before 1.1.1n-0+deb11u3 | 1.1.1n-0+deb11u3 |
| Debian:12 | openssl | before 3.0.4-1 | 3.0.4-1 |
| openSUSE:Leap 15.3 | openssl-1_0_0 | before 1.0.2p-150000.3.56.1 | 1.0.2p-150000.3.56.1 |
| openSUSE:Leap 15.3 | openssl-1_1 | before 1.1.1d-150200.11.48.1 | 1.1.1d-150200.11.48.1 |
| openSUSE:Leap 15.4 | openssl-1_1 | before 1.1.1l-150400.7.7.1 | 1.1.1l-150400.7.7.1 |
| openSUSE:Leap 15.4 | openssl-3 | before 3.0.1-150400.4.7.1 | 3.0.1-150400.4.7.1 |
| openSUSE:Tumbleweed | grype | before 0.92.1-1.1 | 0.92.1-1.1 |
| openSUSE:Tumbleweed | openssl-1_0_0 | before 1.0.2u-9.1 | 1.0.2u-9.1 |
| openSUSE:Tumbleweed | openssl-1_1 | before 1.1.1p-1.1 | 1.1.1p-1.1 |
| Red Hat:enterprise_linux:8::baseos | openssl | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
| Red Hat:enterprise_linux:8::baseos | openssl-debuginfo | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
| Red Hat:enterprise_linux:8::baseos | openssl-debugsource | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
| Red Hat:enterprise_linux:8::baseos | openssl-devel | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
| Red Hat:enterprise_linux:8::baseos | openssl-libs | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
| Red Hat:enterprise_linux:8::baseos | openssl-libs-debuginfo | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
+96
Same product
openssl: all recordsOther highest-scoring records for the same primary product.
- CVE-2014-0160The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packets, which allows remKEV90Now
- CVE-2021-3711SM2 Decryption Buffer Overflow65This week
- CVE-2003-0545Double free vulnerability in OpenSSL 0.9.7 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code 65This week
Published before and after this one in the same product
- ← EarlierCVE-2022-1434May 3, 2022 · Incorrect MAC key used in the RC4-MD5 ciphersuite23Monitor
- ← EarlierCVE-2022-1473May 3, 2022 · Resource leakage when decoding certificates and keys31Monitor
- Later →CVE-2022-2274Jul 1, 2022 · RSA implementation bug in AVX512IFMA instructions53Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:openssl | 1:1.1.1k-7.el8_6 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:openssl-devel | 1:1.1.1k-7.el8_6 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:openssl-libs | 1:1.1.1k-7.el8_6 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:openssl-perl | 1:1.1.1k-7.el8_6 · AlmaLinux:8 | Package registry (OSV) |
| alpine:openssl | 0 · Alpine:v3.13 | Package registry (OSV) |
| alpine:openssl3 | 0 · Alpine:v3.15 | Package registry (OSV) |
| debian:openssl | 3.0.4-1 · Debian:12 | Package registry (OSV) |
| opensuse:grype | 0.92.1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:openssl-1_0_0 | 1.0.2p-150000.3.56.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:openssl-1_1 | 1.1.1d-150200.11.48.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:openssl-3 | 3.0.1-150400.4.7.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| red hat:jbcs-httpd24-openssl | 1:1.1.1k-13.el7jbcs · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-openssl-debuginfo | 1:1.1.1k-13.el7jbcs · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-openssl-devel | 1:1.1.1k-13.el7jbcs · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-openssl-libs | 1:1.1.1k-13.el7jbcs · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-openssl-perl | 1:1.1.1k-13.el7jbcs · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:openssl | 1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-debuginfo | 1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-debugsource | 1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-devel | 1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-libs | 1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-libs-debuginfo | 1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-perl | 1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| rocky linux:openssl | 1:1.1.1k-7.el8_6 · Rocky Linux:8 | Package registry (OSV) |
| suse:compat-openssl098 | 0.9.8j-106.36.1 · SUSE:Linux Enterprise Module for Legacy 12 | Package registry (OSV) |
| suse:openssl | 1.0.2j-60.83.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:openssl-1_0_0 | 1.0.2p-150000.3.56.1 · SUSE:Linux Enterprise Module for Legacy 15 SP3 | Package registry (OSV) |
| suse:openssl-1_0_0 | 1.0.2p-3.56.1 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:openssl-1_1 | 1.1.0i-150100.14.33.1 · SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | Package registry (OSV) |
| suse:openssl-1_1 | 1.1.1d-150200.11.48.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
+1
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0574 · Aug 31, 2022(RedHat Güvenlik Güncellemesi)
- TR-22-0552 · Aug 15, 2022(RedHat Güvenlik Güncellemesi)
- TR-22-0541 · Aug 10, 2022(RedHat Güvenlik Güncellemesi)
- TR-22-0526 · Aug 4, 2022(RedHat Güvenlik Güncellemesi)
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
nvd-primary
Root cause
User input is inserted as text into a shell command. The shell may interpret special characters in the input as part of the command.
The bug in code
The whole CWE-78 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const host = req.body.host;
exec("ping -c 1 " + host, onResult);Fixed
const host = req.body.host;
if (!/^[a-z0-9.-]{1,253}$/i.test(host)) return res.sendStatus(400);
execFile("ping", ["-c", "1", host], onResult);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Command DelimitersCAPEC-15likelihood: High · High
- Exploiting Multiple Input Interpretation LayersCAPEC-43likelihood: Medium · High
- Argument InjectionCAPEC-6likelihood: High · High
- OS Command InjectionCAPEC-88likelihood: High · High
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (14 more)Show less
- git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=2c9c35870601b4a44d86ddbf512b38df38285cfa
- git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=7a9c027159fe9e1bbc2cd38a8a2914bff0d5abd9
- git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=9639817dac8bbbaa64d09efad7464ccc405527c7
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6WZZBKUHQFGSKGNXXKICSRPL7AMVW5M5/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3ZZCZLH7XA/
- security.netapp.com/advisory/ntap-20220707-0008/
- www.debian.org/security/2022/dsa-5169
- www.openssl.org/news/secadv/20220621.txt
- seclists.org/fulldisclosure/2024/Nov/0
- gitlab.com/fraf0/cve-2022-1292-re_score-analysis
- cert-portal.siemens.com/productcert/html/ssa-146325.html
- cert-portal.siemens.com/productcert/html/ssa-332410.html
- cert-portal.siemens.com/productcert/html/ssa-398330.html
- cert-portal.siemens.com/productcert/html/ssa-794697.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.