Skip to content
Noroxi
CVE-2022-2068· NVD / CVE Program· CNA openssl

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).

HighCVSS 7.3 · v3.1—No exploit Fix available
Published
Jun 21, 2022
Updated
Jun 17, 2026
EPSS
95.4% · 100th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

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

VendorProduct
opensslopenssl
debiandebian linux
fedoraprojectfedora
siemenssinec ins
netappelement software
netapphci management node
netappontap antivirus connector
netappontap select deploy administration utility
netappsantricity smi-s provider
netappsmi-s provider
netappsnapmanager
netappsolidfire

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.

EcosystemPackageAffected rangeFix
AlmaLinux:8opensslbefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
AlmaLinux:8openssl-develbefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
AlmaLinux:8openssl-libsbefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
AlmaLinux:8openssl-perlbefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
AlmaLinux:9opensslbefore 1:3.0.1-41.el9_01:3.0.1-41.el9_0
AlmaLinux:9openssl-develbefore 1:3.0.1-41.el9_01:3.0.1-41.el9_0
AlmaLinux:9openssl-libsbefore 1:3.0.1-41.el9_01:3.0.1-41.el9_0
AlmaLinux:9openssl-perlbefore 1:3.0.1-41.el9_01:3.0.1-41.el9_0
Alpine:v3.13opensslfrom 1.0.2 · before 00
Alpine:v3.15openssl3before 00
Debian:10opensslbefore 1.1.1n-0+deb10u31.1.1n-0+deb10u3
Debian:11opensslbefore 1.1.1n-0+deb11u31.1.1n-0+deb11u3
Debian:12opensslbefore 3.0.4-13.0.4-1
openSUSE:Tumbleweedgrypebefore 0.92.1-1.10.92.1-1.1
openSUSE:Tumbleweedopenssl-1_0_0before 1.0.2u-9.11.0.2u-9.1
openSUSE:Tumbleweedopenssl-1_1before 1.1.1p-1.11.1.1p-1.1
Red Hat:enterprise_linux:8::baseosopensslbefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
Red Hat:enterprise_linux:8::baseosopenssl-debuginfobefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
Red Hat:enterprise_linux:8::baseosopenssl-debugsourcebefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
Red Hat:enterprise_linux:8::baseosopenssl-develbefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
Red Hat:enterprise_linux:8::baseosopenssl-libsbefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
Red Hat:enterprise_linux:8::baseosopenssl-libs-debuginfobefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
Red Hat:enterprise_linux:8::baseosopenssl-perlbefore 1:1.1.1k-7.el8_61:1.1.1k-7.el8_6
Red Hat:enterprise_linux:9::appstreamopenssl-debuginfobefore 1:3.0.1-41.el9_01:3.0.1-41.el9_0

+96

Other 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 remKEV
    90Now
  • CVE-2021-3711SM2 Decryption Buffer Overflow
    65This 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 denia
    62This 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 den
    60This week
  • CVE-2022-3786X.509 Email Address Variable Length Buffer Overflow
    58Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:openssl1:1.1.1k-7.el8_6 · AlmaLinux:8Package registry (OSV)
almalinux:openssl-devel1:1.1.1k-7.el8_6 · AlmaLinux:8Package registry (OSV)
almalinux:openssl-libs1:1.1.1k-7.el8_6 · AlmaLinux:8Package registry (OSV)
almalinux:openssl-perl1:1.1.1k-7.el8_6 · AlmaLinux:8Package registry (OSV)
alpine:openssl0 · Alpine:v3.13Package registry (OSV)
alpine:openssl30 · Alpine:v3.15Package registry (OSV)
debian:openssl3.0.4-1 · Debian:12Package registry (OSV)
opensuse:grype0.92.1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:openssl-1_0_01.0.2p-150000.3.56.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:openssl-1_11.1.1d-150200.11.48.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:openssl-33.0.1-150400.4.7.1 · openSUSE:Leap 15.4Package registry (OSV)
red hat:jbcs-httpd24-openssl1:1.1.1k-13.el7jbcs · Red Hat:jboss_core_services:1::el7Package registry (OSV)
red hat:jbcs-httpd24-openssl-debuginfo1:1.1.1k-13.el7jbcs · Red Hat:jboss_core_services:1::el7Package registry (OSV)
red hat:jbcs-httpd24-openssl-devel1:1.1.1k-13.el7jbcs · Red Hat:jboss_core_services:1::el7Package registry (OSV)
red hat:jbcs-httpd24-openssl-libs1:1.1.1k-13.el7jbcs · Red Hat:jboss_core_services:1::el7Package registry (OSV)
red hat:jbcs-httpd24-openssl-perl1:1.1.1k-13.el7jbcs · Red Hat:jboss_core_services:1::el7Package registry (OSV)
red hat:openssl1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-debuginfo1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-debugsource1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-devel1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-libs1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-libs-debuginfo1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:openssl-perl1:1.1.1k-7.el8_6 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
rocky linux:openssl1:1.1.1k-7.el8_6 · Rocky Linux:8Package registry (OSV)
suse:compat-openssl0980.9.8j-106.36.1 · SUSE:Linux Enterprise Module for Legacy 12Package registry (OSV)
suse:openssl1.0.2j-60.83.1 · SUSE:HPE Helion OpenStack 8Package registry (OSV)
suse:openssl-1_0_01.0.2p-150000.3.56.1 · SUSE:Linux Enterprise Module for Legacy 15 SP3Package registry (OSV)
suse:openssl-1_0_01.0.2p-3.56.1 · SUSE:OpenStack Cloud 9Package registry (OSV)
suse:openssl-1_11.1.0i-150100.14.33.1 · SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSPackage registry (OSV)
suse:openssl-1_11.1.1d-150200.11.48.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3Package 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.

EPSS, last 120 days

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.

Finders, 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

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.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const host = req.body.host;exec("ping -c 1 " + host, onResult);

Fixed

ts
const host = req.body.host;if (!/^[a-z0-9.-]{1,253}$/i.test(host)) return res.sendStatus(400);execFile("ping", ["-c", "1", host], onResult);

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 help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records