CVE-2022-1292
The c_rehash script allows command injection
Check your servers for CVE-2022-1292
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-1292 affects openssl, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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).
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 83.0%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 30 Dec 2025):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| OpenSSL |
affected Fixed in OpenSSL 3.0.3 (Affected 3.0.0,3.0.1,3.0.2) affected Fixed in OpenSSL 1.1.1o (Affected 1.1.1-1.1.1n) affected Fixed in OpenSSL 1.0.2ze (Affected 1.0.2-1.0.2zd)
|
Is my server affected?
Find the installed version of openssl and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i openssl
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-1292 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-1292RHEL, Rocky, Alma, Fedora
rpm -q openssl
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-1292Alpine
apk list --installed | grep -i opensslWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-1292
trivy image --scanners vuln IMAGE | grep CVE-2022-1292
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- DSA-5139 debian.org · vendor advisory
- FEDORA-2022-b651cb69e6 lists.fedoraproject.org · vendor advisory
- FEDORA-2022-c9c02865f6 lists.fedoraproject.org · vendor advisory
- GLSA-202210-02 security.gentoo.org · vendor advisory
Other references
- https://www.openssl.org/news/secadv/20220503.txt 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=e5fd1728ef4c7a5bf7c7a7163ca60370460a6e23 git.openssl.org
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=548d3f280a6e737673f5b61fce24bb100108dfeb git.openssl.org
- [debian-lts-announce] 20220515 [SECURITY] [DLA 3008-1] openssl security update lists.debian.org · mailing list
- https://www.oracle.com/security-alerts/cpujul2022.html oracle.com
- https://security.netapp.com/advisory/ntap-20220602-0009/ security.netapp.com
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0011 psirt.global.sonicwall.com
- https://security.netapp.com/advisory/ntap-20220729-0004/ security.netapp.com
- https://cert-portal.siemens.com/productcert/pdf/ssa-953464.pdf cert-portal.siemens.com
- https://gitlab.com/fraf0/cve-2022-1292-re_score-analysis gitlab.com
- https://cert-portal.siemens.com/productcert/html/ssa-953464.html cert-portal.siemens.com
5 more
- 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-146325.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html cert-portal.siemens.com
Source: the record CVE-2022-1292 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse