{"id":"CVE-2022-1292","state":"PUBLISHED","title":"The c_rehash script allows command injection","description":"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).","publishedAt":"2022-05-03T15:15:19.758Z","updatedAt":"2026-10-14T12:34:52.675Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"openssl","products":["OpenSSL OpenSSL"],"affected":[{"vendor":"OpenSSL","product":"OpenSSL","versions":[{"version":"Fixed in OpenSSL 3.0.3 (Affected 3.0.0,3.0.1,3.0.2)","status":"affected"},{"version":"Fixed in OpenSSL 1.1.1o (Affected 1.1.1-1.1.1n)","status":"affected"},{"version":"Fixed in OpenSSL 1.0.2ze (Affected 1.0.2-1.0.2zd)","status":"affected"}]}],"references":["https://www.openssl.org/news/secadv/20220503.txt","https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=1ad73b4d27bd8c1b369a3cd453681d3a4f1bb9b2","https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=e5fd1728ef4c7a5bf7c7a7163ca60370460a6e23","https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=548d3f280a6e737673f5b61fce24bb100108dfeb","https://lists.debian.org/debian-lts-announce/2022/05/msg00019.html","https://www.debian.org/security/2022/dsa-5139","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VX4KWHPMKYJL6ZLW4M5IU7E5UV5ZWJQU/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNU5M7BXMML26G3GPYKFGQYPQDRSNKDD/","https://www.oracle.com/security-alerts/cpujul2022.html","https://security.netapp.com/advisory/ntap-20220602-0009/","https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0011","https://security.netapp.com/advisory/ntap-20220729-0004/","https://security.gentoo.org/glsa/202210-02","https://cert-portal.siemens.com/productcert/pdf/ssa-953464.pdf","https://gitlab.com/fraf0/cve-2022-1292-re_score-analysis","https://cert-portal.siemens.com/productcert/html/ssa-953464.html","https://cert-portal.siemens.com/productcert/html/ssa-419740.html","https://cert-portal.siemens.com/productcert/html/ssa-794697.html","https://cert-portal.siemens.com/productcert/html/ssa-942865.html","https://cert-portal.siemens.com/productcert/html/ssa-146325.html","https://cert-portal.siemens.com/productcert/html/ssa-398330.html"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T19:49:29.138Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/1xxx/CVE-2022-1292.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-1292","state":"PUBLISHED","datePublished":"2022-05-03T15:15:19.758Z","dateUpdated":"2026-10-14T12:34:52.675Z","assignerShortName":"openssl","assignerOrgId":"3a12439a-ef3a-4c79-92e6-6081a721f1e5","dateReserved":"2022-04-11T00:00:00.000Z"},"containers":{"cna":{"title":"The c_rehash script allows command injection","descriptions":[{"lang":"en","value":"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)."}],"affected":[{"vendor":"OpenSSL","product":"OpenSSL","versions":[{"version":"Fixed in OpenSSL 3.0.3 (Affected 3.0.0,3.0.1,3.0.2)","status":"affected"},{"version":"Fixed in OpenSSL 1.1.1o (Affected 1.1.1-1.1.1n)","status":"affected"},{"version":"Fixed in OpenSSL 1.0.2ze (Affected 1.0.2-1.0.2zd)","status":"affected"}]}],"references":[{"url":"https://www.openssl.org/news/secadv/20220503.txt"},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=1ad73b4d27bd8c1b369a3cd453681d3a4f1bb9b2"},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=e5fd1728ef4c7a5bf7c7a7163ca60370460a6e23"},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=548d3f280a6e737673f5b61fce24bb100108dfeb"},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00019.html","name":"[debian-lts-announce] 20220515 [SECURITY] [DLA 3008-1] openssl security update","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2022/dsa-5139","name":"DSA-5139","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VX4KWHPMKYJL6ZLW4M5IU7E5UV5ZWJQU/","name":"FEDORA-2022-b651cb69e6","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNU5M7BXMML26G3GPYKFGQYPQDRSNKDD/","name":"FEDORA-2022-c9c02865f6","tags":["vendor-advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"url":"https://security.netapp.com/advisory/ntap-20220602-0009/"},{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0011"},{"url":"https://security.netapp.com/advisory/ntap-20220729-0004/"},{"url":"https://security.gentoo.org/glsa/202210-02","name":"GLSA-202210-02","tags":["vendor-advisory"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-953464.pdf"}],"metrics":[{"other":{"type":"unknown","content":{"lang":"eng","url":"https://www.openssl.org/policies/secpolicy.html#Moderate","value":"Moderate"}}}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"Command injection"}]}],"providerMetadata":{"shortName":"openssl","orgId":"3a12439a-ef3a-4c79-92e6-6081a721f1e5","dateUpdated":"2023-02-14T00:00:00.000Z"},"datePublic":"2022-05-03T00:00:00.000Z","credits":[{"lang":"en","value":"Elison Niven (Sophos)"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://gitlab.com/fraf0/cve-2022-1292-re_score-analysis"},{"url":"https://www.openssl.org/news/secadv/20220503.txt","tags":["x_transferred"]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=1ad73b4d27bd8c1b369a3cd453681d3a4f1bb9b2","tags":["x_transferred"]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=e5fd1728ef4c7a5bf7c7a7163ca60370460a6e23","tags":["x_transferred"]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=548d3f280a6e737673f5b61fce24bb100108dfeb","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00019.html","name":"[debian-lts-announce] 20220515 [SECURITY] [DLA 3008-1] openssl security update","tags":["mailing-list","x_transferred"]},{"url":"https://www.debian.org/security/2022/dsa-5139","name":"DSA-5139","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VX4KWHPMKYJL6ZLW4M5IU7E5UV5ZWJQU/","name":"FEDORA-2022-b651cb69e6","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNU5M7BXMML26G3GPYKFGQYPQDRSNKDD/","name":"FEDORA-2022-c9c02865f6","tags":["vendor-advisory","x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20220602-0009/","tags":["x_transferred"]},{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0011","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20220729-0004/","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/202210-02","name":"GLSA-202210-02","tags":["vendor-advisory","x_transferred"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-953464.pdf","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-08-13T14:06:18.130Z"},"x_generator":{"engine":"ADPogram 0.0.1"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2023-07-21T00:00:00+00:00","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2022-1292"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","type":"CWE","lang":"en","description":"CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-12-30T04:55:25.734Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V1.1","versionType":"custom"}]},{"vendor":"Siemens","product":"SINAMICS PERFECT HARMONY GH180","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-953464.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-419740.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-794697.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-942865.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-146325.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-14T12:34:52.675Z"},"x_adpType":"supplier"}]}}}