The c_rehash script allows command injection
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
- Jun 17, 2026
- EPSS
- 95.4% · 100th percentile
- CWE
- CWE-78
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
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 · 95.4%
CISA SSVC decision
- Exploitation
- proof of concept
- Automatable
- yes
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
Affected systems
| 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
Affected 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 |
| Alpine:v3.13 | openssl | from 1.0.2 · before 0 | 0 |
| Alpine:v3.15 | openssl3 | before 0 | 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: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 |
| Red Hat:enterprise_linux:8::baseos | openssl-perl | before 1:1.1.1k-7.el8_6 | 1:1.1.1k-7.el8_6 |
| Red Hat:enterprise_linux:9::appstream | openssl-debuginfo | before 1:3.0.1-41.el9_0 | 1:3.0.1-41.el9_0 |
+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
- CVE-2016-2108The ASN.1 implementation in OpenSSL before 1.0.1o and 1.0.2 before 1.0.2c allows remote attackers to execute arbitrary code or cause a denia62This week
- CVE-2016-6309statem/statem.c in OpenSSL 1.1.0a does not consider memory-block movement after a realloc call, which allows remote attackers to cause a den60This week
- CVE-2022-3786X.509 Email Address Variable Length Buffer Overflow58Plan
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.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
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).
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
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf
- 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
Vendor advisories and official records. Exploit/PoC links are deliberately left out.