CVE-2022-2068
openssl: the c_rehash script allows command injection
Overview
Description
In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehash script does not properly sanitise shell metacharacters to prevent command injection were found by code review. When the CVE-2022-1292 was fixed it was not discovered that there are other places in the script where the file names of certificates being hashed were possibly passed to a command executed through the shell. 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.4 (Affected 3.0.0,3.0.1,3.0.2,3.0.3). Fixed in OpenSSL 1.1.1p (Affected 1.1.1-1.1.1o). Fixed in OpenSSL 1.0.2zf (Affected 1.0.2-1.0.2ze).
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.2zf||>=1.1.1 <1.1.1p||>=3.0.0 <3.0.4 | 1.1.0l1.1.1p3.0.4 |
| 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 · 72 fixes
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-2.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.56.1 | SUSE-SU-2022:2181-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 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | openssl | 1.1.1n-0+deb10u3 |
| 11 | openssl | 1.1.1n-0+deb11u3 |
| 12 | openssl | 3.0.4-1 |
| 13 | openssl | 3.0.4-1 |
| 14 | openssl | 3.0.4-1 |
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 | 3.0.4-1 |
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | grype +3 | 0.92.1-1.1 | openSUSE-SU-2025:15136-1 |
| 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.1p-1.1 | openSUSE-SU-2024:12159-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+deb11u3 |
| 12 | rootio-openssl | 3.0.4-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 |
| 8 | openssl +1 | 1:1.1.1k-6.el8_5+sp999 |
| 9 | openssl +1 | 1:3.2.2-6.el9_5+sp999 |
ubuntu 5 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | openssl1-0 | 1.0.2n-1ubuntu5.10 |
| 18.04 | openssl | 1.1.1-1ubuntu2.1~18.04.19 |
| 18.04-ESM | openssl1-0 | 1.0.2n-1ubuntu5.10 |
| 18.04-ESM | openssl | 1.1.1-1ubuntu2.1~18.04.19 |
| 20.04 | openssl | 1.1.1f-1ubuntu2.15 |
| 20.04-ESM | openssl | 1.1.1f-1ubuntu2.15 |
2 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
- seclists.org http://seclists.org/fulldisclosure/2024/Nov/0
- access.redhat.com https://access.redhat.com/errata/RHSA-2022:6224
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-2068
- 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
Show all 48 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2100554
- 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-332410.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-794697.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/pdf/ssa-332410.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=2c9c35870601b4a44d86ddbf512b38df38285cfa
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=7a9c027159fe9e1bbc2cd38a8a2914bff0d5abd9
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=9639817dac8bbbaa64d09efad7464ccc405527c7
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2c9c35870601b4a44d86ddbf512b38df38285cfa
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=7a9c027159fe9e1bbc2cd38a8a2914bff0d5abd9
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=9639817dac8bbbaa64d09efad7464ccc405527c7
- github.com https://github.com/advisories/GHSA-xjxr-x4h8-946x
- gitlab.com https://gitlab.com/fraf0/cve-2022-1292-re_score-analysis
- linux.oracle.com https://linux.oracle.com/cve/CVE-2022-2068.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-9751.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6WZZBKUHQFGSKGNXXKICSRPL7AMVW5M5
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6WZZBKUHQFGSKGNXXKICSRPL7AMVW5M5/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3ZZCZLH7XA
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3ZZCZLH7XA/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6WZZBKUHQFGSKGNXXKICSRPL7AMVW5M5
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3ZZCZLH7XA
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-2068
- security.netapp.com https://security.netapp.com/advisory/ntap-20220707-0008
- security.netapp.com https://security.netapp.com/advisory/ntap-20220707-0008/
- ubuntu.com https://ubuntu.com/security/notices/USN-5488-1
- ubuntu.com https://ubuntu.com/security/notices/USN-5488-2
- ubuntu.com https://ubuntu.com/security/notices/USN-6457-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7018-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-2068
- www.debian.org https://www.debian.org/security/2022/dsa-5169
- www.openssl.org https://www.openssl.org/news/secadv/20220621.txt
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.