VDB

CVE-2022-1292

CVE-2022-1292 PUBLISHED CVSS 9.800000190734863 CRITICAL

The c_rehash script allows command injection

Reported by openssl · Published May 3, 2022

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).

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
opensslconan.io3.0.3, 1.1.1o, 1.0.2ze
edk2-tools-pythonAmazon Linux20200801stable-1.amzn2.0.5
openssl11-libsAmazon Linux1:1.1.1g-12.amzn2.0.8
openssl-perlAmazon Linux1:3.0.5-1.amzn2023.0.4, 1:1.0.2k-24.amzn2.0.3
openssl11-staticAmazon Linux1:1.1.1g-12.amzn2.0.8
edk2-toolsAmazon Linux20200801stable-1.amzn2.0.5
openssl11-develAmazon Linux1:1.1.1g-12.amzn2.0.8
openssl-libsAmazon Linux1:3.0.5-1.amzn2023.0.4, 1:1.0.2k-24.amzn2.0.3
openssl-develAmazon Linux1:1.0.2k-24.amzn2.0.3
openssl-staticAmazon Linux1:1.0.2k-24.amzn2.0.3
opensslArch Linux1.1.1.o-1
edk2-ovmfAmazon Linux20200801stable-1.amzn2.0.5

9 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
OpenSSLOpenSSLFixed 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)
SiemensSINAMICS PERFECT HARMONY GH1800
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
chainguardruby-3.1*
ConanCenteropenssl3.0.0, 1.0.2, 1.1.1
amazon:2edk2-tools-python0
alpineopenssl*
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2openssl11-libs0
alpineopenssl1.1-compat*
amazon:2openssl-perl0
amazon:2openssl11-static0
alpineopenssl3*
amazon:2edk2-tools0
wolfiruby-3.1*
OpenSSLOpenSSL
amazon:2openssl11-devel0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2openssl-libs0
amazon:2023openssl-perl0

…and 13 more

Timeline

  • May 3, 2022 CVE Published
  • May 4, 2022 EPSS Score (30 in total, the first dated here)
  • Apr 3, 2025 PoC Published (2 in total, the first dated here)
  • Mar 17, 2026 Security Advisory (90 in total, the first dated here)
  • Mar 21, 2026 Distribution Patch (88 in total, the first dated here)
  • Jul 11, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-1292
vulnetix vdb fixes CVE-2022-1292

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-1292/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›