CVE-2022-1292
openssl: c_rehash script allows command injection
Overview
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).
Source: OX vulnerability database
Severity
7.3 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-78
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Conan (C/C++) | openssl | >=1.0.2 <1.0.2ze||>=1.1.1 <1.1.1o||>=3.0.0 <3.0.3 | 1.1.0l1.1.1o3.0.3 |
| Julia | Openresty_jll | <1.21.4+0 | 1.21.4+0 |
| Julia | OpenSSL_jll | <1.1.16+0 | 1.1.16+0 |
Open a package to see all its vulnerabilities.
Operating systems · 76 fixes
Azure Linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | hvloader | 0:1.0.1-2.azl3 |
| 3.0 | edk2 | 0:20240223gitedc6681206c1-1.azl3 |
Oracle Linux 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | openssl +3 | 1:1.1.1k-7.el8_6 |
| 8 | openssl +5 | 2:1.1.1k-7.ksplice1.el8_6 |
| 9 | openssl +3 | 1:3.0.1-41.0.1.el9_0 |
| 9 | openssl +3 | 2:3.0.1-41.0.1.ksplice1.el9_0 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | openssl +4 | 3.0.3-1.ph4 |
Red Hat 3 releases · 11 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | puppet-agent +1 | affected | — |
| 7 | aavmf +7 | eol | — |
| 7 | jbcs-httpd24-mod-http2 | 0:1.15.19-20.el7jbcs | RHSA-2022:8840 |
| 7 | jws5-tomcat-native | 0:1.2.31-11.redhat_11.el7jws | RHSA-2022:8917 |
| 7 | jbcs-httpd24-httpd +6 | 0:2.4.51-37.el7jbcs | RHSA-2022:8840 |
| 7 | jbcs-httpd24-curl +2 | 0:7.86.0-2.el7jbcs | RHSA-2022:8840 |
14 more rows
SUSE Linux Enterprise 2 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libopenssl0-9-8 | 0.9.8j-106.36.1 | SUSE-SU-2022:2197-1 |
| 12.5 | libopenssl-1-0-0-devel +7 | 1.0.2p-3.53.1 | SUSE-SU-2022:2106-1 |
| 12.5 | libopenssl-1-1-devel +6 | 1.1.1d-2.66.1 | SUSE-SU-2022:2182-1 |
| 15.4 | libopenssl-1-0-0-devel +3 | 1.0.2p-150000.3.56.1 | SUSE-SU-2022:2321-1 |
| 15.4 | libopenssl-1-1-devel +5 | 1.1.1l-150400.7.7.1 | SUSE-SU-2022:2308-1 |
| 15.4 | libopenssl-3-devel +2 | 3.0.1-150400.4.7.1 | SUSE-SU-2022:2306-1 |
SUSE Linux Enterprise Micro 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | libopenssl-1-1-devel +3 | 1.1.1d-150200.11.48.1 | SUSE-SU-2022:2251-1 |
| 5.2 | libopenssl-1-1-devel +3 | 1.1.1d-150200.11.48.1 | SUSE-SU-2022:2251-1 |
alma 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | openssl +3 | 1:1.1.1k-7.el8_6 |
| 9 | openssl +3 | 1:3.0.1-41.el9_0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | openssl +6 | 1:3.0.5-1.amzn2023.0.4 |
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | openssl | 1.1.1n-0+deb10u2 |
| 11 | openssl | 1.1.1n-0+deb11u2 |
| 12 | openssl | 1.1.1o-1 |
| 13 | openssl | 1.1.1o-1 |
| 14 | openssl | 1.1.1o-1 |
| 9 | openssl | 1.1.0l-1~deb9u6 |
echo 1 release · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-1-0-1g | 1.0.1g+e1 | |
| openssl-1-1-1c | 1.1.1c+e1 | |
| openssl-1-1-1g | 1.1.1g+e1 | |
| openssl-1-1-1k | 1.1.1k+e1 | |
| openssl | 1.1.1o-1 |
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libopenssl-1-0-0-devel +11 | 1.0.2u-9.1 | openSUSE-SU-2024:12178-1 |
| Tumbleweed | libopenssl-1-1-devel +7 | 1.1.1o-1.1 | openSUSE-SU-2024:12138-1 |
| Tumbleweed | libopenssl-3-devel +5 | 3.0.5-1.1 | openSUSE-SU-2024:12204-1 |
openSUSE Leap Micro 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.2 | libopenssl-1-1-devel +3 | 1.1.1d-150200.11.48.1 | SUSE-SU-2022:2251-2 |
rocky 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | openssl +3 | 1:1.1.1k-7.el8_6 |
root.io debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-openssl | 1.1.1n-0+deb11u2 |
| 12 | rootio-openssl | 1.1.1o-1 |
seal Red Hat 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openssl +1 | 1:1.0.2k-25.el7_9+sp999 |
| 8 | openssl +1 | 1:1.1.1k-14.el8_6+sp999 |
| 9 | openssl +1 | 1:3.2.2-6.el9_5+sp999 |
ubuntu 7 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | openssl1-0 | 1.0.2n-1ubuntu5.9 |
| 18.04 | openssl | 1.1.1-1ubuntu2.1~18.04.17 |
| 18.04-ESM | openssl1-0 | 1.0.2n-1ubuntu5.9 |
| 18.04-ESM | openssl | 1.1.1-1ubuntu2.1~18.04.17 |
| 20.04 | openssl | 1.1.1f-1ubuntu2.13 |
| 20.04-ESM | openssl | 1.1.1f-1ubuntu2.13 |
4 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssl | not affected |
| 3.23 | openssl | not affected |
| 3.24 | openssl | not affected |
| edge | openssl | not affected |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby-3-1 | not affected |
root.io alpine 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.23 | rootio-openssl | not affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby-3-1 | not affected |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2022:6224
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-1292
- bugzilla.redhat.com https://bugzilla.redhat.com/2081494
- bugzilla.redhat.com https://bugzilla.redhat.com/2087911
- bugzilla.redhat.com https://bugzilla.redhat.com/2087913
- bugzilla.redhat.com https://bugzilla.redhat.com/2097310
- bugzilla.redhat.com https://bugzilla.redhat.com/2104905
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2081494
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2097310
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2100554
Show all 57 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2104905
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-146325.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-419740.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-942865.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-953464.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/pdf/ssa-953464.pdf
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1292
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2068
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2097
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2022-6224.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2022:5818
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=1ad73b4d27bd8c1b369a3cd453681d3a4f1bb9b2
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=548d3f280a6e737673f5b61fce24bb100108dfeb
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=e5fd1728ef4c7a5bf7c7a7163ca60370460a6e23
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=1ad73b4d27bd8c1b369a3cd453681d3a4f1bb9b2
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=548d3f280a6e737673f5b61fce24bb100108dfeb
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=e5fd1728ef4c7a5bf7c7a7163ca60370460a6e23
- github.com https://github.com/advisories/GHSA-qjmp-vmxc-7p8r
- gitlab.com https://gitlab.com/fraf0/cve-2022-1292-re_score-analysis
- linux.oracle.com https://linux.oracle.com/cve/CVE-2022-1292.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-9751.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/05/msg00019.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VX4KWHPMKYJL6ZLW4M5IU7E5UV5ZWJQU
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VX4KWHPMKYJL6ZLW4M5IU7E5UV5ZWJQU/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNU5M7BXMML26G3GPYKFGQYPQDRSNKDD
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNU5M7BXMML26G3GPYKFGQYPQDRSNKDD/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VX4KWHPMKYJL6ZLW4M5IU7E5UV5ZWJQU
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZNU5M7BXMML26G3GPYKFGQYPQDRSNKDD
- mta.openssl.org https://mta.openssl.org/pipermail/openssl-announce/2022-May/000224.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-1292
- psirt.global.sonicwall.com https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0011
- security.gentoo.org https://security.gentoo.org/glsa/202210-02
- security.netapp.com https://security.netapp.com/advisory/ntap-20220602-0009
- security.netapp.com https://security.netapp.com/advisory/ntap-20220602-0009/
- security.netapp.com https://security.netapp.com/advisory/ntap-20220729-0004
- security.netapp.com https://security.netapp.com/advisory/ntap-20220729-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-5402-1
- ubuntu.com https://ubuntu.com/security/notices/USN-5402-2
- ubuntu.com https://ubuntu.com/security/notices/USN-6457-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7018-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7060-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-1292
- www.debian.org https://www.debian.org/security/2022/dsa-5139
- www.openssl.org https://www.openssl.org/news/secadv/20220503.txt
- www.oracle.com https://www.oracle.com/security-alerts/cpujul2022.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.