← Vulnerability feed

Vulnerability record · CVE-2022-2068 · published 21 June 2022

CVE-2022-2068: OpenSSL c_rehash script command injection via unsanitised filenames

OOpenssl · Openssl

The OpenSSL c_rehash script fails to sanitise shell metacharacters in certificate filenames before passing them to shell commands, allowing OS command injection. This is a follow-up to CVE-2022-1292, where the initial fix missed other locations in the script with the same flaw. It matters because c_rehash is distributed by some operating systems in a manner where it is automatically executed, so an attacker who can place a crafted filename can run arbitrary commands with the script's privileges.

7.3 CVSS 3.1 High EPSS 95% · top 0.1% CWE-78 · OS command injection
7.3CVSS 3.1 base score, v2 10.0
95%EPSS exploitation probability, 30 days
NoNot in CISA KEV
28Affected product versions listed by NVD
20References
17 Jun 2026Last modified by NVD

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

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityCVSS 7.3 and an EPSS probability above 0.95 with automatic execution on some systems make this a serious local command injection despite no KEV listing.

What it is

The OpenSSL c_rehash script fails to sanitise shell metacharacters in certificate filenames before passing them to shell commands, allowing OS command injection. This is a follow-up to CVE-2022-1292, where the initial fix missed other locations in the script with the same flaw. It matters because c_rehash is distributed by some operating systems in a manner where it is automatically executed, so an attacker who can place a crafted filename can run arbitrary commands with the script's privileges.

Impact

An attacker can execute arbitrary commands with the privileges of the account running c_rehash, which on some systems is automatic and potentially privileged. This yields full compromise of confidentiality, integrity and availability for that context.

Attack surface

Reached locally by supplying a certificate file whose name contains shell metacharacters to the c_rehash script; the CVSS vector requires local access, low privileges and user interaction. No remote network vector is described.

Exploitation

Not listed in CISA KEV and no ransomware associations are documented, but EPSS is very high at 0.954 (99.9th percentile), indicating strong predicted exploitation activity; references are patches and vendor advisories only, with no public exploit tag.

What to do

  • Upgrade OpenSSL to 3.0.4, 1.1.1p or 1.0.2zf as applicable to your branch.
  • Stop using the c_rehash script and replace it with the OpenSSL rehash command line tool.
  • Where c_rehash must remain, ensure it is not invoked automatically and restrict who can write filenames into directories it processes.
  • Apply vendor advisories for Debian, Fedora, Siemens, NetApp and Broadcom products that bundle affected OpenSSL versions.
  • Audit scripts and cron jobs that call c_rehash and remove or sandbox them.

Detection

  • Search filesystems for certificate files whose names contain shell metacharacters such as semicolons, backticks, pipes or dollar signs in directories processed by c_rehash.
  • Monitor process trees for shell children spawned by c_rehash or rehash invocations.
  • Alert on unexpected command execution from accounts or services that run c_rehash automatically.
  • Check installed OpenSSL versions against the fixed releases 3.0.4, 1.1.1p and 1.0.2zf.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

28 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf Third Party Advisory
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=2c9c35870601b4a44d86ddbf512b38df38285cfa Patch
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=7a9c027159fe9e1bbc2cd38a8a2914bff0d5abd9 Patch
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=9639817dac8bbbaa64d09efad7464ccc405527c7 Patch
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6WZZBKUHQFGSKGNXXKICSRP Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3 Mailing ListThird Party Advisory
https://security.netapp.com/advisory/ntap-20220707-0008/ Third Party Advisory
https://www.debian.org/security/2022/dsa-5169 Third Party Advisory
https://www.openssl.org/news/secadv/20220621.txt Vendor Advisory
http://seclists.org/fulldisclosure/2024/Nov/0
https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf Third Party Advisory
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=2c9c35870601b4a44d86ddbf512b38df38285cfa Patch
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=7a9c027159fe9e1bbc2cd38a8a2914bff0d5abd9 Patch
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=9639817dac8bbbaa64d09efad7464ccc405527c7 Patch
https://gitlab.com/fraf0/cve-2022-1292-re_score-analysis
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6WZZBKUHQFGSKGNXXKICSRP Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3 Mailing ListThird Party Advisory
https://security.netapp.com/advisory/ntap-20220707-0008/ Third Party Advisory
https://www.debian.org/security/2022/dsa-5169 Third Party Advisory
https://www.openssl.org/news/secadv/20220621.txt Vendor Advisory

Track CVE-2022-2068 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2022-2068), CISA KEV, FIRST EPSS (scores of 2026-09-22). This page is refreshed as NVD updates the record.