The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-2068

CVE-2022-2068: OpenSSL c_rehash Command Injection RCE

CVE-2022-2068 is a command injection vulnerability in OpenSSL's c_rehash script that enables remote code execution with script privileges. This article covers the technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2022-2068 Overview

CVE-2022-2068 is a command injection vulnerability in the OpenSSL c_rehash script that was discovered during code review following the initial fix for CVE-2022-1292. The vulnerability exists because the script fails to properly sanitize shell metacharacters in certificate file names before passing them to shell commands. This incomplete fix reveals additional code paths where malicious certificate file names can lead to arbitrary command execution.

When the fix for CVE-2022-1292 was implemented, additional locations in the script where certificate file names are passed to shell-executed commands were not identified. On operating systems where the c_rehash script is automatically executed as part of system operations, an attacker with the ability to place maliciously-named certificate files could achieve arbitrary command execution with the privileges of the script.

Critical Impact

Attackers can achieve arbitrary command execution on systems where the c_rehash script is automatically invoked by placing specially-crafted certificate files with shell metacharacters in the filename.

Affected Products

  • OpenSSL 3.0.0 through 3.0.3 (Fixed in 3.0.4)
  • OpenSSL 1.1.1 through 1.1.1o (Fixed in 1.1.1p)
  • OpenSSL 1.0.2 through 1.0.2ze (Fixed in 1.0.2zf)
  • Debian Linux 10.0 and 11.0
  • Fedora 35 and 36
  • Siemens SINEC INS (versions prior to 1.0 SP2)
  • NetApp Element Software, HCI Management Node, ONTAP Antivirus Connector
  • NetApp Storage Systems (H-Series, FAS, AFF platforms)
  • Broadcom SANnav

Discovery Timeline

  • June 21, 2022 - CVE-2022-2068 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2022-2068

Vulnerability Analysis

This vulnerability represents an incomplete fix scenario where the original remediation for CVE-2022-1292 failed to address all vulnerable code paths in the c_rehash Perl script. The script is designed to scan directories for certificate files and create symbolic links based on their hash values, facilitating certificate lookup operations.

The root issue lies in how the script handles file names when constructing shell commands. Certificate file names containing shell metacharacters (such as backticks, semicolons, or pipe characters) are not properly sanitized before being interpolated into shell command strings. When these commands are executed, the metacharacters are interpreted by the shell, allowing attacker-controlled commands to be injected and executed.

The attack requires local access to place malicious certificate files in directories processed by c_rehash. The impact is significant on systems where the script runs automatically, such as during certificate store updates or as part of automated maintenance tasks, as this creates an opportunity for privilege escalation without direct user interaction.

Root Cause

The root cause is improper input validation (CWE-78: Improper Neutralization of Special Elements used in an OS Command) in the c_rehash script. The script constructs shell commands by concatenating certificate file names without proper escaping or sanitization of shell-special characters. During the fix for CVE-2022-1292, not all instances where file names were passed to shell commands were identified and remediated, leaving residual injection points.

Attack Vector

The attack vector requires local access with the ability to write certificate files to directories processed by the c_rehash script. An attacker crafts a certificate file with shell metacharacters embedded in the filename. When c_rehash processes the directory containing this file, the malicious filename is passed to a shell command, and the embedded metacharacters cause the shell to execute attacker-controlled commands.

On systems where c_rehash is invoked automatically (for example, as part of package installation or certificate store updates), this creates an opportunity for local privilege escalation. The commands execute with the privileges of the process running the script, which may be root or a privileged system account.

The vulnerability mechanism involves the script iterating through certificate files and constructing shell commands dynamically. When a filename contains characters like backticks or command separators, these are interpreted by the shell as command substitution or command chaining operators. For detailed technical analysis, refer to the OpenSSL Security Advisory 20220621.

Detection Methods for CVE-2022-2068

Indicators of Compromise

  • Certificate files with unusual filenames containing shell metacharacters (backticks, semicolons, pipes, dollar signs) in certificate directories
  • Unexpected process spawning from c_rehash or openssl parent processes
  • Suspicious file creation or modification following c_rehash execution
  • Evidence of command execution in system logs coinciding with certificate operations

Detection Strategies

  • Monitor file system events for certificate files with suspicious naming patterns containing shell special characters
  • Implement process monitoring to detect unexpected child processes spawned from c_rehash or related OpenSSL utilities
  • Audit certificate directories (/etc/ssl/certs, /etc/pki/tls/certs) for files with anomalous filenames
  • Review system logs for errors or unusual activity during certificate operations

Monitoring Recommendations

  • Configure file integrity monitoring on certificate directories to alert on new files with unusual naming patterns
  • Implement process lineage monitoring to detect command execution from certificate management tools
  • Enable detailed logging for any automated certificate management tasks
  • Use SentinelOne's behavioral detection capabilities to identify anomalous process chains originating from certificate utilities

How to Mitigate CVE-2022-2068

Immediate Actions Required

  • Upgrade OpenSSL to the fixed versions: 3.0.4, 1.1.1p, or 1.0.2zf
  • Replace usage of the deprecated c_rehash script with the openssl rehash command line tool
  • Audit certificate directories for files with suspicious filenames and remove any anomalies
  • Restrict write access to certificate directories to prevent placement of malicious files

Patch Information

OpenSSL has released fixed versions that address this vulnerability:

  • OpenSSL 3.0.4 - Fixes affected versions 3.0.0 through 3.0.3
  • OpenSSL 1.1.1p - Fixes affected versions 1.1.1 through 1.1.1o
  • OpenSSL 1.0.2zf - Fixes affected versions 1.0.2 through 1.0.2ze

The patches properly sanitize file names before passing them to shell commands. For commit details, see the OpenSSL Git repository. Additional vendor-specific patches are available from Debian Security Advisory DSA-5169, NetApp Security Advisory NTAP-20220707-0008, and Siemens Security Advisory SSA-332410.

Workarounds

  • Discontinue use of the c_rehash script and migrate to the openssl rehash command which does not invoke shell commands
  • Implement strict file system permissions on certificate directories, limiting write access to trusted administrators only
  • If c_rehash must be used, ensure it is never executed automatically or on directories with user-writable content
  • Monitor and audit certificate directories for any files with shell metacharacters in their names
bash
# Replace c_rehash with openssl rehash command
# Instead of: c_rehash /etc/ssl/certs
openssl rehash /etc/ssl/certs

# Verify OpenSSL version to confirm patch status
openssl version

# Audit certificate directories for suspicious filenames
find /etc/ssl/certs -name '*[`$;|&]*' -ls

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOpenssl

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability20.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • Siemens Security Advisory SSA-332410

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20220707-0008

  • Debian Security Advisory DSA-5169

  • Full Disclosure Mailing List

  • GitLab CVE-2022-1292 Analysis
  • Vendor Resources
  • OpenSSL Commit Change Log

  • OpenSSL Commit Change Log

  • OpenSSL Commit Change Log

  • OpenSSL Security Advisory 20220621
  • Related CVEs
  • CVE-2026-24695: XWEB Pro RCE Vulnerability

  • CVE-2024-9143: OpenSSL Elliptic Curve RCE Vulnerability

  • CVE-2022-1292: Siemens Brownfield Gateway RCE Vulnerability

  • CVE-2022-2274: OpenSSL RSA RCE Vulnerability on AVX512
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English