CubePath

CVE-2022-2068

The c_rehash script allows command injection

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

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

Score published by CISA-ADP in the CVE record.

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.

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

Exploit Prediction Scoring System by FIRST: an estimate of the probability that exploitation activity will be observed in the next 30 days.
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

Stakeholder-Specific Vulnerability Categorization (SSVC) decision points added by CISA.
Exploitation
Public proof of concept recorded by CISA
Automatable
yes
Technical impact
total

Weakness (CWE)

CWE catalog version 5.0.
CWE names: Copyright © 2006-2026, The MITRE Corporation. See /security/cve/legal for the CWE license.
  • CWE-78Improper Neutralization of Special Elements used in an OS Command

Affected products

Products listed in the CVE record, as the CNA published them.
  • 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)

Timeline

  1. ID reserved
  2. Record published
  3. Record last updated

Look up another CVE

About CubePath

CubePath is a cloud provider with data centers in Europe and the United States. It offers VPS, bare metal servers and DDoS protection.

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