# CVE-2022-1292: libssl3t64: The c_rehash script does not properly sanitise shell metacharacters toprevent command injection

CVE-2022-1292 is fixed in 15 products on 1 platform, first by libssl1.0.0 1.0.2n-1ubuntu5.9, released May 2, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-1292
- Priority: High
- CVSS: 9.8 (Medium)
- EPSS: 0.8261
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 2, 2022

## Description

The c_rehash script does not properly sanitise shell metacharacters toprevent command injection. This script is distributed by some operatingsystems in a manner where it is automatically executed. On such operatingsystems, an attacker could execute arbitrary commands with the privilegesof the script. Use of the c_rehash script is considered obsolete and shouldbe 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 (Affected1.1.1-1.1.1n). Fixed in OpenSSL 1.0.2ze (Affected 1.0.2-1.0.2zd).

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libnode72 Ubuntu 22.04.1 LTS (jammy) | 12.22.9~dfsg-1ubuntu3.1 | [libnode72 12.22.9~dfsg-1ubuntu3.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libnode72-12.22.9-dfsg-1ubuntu3.1.md) | Jul 4, 2022 |
| Linux | libssl1.0.0 Ubuntu 18.04.6 LTS (bionic) | 1.0.2n-1ubuntu5.9 | [libssl1.0.0 1.0.2n-1ubuntu5.9](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libssl1.0.0-1.0.2n-1ubuntu5.9.md) | May 2, 2022 |
| Linux | libssl1.1 Ubuntu 18.04.6 LTS (bionic) | 1.1.1-1ubuntu2.1~18.04.17 | [libssl1.1 1.1.1-1ubuntu2.1~18.04.17](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libssl1.1-1.1.1-1ubuntu2.1-18.04.17.md) | May 2, 2022 |
| Linux | libssl1.1 Ubuntu 20.04 LTS (focal) | 1.1.1f-1ubuntu2.13 | [libssl1.1 1.1.1f-1ubuntu2.13](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libssl1.1-1.1.1f-1ubuntu2.13.md) | May 2, 2022 |
| Linux | libssl3 Ubuntu 22.04.1 LTS (jammy) | 3.0.2-0ubuntu1.1 | [libssl3 3.0.2-0ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libssl3-3.0.2-0ubuntu1.1.md) | May 2, 2022 |
| Linux | libssl3t64 Ubuntu 24.10 (oracular) | 3.0.2-0ubuntu2 | [libssl3t64 3.0.2-0ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libssl3t64-3.0.2-0ubuntu2.md) | May 3, 2022 |
| Linux | libssl3t64 Ubuntu 25.04 (plucky) | 3.0.2-0ubuntu2 | [libssl3t64 3.0.2-0ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libssl3t64-3.0.2-0ubuntu2.md) | May 3, 2022 |
| Linux | nodejs Ubuntu 22.04.1 LTS (jammy) | 12.22.9~dfsg-1ubuntu3.1 | [nodejs 12.22.9~dfsg-1ubuntu3.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-nodejs-12.22.9-dfsg-1ubuntu3.1.md) | Jul 4, 2022 |
| Linux | openssl Debian 11.6 (bullseye) | 1.1.1n-0+deb11u2 | [DSA-5139-1](https://patchblox.com/security/data/fix/linux/dsa-5139-1.md) | May 17, 2022 |
| Linux | openssl Debian 12.15 (bookworm) | 1.1.1o-1 | [DEBIAN-CVE-2022-1292](https://patchblox.com/security/data/fix/linux/debian-cve-2022-1292.md) | May 3, 2022 |
| Linux | openssl Debian 13.5 (trixie) | 1.1.1o-1 | [DEBIAN-CVE-2022-1292](https://patchblox.com/security/data/fix/linux/debian-cve-2022-1292.md) | May 3, 2022 |
| Linux | openssl Debian 14 | 1.1.1o-1 | [DEBIAN-CVE-2022-1292](https://patchblox.com/security/data/fix/linux/debian-cve-2022-1292.md) | May 3, 2022 |
| Linux | openssl RHEL 8 | 1:1.1.1k-7.el8_6 | [RHSA-2022:5818](https://patchblox.com/security/data/fix/linux/rhsa-2022-5818.md) | Aug 3, 2022 |
| Linux | openssl RHEL 9 | 1:3.0.1-41.el9_0 | [RHSA-2022:6224](https://patchblox.com/security/data/fix/linux/rhsa-2022-6224.md) | Aug 30, 2022 |
| Linux | openssl Ubuntu 18.04.6 LTS (bionic) | 1.1.1-1ubuntu2.1~18.04.17 | [openssl 1.1.1-1ubuntu2.1~18.04.17](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-openssl-1.1.1-1ubuntu2.1-18.04.17.md) | May 2, 2022 |
| Linux | openssl Ubuntu 20.04 LTS (focal) | 1.1.1f-1ubuntu2.13 | [openssl 1.1.1f-1ubuntu2.13](https://patchblox.com/security/data/fix/linux/ubuntu-focal-openssl-1.1.1f-1ubuntu2.13.md) | May 2, 2022 |
| Linux | openssl Ubuntu 22.04.1 LTS (jammy) | 3.0.2-0ubuntu1.1 | [openssl 3.0.2-0ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-openssl-3.0.2-0ubuntu1.1.md) | May 2, 2022 |
| Linux | openssl Ubuntu 24.10 (oracular) | 3.0.2-0ubuntu2 | [openssl 3.0.2-0ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-openssl-3.0.2-0ubuntu2.md) | May 3, 2022 |
| Linux | openssl Ubuntu 25.04 (plucky) | 3.0.2-0ubuntu2 | [openssl 3.0.2-0ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-openssl-3.0.2-0ubuntu2.md) | May 3, 2022 |
| Linux | openssl almalinux 8 | 1:1.1.1k-7.el8_6 | [ALSA-2022:5818](https://patchblox.com/security/data/fix/linux/alsa-2022-5818.md) | Aug 3, 2022 |
| Linux | openssl almalinux 9 | 1:3.0.1-41.el9_0 | [ALSA-2022:6224](https://patchblox.com/security/data/fix/linux/alsa-2022-6224.md) | Aug 30, 2022 |
| Linux | openssl amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl ol 8 | 2:1.1.1k-7.ksplice1.el8_6 | [ELSA-2022-9683](https://patchblox.com/security/data/fix/linux/elsa-2022-9683.md) | Aug 5, 2022 |
| Linux | openssl ol 9 | 2:3.0.1-41.0.1.ksplice1.el9_0 | [ELSA-2022-9751](https://patchblox.com/security/data/fix/linux/elsa-2022-9751.md) | Aug 31, 2022 |
| Linux | openssl rocky 8 | 1:1.1.1k-7.el8_6 | [RLSA-2022:5818](https://patchblox.com/security/data/fix/linux/rlsa-2022-5818.md) | Aug 2, 2022 |
| Linux | openssl-debuginfo amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-debugsource amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-debugsource ol 8 | 2:1.1.1k-7.ksplice1.el8_6 | [ELSA-2022-9683](https://patchblox.com/security/data/fix/linux/elsa-2022-9683.md) | Aug 5, 2022 |
| Linux | openssl-devel RHEL 8 | 1:1.1.1k-7.el8_6 | [RHSA-2022:5818](https://patchblox.com/security/data/fix/linux/rhsa-2022-5818.md) | Aug 3, 2022 |
| Linux | openssl-devel RHEL 9 | 1:3.0.1-41.el9_0 | [RHSA-2022:6224](https://patchblox.com/security/data/fix/linux/rhsa-2022-6224.md) | Aug 30, 2022 |
| Linux | openssl-devel almalinux 8 | 1:1.1.1k-7.el8_6 | [ALSA-2022:5818](https://patchblox.com/security/data/fix/linux/alsa-2022-5818.md) | Aug 3, 2022 |
| Linux | openssl-devel almalinux 9 | 1:3.0.1-41.el9_0 | [ALSA-2022:6224](https://patchblox.com/security/data/fix/linux/alsa-2022-6224.md) | Aug 30, 2022 |
| Linux | openssl-devel amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-devel ol 8 | 2:1.1.1k-7.ksplice1.el8_6 | [ELSA-2022-9683](https://patchblox.com/security/data/fix/linux/elsa-2022-9683.md) | Aug 5, 2022 |
| Linux | openssl-devel ol 9 | 2:3.0.1-41.0.1.ksplice1.el9_0 | [ELSA-2022-9751](https://patchblox.com/security/data/fix/linux/elsa-2022-9751.md) | Aug 31, 2022 |
| Linux | openssl-libs RHEL 8 | 1:1.1.1k-7.el8_6 | [RHSA-2022:5818](https://patchblox.com/security/data/fix/linux/rhsa-2022-5818.md) | Aug 3, 2022 |
| Linux | openssl-libs RHEL 9 | 1:3.0.1-41.el9_0 | [RHSA-2022:6224](https://patchblox.com/security/data/fix/linux/rhsa-2022-6224.md) | Aug 30, 2022 |
| Linux | openssl-libs almalinux 8 | 1:1.1.1k-7.el8_6 | [ALSA-2022:5818](https://patchblox.com/security/data/fix/linux/alsa-2022-5818.md) | Aug 3, 2022 |
| Linux | openssl-libs almalinux 9 | 1:3.0.1-41.el9_0 | [ALSA-2022:6224](https://patchblox.com/security/data/fix/linux/alsa-2022-6224.md) | Aug 30, 2022 |
| Linux | openssl-libs amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-libs ol 8 | 2:1.1.1k-7.ksplice1.el8_6 | [ELSA-2022-9683](https://patchblox.com/security/data/fix/linux/elsa-2022-9683.md) | Aug 5, 2022 |
| Linux | openssl-libs ol 9 | 2:3.0.1-41.0.1.ksplice1.el9_0 | [ELSA-2022-9751](https://patchblox.com/security/data/fix/linux/elsa-2022-9751.md) | Aug 31, 2022 |
| Linux | openssl-libs-debuginfo amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-perl RHEL 8 | 1:1.1.1k-7.el8_6 | [RHSA-2022:5818](https://patchblox.com/security/data/fix/linux/rhsa-2022-5818.md) | Aug 3, 2022 |
| Linux | openssl-perl RHEL 9 | 1:3.0.1-41.el9_0 | [RHSA-2022:6224](https://patchblox.com/security/data/fix/linux/rhsa-2022-6224.md) | Aug 30, 2022 |
| Linux | openssl-perl almalinux 8 | 1:1.1.1k-7.el8_6 | [ALSA-2022:5818](https://patchblox.com/security/data/fix/linux/alsa-2022-5818.md) | Aug 3, 2022 |
| Linux | openssl-perl almalinux 9 | 1:3.0.1-41.el9_0 | [ALSA-2022:6224](https://patchblox.com/security/data/fix/linux/alsa-2022-6224.md) | Aug 30, 2022 |
| Linux | openssl-perl amzn 2023 | 1:3.0.5-1.amzn2023.0.4 | [ALAS2023-2023-051](https://patchblox.com/security/data/fix/linux/alas2023-2023-051.md) | Feb 17, 2023 |
| Linux | openssl-perl ol 8 | 2:1.1.1k-7.ksplice1.el8_6 | [ELSA-2022-9683](https://patchblox.com/security/data/fix/linux/elsa-2022-9683.md) | Aug 5, 2022 |
| Linux | openssl-perl ol 9 | 2:3.0.1-41.0.1.ksplice1.el9_0 | [ELSA-2022-9751](https://patchblox.com/security/data/fix/linux/elsa-2022-9751.md) | Aug 31, 2022 |
| Linux | openssl-static ol 8 | 2:1.1.1k-7.ksplice1.el8_6 | [ELSA-2022-9683](https://patchblox.com/security/data/fix/linux/elsa-2022-9683.md) | Aug 5, 2022 |
| Linux | openssl1.0 Ubuntu 18.04.6 LTS (bionic) | 1.0.2n-1ubuntu5.9 | [openssl1.0 1.0.2n-1ubuntu5.9](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-openssl1.0-1.0.2n-1ubuntu5.9.md) | May 2, 2022 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
