cve.bz

CVE-2022-2068 OS Command Injection

7.3 highEPSS 96%Fix available

High (7.3). EPSS 96% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

7.3 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
96% (unchanged from 96% a week ago; 96% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-12-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-2068 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-2068?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-2068?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-2068 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2022-2068

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2022-2068](https://cve.bz/cve/badge/CVE-2022-2068.svg)](https://cve.bz/cve/CVE-2022-2068)

HTML:

<a href="https://cve.bz/cve/CVE-2022-2068"><img src="https://cve.bz/cve/badge/CVE-2022-2068.svg" alt="CVE-2022-2068"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openssl:opensslfrom 1.0.2 before 1.0.2zf
openssl:opensslfrom 1.1.1 before 1.1.1p
openssl:opensslfrom 3.0.0 before 3.0.4
debian:debian_linux10.0
debian:debian_linux11.0
fedoraproject:fedora35
fedoraproject:fedora36
siemens:sinec_insbefore 1.0
siemens:sinec_ins1.0
siemens:sinec_ins1.0:sp1
siemens:sinec_ins1.0:sp2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10openssl1.1.1n-0+deb10u3DSA-5169-1
Debian11openssl1.1.1n-0+deb11u3DSA-5169-1
Debian12, 13, 14openssl3.0.4-1DEBIAN-CVE-2022-2068
Ubuntu18.04:LTSopenssl1.1.1-1ubuntu2.1~18.04.19UBUNTU-CVE-2022-2068 USN-5488-1
Ubuntu18.04:LTSopenssl1.01.0.2n-1ubuntu5.10UBUNTU-CVE-2022-2068 USN-5488-1
Ubuntu20.04:LTSopenssl1.1.1f-1ubuntu2.15UBUNTU-CVE-2022-2068 USN-5488-1
Ubuntu22.04:LTSnodejs12.22.9~dfsg-1ubuntu3.1UBUNTU-CVE-2022-2068 USN-6457-1
Ubuntu22.04:LTSopenssl3.0.2-0ubuntu1.5UBUNTU-CVE-2022-2068 USN-5488-1
UbuntuPro:14.04:LTSopenssl1.0.1f-1ubuntu2.27+esm10UBUNTU-CVE-2022-2068 USN-7018-1
UbuntuPro:16.04:LTSedk2no fix listedUBUNTU-CVE-2022-2068
UbuntuPro:16.04:LTSopenssl1.0.2g-1ubuntu4.20+esm5UBUNTU-CVE-2022-2068 USN-5488-2
UbuntuPro:FIPS-updates:16.04:LTSopenssl1.0.2g-1ubuntu4.fips.4.20.3UBUNTU-CVE-2022-2068
UbuntuPro:FIPS-updates:18.04:LTSopenssl1.1.1-1ubuntu2.fips.2.1~18.04.20UBUNTU-CVE-2022-2068
UbuntuPro:FIPS-updates:20.04:LTSopenssl1.1.1f-1ubuntu2.fips.16UBUNTU-CVE-2022-2068
UbuntuPro:FIPS:16.04:LTS, Pro:FIPS:18.04:LTS, Pro:FIPS:20.04:LTSopensslno fix listedUBUNTU-CVE-2022-2068
Red Hatenterprise_linux:8::baseosopenssl, openssl-libs, openssl-perl and 4 more1:1.1.1k-7.el8_6RHSA-2022:5818
Red Hatenterprise_linux:9::appstreamopenssl-perl, openssl-devel, openssl-debuginfo and 2 more1:3.0.1-41.el9_0RHSA-2022:6224
Red Hatenterprise_linux:9::baseosopenssl, openssl-libs, openssl-debuginfo and 2 more1:3.0.1-41.el9_0RHSA-2022:6224
Red Hatjboss_core_services:1::el7jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 1 more0:7.86.0-2.el7jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.51-37.el7jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.19-20.el7jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html1:2.4.51-37.el7jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el7jbcs-httpd24-openssl, jbcs-httpd24-openssl-libs, jbcs-httpd24-openssl-perl and 3 more1:1.1.1k-13.el7jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el8jbcs-httpd24-curl, jbcs-httpd24-libcurl, jbcs-httpd24-libcurl-devel and 2 more0:7.86.0-2.el8jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el8jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 8 more0:2.4.51-37.el8jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el8jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.19-20.el8jbcsRHSA-2022:8840
Red Hatjboss_core_services:1::el8jbcs-httpd24-mod_ssl, jbcs-httpd24-mod_proxy_html, jbcs-httpd24-mod_ssl-debuginfo and 1 more1:2.4.51-37.el8jbcsRHSA-2022:8840
56 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise Module for Legacy 15 SP3 and 11 moreopenssl-1_0_01.0.2p-150000.3.56.1SUSE-SU-2022:2321-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 moreopenssl-1_11.1.0i-150100.14.33.1SUSE-SU-2022:2179-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 9 moreopenssl-1_11.1.1d-150200.11.48.1SUSE-SU-2022:2251-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 4 moreopenssl1.0.2j-60.83.1SUSE-SU-2022:2180-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moreopenssl-1_11.1.0i-150000.4.74.1SUSE-SU-2022:2309-1
SUSELinux Enterprise Module for Basesystem 15 SP4openssl-1_11.1.1l-150400.7.7.1SUSE-SU-2022:2308-1
SUSELinux Enterprise Module for Basesystem 15 SP4openssl-33.0.1-150400.4.7.1SUSE-SU-2022:2306-1
SUSELinux Enterprise Module for Legacy 12, Linux Enterprise Server for SAP Applications 12 SP3, Linux Enterprise Server for SAP Applications 12 SP4 and 1 morecompat-openssl0980.9.8j-106.36.1SUSE-SU-2022:2197-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 4 moreopenssl-1_0_01.0.2p-3.56.1SUSE-SU-2022:2181-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 4 moreopenssl-1_11.1.1d-2.66.1SUSE-SU-2022:2182-1
openSUSELeap 15.3openssl-1_11.1.1d-150200.11.48.1SUSE-SU-2022:2251-1
openSUSELeap 15.3, Leap 15.4openssl-1_0_01.0.2p-150000.3.56.1SUSE-SU-2022:2321-1
openSUSELeap 15.4openssl-1_11.1.1l-150400.7.7.1SUSE-SU-2022:2308-1
openSUSELeap 15.4openssl-33.0.1-150400.4.7.1SUSE-SU-2022:2306-1
openSUSELeap Micro 5.2openssl-1_11.1.1d-150200.11.48.1SUSE-SU-2022:2251-2
openSUSETumbleweedgrype0.92.1-1.1openSUSE-SU-2025:15136-1
openSUSETumbleweedopenssl-1_0_01.0.2u-9.1openSUSE-SU-2024:12178-1
openSUSETumbleweedopenssl-1_11.1.1p-1.1openSUSE-SU-2024:12159-1
AlmaLinux8openssl, openssl-libs, openssl-perl and 1 more1:1.1.1k-7.el8_6ALSA-2022:5818
AlmaLinux9openssl, openssl-libs, openssl-perl and 1 more1:3.0.1-41.el9_0ALSA-2022:6224
Rocky Linux8openssl1:1.1.1k-7.el8_6RLSA-2022:5818
Azure Linux2openssl1.1.1k-17AZL-9967

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Enterprise Linux uses a system-wide store of trusted certificates bundled in a single file and updated via `update-ca-trust`. The `c_rehash` script is not included in the default installation on any supported RHEL version and is never executed automatically. For these reasons, this flaw has been rated as having a security impact of Moderate.

Red Hat Enterprise Linux 7 provides a vulnerable version of the `c_rehash` script in the `openssl-perl` package, available only through the unsupported Optional repository. As the Optional repository is not supported and Red Hat Enterprise Linux 7 is in Maintenance Support 2 Phase, this issue is not planned to be addressed there.

Red Hat Satellite ships an affected version of the `c_rehash` script embedded in `puppet-agent` package, however, the product is not vulnerable since it does not execute scripts with untrusted data. Moreover, the scriplet is owned by root user and is supposed to be accessed only by administrators.

Red Hat updates the OpenSSL compatibility packages (compat-openssl) to only address Important or Critical security issues with backported security patches.

Red Hat's mitigation

As mentioned in the upstream security advisory, use of the c_rehash script is considered obsolete and should be replaced by the OpenSSL rehash command-line tool.

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-openssl-1:1.1.1k-13.el8jbcsFixed 2022-12-08RHSA-2022:8840
JBoss Core Services on RHEL 7jbcs-httpd24-openssl-1:1.1.1k-13.el7jbcsFixed 2022-12-08RHSA-2022:8840
JWS 5.7.1 releaseopensslFixed 2022-12-12RHSA-2022:8913
Red Hat Enterprise Linux 8openssl-1:1.1.1k-7.el8_6Fixed 2022-08-03RHSA-2022:5818
Red Hat Enterprise Linux 9openssl-1:3.0.1-41.el9_0Fixed 2022-08-30RHSA-2022:6224
Red Hat JBoss Core ServicesFixed 2022-12-08RHSA-2022:8841
Red Hat JBoss Web Server 5.7 on RHEL 7jws5-tomcat-native-0:1.2.31-11.redhat_11.el7jwsFixed 2022-12-12RHSA-2022:8917
Red Hat JBoss Web Server 5.7 on RHEL 8jws5-tomcat-native-0:1.2.31-11.redhat_11.el8jwsFixed 2022-12-12RHSA-2022:8917
Red Hat JBoss Web Server 5.7 on RHEL 9jws5-tomcat-native-0:1.2.31-11.redhat_11.el9jwsFixed 2022-12-12RHSA-2022:8917
Red Hat Satellite 6.11 for RHEL 7puppet-agent-0:7.26.0-3.el7satFixed 2023-10-20RHSA-2023:5980
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/management-ingress-rhel8Will not fix
Red Hat Enterprise Linux 6opensslOut of support scope
Red Hat Enterprise Linux 6openssl098eOut of support scope
Red Hat Enterprise Linux 7opensslOut of support scope
Red Hat Enterprise Linux 7openssl098eOut of support scope
Red Hat Enterprise Linux 7ovmfOut of support scope
Red Hat Enterprise Linux 8compat-openssl10Out of support scope
Red Hat Enterprise Linux 8edk2Not affected
Red Hat Enterprise Linux 8shimNot affected
Red Hat Enterprise Linux 9compat-openssl11Out of support scope
13 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-2068.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-23-194-01Siemens RUGGEDCOM ROX2023-07-11MultipleRUGGEDCOM ROX MX5000, RUGGEDCOM ROX MX5000RE, RUGGEDCOM ROX RX1400 and 8 morenone listed
ICSA-23-166-11Siemens SIMATIC S7-1500 TM MFP Linux Kernel2023-06-13MultipleSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed
ICSA-23-017-03Siemens SINEC INS2023-01-10MultipleSINEC INSnone listed
ICSA-22-319-01Mitsubishi Electric GT SoftGOT20002022-11-15Critical ManufacturingGT SoftGOT2000 - GT SoftGOT2000 1.275M 1.280Snone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON