Arbitrary command execution via unsafe file operations
Published Jun 21, 2022 · Updated Dec 30, 2025
Command injection in OpenSSL c_rehash before 1.0.2zf, 1.1.1p, or 3.0.4 allows local users to execute commands via crafted filenames. The Perl script passes certificate filenames to two-argument open calls and an external copy command, allowing pipe and shell metacharacters to be interpreted as commands. Exploitation requires control of a filename in a directory processed by c_rehash; automatically invoked deployments run injected commands with the script's privileges.
Summary
What happened
Command injection in OpenSSL c_rehash before 1.0.2zf, 1.1.1p, or 3.0.4 allows local users to execute commands via crafted filenames. The Perl script passes certificate filenames to two-argument open calls and an external copy command, allowing pipe and shell metacharacters to be interpreted as commands. Exploitation requires control of a filename in a directory processed by c_rehash; automatically invoked deployments run injected commands with the script's privileges.
The record
- CVE
- CVE-2022-2068
- Published
- Jun 21, 2022
- Updated
- Dec 30, 2025
- Vendor
- OpenSSL Project
- Product
- OpenSSL
- Classifications
- CWE-78, T1059.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 21, 2022CVE publishedPublication date reported by the CVE source.
- Dec 30, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=Fixed in OpenSSL 1.0.2zf (Affected 1.0.2-1.0.2ze)
- Affected versionversion=Fixed in OpenSSL 1.1.1p (Affected 1.1.1-1.1.1o)
- Affected versionversion=Fixed in OpenSSL 3.0.4 (Affected 3.0.0,3.0.1,3.0.2,3.0.3)
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo