CVE-2022-1292
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| openssl | conan.io | 3.0.3, 1.1.1o, 1.0.2ze |
| edk2-tools-python | Amazon Linux | 20200801stable-1.amzn2.0.5 |
| openssl11-libs | Amazon Linux | 1:1.1.1g-12.amzn2.0.8 |
| openssl-perl | Amazon Linux | 1:3.0.5-1.amzn2023.0.4, 1:1.0.2k-24.amzn2.0.3 |
| openssl11-static | Amazon Linux | 1:1.1.1g-12.amzn2.0.8 |
| edk2-tools | Amazon Linux | 20200801stable-1.amzn2.0.5 |
| openssl11-devel | Amazon Linux | 1:1.1.1g-12.amzn2.0.8 |
| openssl-libs | Amazon Linux | 1:3.0.5-1.amzn2023.0.4, 1:1.0.2k-24.amzn2.0.3 |
| openssl-devel | Amazon Linux | 1:1.0.2k-24.amzn2.0.3 |
| openssl-static | Amazon Linux | 1:1.0.2k-24.amzn2.0.3 |
| openssl | Arch Linux | 1.1.1.o-1 |
| edk2-ovmf | Amazon Linux | 20200801stable-1.amzn2.0.5 |
9 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| OpenSSL | OpenSSL | 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) |
| Siemens | SINAMICS PERFECT HARMONY GH180 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| chainguard | ruby-3.1 | * |
| ConanCenter | openssl | 3.0.0, 1.0.2, 1.1.1 |
| amazon:2 | edk2-tools-python | 0 |
| alpine | openssl | * |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | openssl11-libs | 0 |
| alpine | openssl1.1-compat | * |
| amazon:2 | openssl-perl | 0 |
| amazon:2 | openssl11-static | 0 |
| alpine | openssl3 | * |
| amazon:2 | edk2-tools | 0 |
| wolfi | ruby-3.1 | * |
| OpenSSL | OpenSSL | |
| amazon:2 | openssl11-devel | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2 | openssl-libs | 0 |
| amazon:2023 | openssl-perl | 0 |
…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
References
- [debian-lts-announce] 20220515 [SECURITY] [DLA 3008-1] openssl security update mailing-list
- DSA-5139 vendor-advisory
- FEDORA-2022-b651cb69e6 vendor-advisory
- FEDORA-2022-c9c02865f6 vendor-advisory
- GLSA-202210-02 vendor-advisory
- https://gitlab.com/fraf0/cve-2022-1292-re_score-analysis url
- https://cert-portal.siemens.com/productcert/html/ssa-953464.html url
- https://cert-portal.siemens.com/productcert/html/ssa-419740.html url
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html url
- https://cert-portal.siemens.com/productcert/html/ssa-942865.html url
- https://cert-portal.siemens.com/productcert/html/ssa-146325.html url
…and 5 more