LiveActive security incident?Get immediate response
CVE Record

CVE-2022-2068: 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).

CriticalCVSS 9.8Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

This is a critical command injection flaw in OpenSSL's obsolete c_rehash script. Under certain operating-system packaging or automation patterns, malicious certificate filenames could cause commands to run with the script's privileges. Business urgency is highest for systems where c_rehash runs automatically or processes certificate files from less-trusted sources.

Executive priority

Treat as urgent for internet-facing infrastructure, shared systems, and managed appliances using affected OpenSSL packages. Prioritize patching where c_rehash automation exists or certificate files can be influenced by untrusted parties.

Technical view

CVE-2022-2068 is CWE-78 in OpenSSL c_rehash, related to incomplete sanitization after CVE-2022-1292. Certificate filenames could be passed into shell-executed commands. OpenSSL fixed it in 3.0.4, 1.1.1p, and 1.0.2zf, and recommends replacing c_rehash with the openssl rehash tool.

Likely exposure

Exposure is likely on systems with affected OpenSSL versions or vendor packages that include vulnerable c_rehash. Risk increases where operating systems automatically execute c_rehash and where attackers can influence certificate filenames processed by the script.

Exploitation context

The provided sources do not show CISA KEV listing or confirmed active exploitation. The advisory states arbitrary command execution is possible in some OS distribution contexts when c_rehash runs with vulnerable filename handling.

Researcher notes

The key uncertainty is deployment context: exploitation depends on vulnerable c_rehash execution and attacker influence over processed filenames. Avoid assuming all OpenSSL consumers are equally exposed; validate OS packaging, automation paths, and vendor backports.

Mitigation direction

  • Upgrade OpenSSL to 3.0.4, 1.1.1p, 1.0.2zf, or vendor-patched packages.
  • Replace c_rehash usage with the openssl rehash command line tool.
  • Apply relevant operating system advisories, including Debian or Fedora updates where applicable.
  • Review vendor guidance for appliances or embedded products bundling OpenSSL.
  • Restrict untrusted write access to certificate directories processed by rehash tooling.

Validation and detection

  • Inventory OpenSSL versions and distribution package revisions across servers and appliances.
  • Check whether c_rehash exists and is invoked by scripts, hooks, cron, or package automation.
  • Confirm patched versions or vendor backports are installed, not only upstream version strings.
  • Review certificate directories for untrusted write paths or unusual certificate filenames.
  • Track vendor advisories for affected bundled OpenSSL components.
Prepared
Confidence
high
Sources
10

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-78: Command execution behavior lookup

Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-2068 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
11Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2022-2068Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
OpenSSLOpenSSLFixed 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)Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.