cbcvebase.
CVE-2022-1292
published 2022-06-21

CVE-2022-1292: 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…

PriorityP263high7.3CVSS 3.1
AVLACLPRLUIRSUCHIHAH
EPSS
82.61%
99.6th percentile
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).

Affected

57 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debiandebian_linux
debianopenssl< openssl 1.1.1o-1 (bookworm)openssl 1.1.1o-1 (bookworm)
debianopenssl< openssl 3.0.4-1 (bookworm)openssl 3.0.4-1 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
msrcazl3_edk2_20230301gitf80f052277c8-37_on_azure_linux_3.0
msrcazl3_edk2_20240223gitedc6681206c1-1_on_azure_linux_3.0
msrcazl3_hvloader_1.0.1-1_on_azure_linux_3.0
msrcazl3_hvloader_1.0.1-2_on_azure_linux_3.0
msrcazl3_rust_1.75.0-14_on_azure_linux_3.0
msrcazl3_rust_1.86.0-1_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_openssl_1.1.1k-15_on_cbl_mariner_2.0
msrccbl_mariner_1.0_arm
msrccbl_mariner_1.0_x64
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64
msrccm1_openssl_1.1.1k-10_on_cbl_mariner_1.0
nodejsnodejs>= 0 < 12.22.9~dfsg-1ubuntu3.112.22.9~dfsg-1ubuntu3.1
opensslopenssl
opensslopenssl
opensslopenssl

Detection & IOCsextracted from sources · hover to see the quote

filenamec_rehash
  • Monitor execution of the c_rehash script, especially when invoked automatically by the OS, as it may be used to inject shell metacharacters via certificate filenames to execute arbitrary commands.
  • Alert on presence or execution of the c_rehash script on systems where it is not expected; the script is considered obsolete and should be replaced by the OpenSSL rehash command line tool.
  • On Red Hat systems, check for the c_rehash script in the openssl-perl package (available only through the Optional repository), as this is the vulnerable delivery vector on RHEL 7.
  • Detect certificate filenames containing shell metacharacters being passed to c_rehash, as these can be used to inject commands executed through the shell.
  • ·The vulnerability is local in scope per Debian's tracker; exploitation requires the c_rehash script to be automatically executed by the OS or manually run against attacker-controlled certificate filenames.
  • ·Red Hat systems are not vulnerable by default as c_rehash is not included in the default installation and is never executed automatically; only RHEL 7 via the unsupported Optional repository ships the vulnerable openssl-perl package.
  • ·The CVSS v3 score of 9.8 assigned by some vendors (e.g., Siemens/CISA) reflects a network-exploitable scenario where the script is automatically executed on the OS, not a universally applicable score.

CVSS provenance

nvdv3.17.3HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv7.5HIGH
vendor_oracle9.8HIGH
vendor_ubuntu7.5HIGH
vendor_debian7.3HIGH
vendor_msrc7.3HIGH
vendor_redhat7.3HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.