The c_rehash script does not properly sanitise shell metacharacters to prevent command injection.
CVE-2022-1292 · GHSA-qjmp-vmxc-7p8r · EUVD-2022-24621 · published 3 May 2022
How serious is it
- Severity: critical, CVSS score 9.8 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2022-1292?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
- OpenSSL OpenSSL: Fixed in OpenSSL 1.0.2ze (Affected 1.0.2-1.0.2zd)
- OpenSSL OpenSSL: Fixed in OpenSSL 3.0.3 (Affected 3.0.0,3.0.1,3.0.2)
- OpenSSL OpenSSL: Fixed in OpenSSL 1.1.1o (Affected 1.1.1-1.1.1n)
How to check
- Find out whether you run the affected product and which version, then compare it with the versions above.
How to fix
Copies a prompt for Claude Code, Cursor or Codex that asks it to check whether you run this product.
- Apply the vendor's update or mitigation from the references below. If there is none yet, limit exposure of the affected service until there is.
- If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
The c_rehash script does not properly sanitise shell metacharacters to prevent command injection. 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.3 (Affected 3.0.0,3.0.1,3.0.2). Fixed in OpenSSL 1.1.1o (Affected 1.1.1-1.1.1n). Fixed in OpenSSL 1.0.2ze (Affected 1.0.2-1.0.2zd).
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- www.openssl.org/news/secadv/20220503.txt
- git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=1ad73b4d27bd8c1b369a3cd453681d3a4f1bb9b2
- git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=e5fd1728ef4c7a5bf7c7a7163ca60370460a6e23
- git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=548d3f280a6e737673f5b61fce24bb100108dfeb
- lists.debian.org/debian-lts-announce/2022/05/msg00019.html
- www.debian.org/security/2022/dsa-5139
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VX4KWHPMKYJL6ZLW4M5IU7E5UV5ZWJQU/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNU5M7BXMML26G3GPYKFGQYPQDRSNKDD/
- www.oracle.com/security-alerts/cpujul2022.html
- security.netapp.com/advisory/ntap-20220602-0009/
- psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0011
- security.netapp.com/advisory/ntap-20220729-0004/
- security.gentoo.org/glsa/202210-02
- cert-portal.siemens.com/productcert/pdf/ssa-953464.pdf
Merged from ENISA EUVD. Last updated 4 Nov 2026. All vulnerabilities · RSS · JSON