{"id":"CVE-2022-1292","published":"2022-05-03T15:15:19Z","modified":"2026-10-14T12:34:52Z","title":"The c_rehash script allows command injection","vendor":"OpenSSL","product":"OpenSSL","tier":"core","eol":null,"affectedVersions":[{"vendor":"OpenSSL","product":"OpenSSL","versions":["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)"]}],"description":{"text":"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).","provenance":"source","from":"CVE.org"},"summary":{"text":"The c_rehash script in OpenSSL does not properly sanitise shell metacharacters, which enables command injection in that component. On operating systems that automatically execute the script, an attacker can run arbitrary commands with the script's privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:11:30Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.82612,"percentile":0.99666,"date":"2026-10-31","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":null,"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://www.openssl.org/news/secadv/20220503.txt","tags":[]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=1ad73b4d27bd8c1b369a3cd453681d3a4f1bb9b2","tags":[]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=e5fd1728ef4c7a5bf7c7a7163ca60370460a6e23","tags":[]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=548d3f280a6e737673f5b61fce24bb100108dfeb","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00019.html","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2022/dsa-5139","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VX4KWHPMKYJL6ZLW4M5IU7E5UV5ZWJQU/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNU5M7BXMML26G3GPYKFGQYPQDRSNKDD/","tags":["vendor-advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20220602-0009/","tags":[]},{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0011","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20220729-0004/","tags":[]},{"url":"https://security.gentoo.org/glsa/202210-02","tags":["vendor-advisory"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-953464.pdf","tags":[]},{"url":"https://gitlab.com/fraf0/cve-2022-1292-re_score-analysis","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-953464.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-419740.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-794697.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-942865.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-146325.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2022-24621","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-24621","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":5,"skipped":0,"earliest":"2022-05-24","earliestUrl":"https://github.com/li8u99/CVE-2022-1292","repos":[{"name":"alcaparra/CVE-2022-1292","url":"https://github.com/alcaparra/CVE-2022-1292","stars":28,"created":"2022-05-30"},{"name":"und3sc0n0c1d0/CVE-2022-1292","url":"https://github.com/und3sc0n0c1d0/CVE-2022-1292","stars":7,"created":"2022-09-13"},{"name":"greek0x0/CVE-2022-1292","url":"https://github.com/greek0x0/CVE-2022-1292","stars":6,"created":"2022-09-01"},{"name":"rama291041610/CVE-2022-1292","url":"https://github.com/rama291041610/CVE-2022-1292","stars":5,"created":"2022-05-30"},{"name":"li8u99/CVE-2022-1292","url":"https://github.com/li8u99/CVE-2022-1292","stars":4,"created":"2022-05-24"}]},"first":{"date":"2022-05-24","source":"PoC-in-GitHub","url":"https://github.com/li8u99/CVE-2022-1292"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2022-05-03","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-1292","provenance":"source"},{"date":"2022-05-24","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/li8u99/CVE-2022-1292","provenance":"source"}],"speed":{"daysToPublicExploit":21,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":31.8,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.93,"detail":"percentile 0.9967"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"5 PoC-in-GitHub repos"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}