# CVE-2022-1292: The c_rehash script allows command injection

> Attackers can execute arbitrary commands via the c_rehash script due to improper sanitization of shell metacharacters, affecting OpenSSL users.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 May 2022
- **Updated:** 14 Oct 2026
- **Also known as:** AZL-41748, AZL-9649, DEBIAN-CVE-2022-1292, DLA-3008-1, DSA-5139-1, GHSA-qjmp-vmxc-7p8r, JLSEC-2026-228, MGASA-2022-0173, OESA-2022-1673, OESA-2022-1951, SUSE-SU-2022:2068-1, SUSE-SU-2022:2075-1, SUSE-SU-2022:2098-1, SUSE-SU-2022:2106-1, UBUNTU-CVE-2022-1292, openSUSE-SU-2024:12138-1

## What is CVE-2022-1292?

CVE-2022-1292 is a critical command injection vulnerability in Debian Debian Linux, published on 3 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command)

## Which versions are affected by CVE-2022-1292?

It affects 35 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `openssl-1_1` | SUSE:Enterprise Storage 6 | All versions | 1.1.0i-150100.14.30.1 |
| `openssl` | SUSE:HPE Helion OpenStack 8 | All versions | 1.0.2j-60.80.1 |
| `openssl-1_1` | SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 1.1.0i-150100.14.30.1 |
| `openssl-1_1` | SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 1.1.0i-150100.14.30.1 |
| `openssl-1_1` | SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 1.1.0i-150000.4.69.1 |
| `openssl-1_1` | SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 1.1.0i-150000.4.69.1 |
| `openssl` | SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 1.0.2j-60.80.1 |
| `openssl` | SUSE:Linux Enterprise Server 12 SP3-BCL | All versions | 1.0.2j-60.80.1 |
| `openssl` | SUSE:Linux Enterprise Server 12 SP3-LTSS | All versions | 1.0.2j-60.80.1 |
| `openssl-1_0_0` | SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 1.0.2p-3.53.1 |
| `openssl-1_0_0` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 1.0.2p-3.53.1 |
| `openssl-1_1` | SUSE:Linux Enterprise Server 15 SP1-BCL | All versions | 1.1.0i-150100.14.30.1 |
| `openssl-1_1` | SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 1.1.0i-150100.14.30.1 |
| `openssl-1_1` | SUSE:Linux Enterprise Server 15-LTSS | All versions | 1.1.0i-150000.4.69.1 |
| `openssl` | SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | All versions | 1.0.2j-60.80.1 |
| `openssl-1_0_0` | SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 1.0.2p-3.53.1 |
| `openssl-1_0_0` | SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 1.0.2p-3.53.1 |
| `openssl-1_1` | SUSE:Linux Enterprise Server for SAP Applications 15 | All versions | 1.1.0i-150000.4.69.1 |
| `openssl-1_1` | SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 1.1.0i-150100.14.30.1 |
| `openssl-1_0_0` | SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 1.0.2p-3.53.1 |
| `openssl` | SUSE:OpenStack Cloud 8 | All versions | 1.0.2j-60.80.1 |
| `openssl-1_0_0` | SUSE:OpenStack Cloud 9 | All versions | 1.0.2p-3.53.1 |
| `openssl` | SUSE:OpenStack Cloud Crowbar 8 | All versions | 1.0.2j-60.80.1 |
| `openssl-1_0_0` | SUSE:OpenStack Cloud Crowbar 9 | All versions | 1.0.2p-3.53.1 |
| `openssl-1_1` | openSUSE:Tumbleweed | All versions | 1.1.1o-1.1 |

Products: Debian Debian Linux, Fedoraproject Fedora, Netapp A250 Firmware, Netapp A700s Firmware, Netapp Active Iq Unified Manager, Netapp Aff 500f Firmware, Netapp Aff 8300 Firmware, Netapp Aff 8700 Firmware, Netapp Aff A400 Firmware, Netapp Clustered Data Ontap, Netapp Clustered Data Ontap Antivirus Connector, Netapp Fabric-Attached Storage A400 Firmware, Netapp Fas 500f Firmware, Netapp Fas 8300 Firmware, Netapp Fas 8700 Firmware, Netapp H300e Firmware, Netapp H300s Firmware, Netapp H410s Firmware, Netapp H500e Firmware, Netapp H500s Firmware and 15 more.

## How do I fix CVE-2022-1292?

Upgrade to a fixed version.

## Is CVE-2022-1292 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-1292 exists.

Public exploit code:

- CVE-2022-1292 OpenSSL c_rehash Vulnerability - POC (github_poc): https://github.com/alcaparra/CVE-2022-1292
- Automation to validate the impact of the vulnerability CVE-2022-1292 on a specific system. (github_poc): https://github.com/und3sc0n0c1d0/CVE-2022-1292
- OpenSSL (github_poc): https://github.com/greek0x0/CVE-2022-1292
- CVE-2022-1292 OpenSSL c_rehash Vulnerability (github_poc): https://github.com/rama291041610/CVE-2022-1292
- CVE-2022-1292 (github_poc): https://github.com/li8u99/CVE-2022-1292

## Other vulnerabilities in Debian Debian Linux

- [CVE-2015-3306](https://insights.sbomify.com/CVE-2015-3306/): ProFTPD Improper Access Control (critical 10.0, exploited in the wild)
- [CVE-2025-49113](https://insights.sbomify.com/CVE-2025-49113/): RoundCube Webmail Deserialization of Untrusted Data (critical 9.9, exploited in the wild)
- [CVE-2026-24061](https://insights.sbomify.com/CVE-2026-24061/): GNU InetUtils Argument Injection (critical 9.8, exploited in the wild)
- [CVE-2025-39682](https://insights.sbomify.com/CVE-2025-39682/): Linux Kernel Improper Check for Unusual or Exceptional Conditions (critical 9.8, exploited in the wild)
- [CVE-2024-9680](https://insights.sbomify.com/CVE-2024-9680/): Mozilla Firefox Use-After-Free (critical 9.8, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-1292 and fix it if it is affected.

What it is: CVE-2022-1292 is a critical command injection vulnerability in Debian Debian Linux, published on 3 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-1292 exists.

Affected product: Debian Debian Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-1292/ (Markdown: https://insights.sbomify.com/CVE-2022-1292/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-1292
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-1292
- OSV: https://osv.dev/vulnerability/CVE-2022-1292

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-1292/
Summaries are generated and may contain mistakes; the official description above is the record.
