# CVE-2023-30630: Path traversal in n/a

> Attackers can exploit dmidecode's dump-bin feature to overwrite or create files, potentially leading to privilege escalation when run with sudo.

- **Severity:** High 7.1 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 13 Apr 2023
- **Updated:** 4 Mar 2025
- **Also known as:** ALSA-2023:5061, ALSA-2023:5252, AZL-26138, BELL-CVE-2023-30630, CLSA-2025-1755004236, CLSA-2025-1755008582, CLSA-2025-1755271152, CLSA-2025-1755271747, CLSA-2025-1758228073, CLSA-2025-1758228143, CLSA-2025-1762449077, CLSA-2026-1777040413, CLSA-2026-1777538564, CLSA-2026-1777996005, CLSA-2026-1777996588, DEBIAN-CVE-2023-30630, ECHO-4a7c-5102-1f27, GHSA-9r2p-xmm5-5ppg, MGASA-2023-0180, OESA-2023-1264, RHSA-2023:5061, RHSA-2023:5252, RLSA-2023:5061, SUSE-SU-2023:1947-1, SUSE-SU-2023:2044-1, SUSE-SU-2023:2215-1, UBUNTU-CVE-2023-30630

## What is CVE-2023-30630?

CVE-2023-30630 is a high-severity path traversal vulnerability in n/a, published on 13 Apr 2023. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

Dmidecode before 3.5 allows -dump-bin to overwrite a local file. This has security relevance because, for example, execution of Dmidecode via Sudo is plausible. NOTE: Some third parties have indicated the fix in 3.5 does not adequately address the vulnerability. The argument is that the proposed patch prevents dmidecode from writing to an existing file. However, there are multiple attack vectors that would not require overwriting an existing file that would provide the same level of unauthorized privilege escalation (e.g. creating a new file in /etc/cron.hourly).

Weakness: CWE-23 (Relative Path Traversal)

## Which versions are affected by CVE-2023-30630?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `dmidecode` | AlmaLinux:8 | All versions | 1:3.3-4.el8_8.1 |
| `dmidecode` | AlmaLinux:9 | All versions | 1:3.3-7.el9_2.1 |
| `dmidecode` | Red Hat:enterprise_linux:8::baseos | All versions | 1:3.3-4.el8_8.1 |
| `dmidecode-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 1:3.3-4.el8_8.1 |
| `dmidecode-debugsource` | Red Hat:enterprise_linux:8::baseos | All versions | 1:3.3-4.el8_8.1 |
| `dmidecode` | Red Hat:enterprise_linux:9::baseos | All versions | 1:3.3-7.el9_2.1 |
| `dmidecode-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 1:3.3-7.el9_2.1 |
| `dmidecode-debugsource` | Red Hat:enterprise_linux:9::baseos | All versions | 1:3.3-7.el9_2.1 |
| `dmidecode` | Rocky Linux:9 | All versions | 1:3.3-7.el9_2.1 |
| `dmidecode` | SUSE:Enterprise Storage 7 | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Enterprise Storage 7.1 | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise Micro 5.1 | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise Micro 5.2 | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise Micro 5.3 | All versions | 3.4-150400.16.8.1 |
| `dmidecode` | SUSE:Linux Enterprise Micro 5.4 | All versions | 3.4-150400.16.8.1 |
| `dmidecode` | SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 3.4-150400.16.8.1 |
| `dmidecode` | SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 3.0-10.6.1 |
| `dmidecode` | SUSE:Linux Enterprise Server 12 SP4-ESPOS | All versions | 3.0-10.6.1 |
| `dmidecode` | SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 3.0-10.6.1 |
| `dmidecode` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 3.0-10.6.1 |
| `dmidecode` | SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 3.0-10.6.1 |
| `dmidecode` | SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 3.0-10.6.1 |
| `dmidecode` | SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Manager Proxy 4.2 | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:Manager Server 4.2 | All versions | 3.2-150100.9.16.1 |
| `dmidecode` | SUSE:OpenStack Cloud 9 | All versions | 3.0-10.6.1 |
| `dmidecode` | SUSE:OpenStack Cloud Crowbar 9 | All versions | 3.0-10.6.1 |
| `dmidecode` | openSUSE:Leap 15.4 | All versions | 3.4-150400.16.8.1 |
| `dmidecode` | openSUSE:Leap Micro 5.3 | All versions | 3.4-150400.16.8.1 |

Products: Nongnu Dmidecode.

## How do I fix CVE-2023-30630?

Apply the vendor's patch.

## Is CVE-2023-30630 being exploited?

There is no known exploitation of CVE-2023-30630 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-30630 and fix it if it is affected.

What it is: CVE-2023-30630 is a high-severity path traversal vulnerability in n/a, published on 13 Apr 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-30630 in the wild and no public exploit code.

Affected product: n/a. 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-2023-30630/ (Markdown: https://insights.sbomify.com/CVE-2023-30630/index.md)
```

## Sources

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

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