Local File Overwrite Vulnerability in Dmidecode Package

dmidecode Updated 02 Oct 2025

Summary

13/04/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-30630: Dmidecode before 3.5 allows -dump-bin to overwrite a local file. Affects dmidecode versions < 3.5-1. Fixed in 3.5-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Dmidecode is a tool for retrieving hardware information from the BIOS. It provides a way to decode the data structures in the system's DMI (Desktop Management Interface) table, which contains information about the system's hardware components. The Dmidecode package is widely used in various Linux distributions, including Debian. However, prior to version 3.5, Dmidecode had a vulnerability that allowed users to overwrite local files when using the '-dump-bin' option, which could lead to unauthorized privilege escalation.

Vulnerability Detail

The vulnerability in Dmidecode, identified as CVE-2023-30630, allows the '-dump-bin' command to overwrite local files. This poses a significant security risk, especially when Dmidecode is executed with elevated privileges (e.g., via Sudo). Although a patch was introduced in version 3.5 to mitigate this issue, some experts argue that it does not fully address the vulnerability, as there are alternative attack vectors that could still lead to privilege escalation without overwriting existing files.

How To Fix

Minimum fixed version

3.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade dmidecode

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using the '-dump-bin' option with Dmidecode until you can update to the patched version. Additionally, consider running Dmidecode with restricted permissions to minimize the risk of privilege escalation.

Conclusion

The Dmidecode package has a significant vulnerability that allows local file overwriting, which can lead to unauthorized privilege escalation. It is crucial to update to version 3.5-1 or later to mitigate this risk. Users should also consider using workarounds until they can apply the necessary updates.

See every vulnerability recorded for dmidecode →

Share this vulnerability

FAQ

The vulnerability can lead to unauthorized privilege escalation, allowing attackers to overwrite local files and potentially execute malicious code.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If an immediate update is not possible, refrain from using the '-dump-bin' option and run Dmidecode with limited permissions to reduce risk.

While the patch in version 3.5-1 addresses the file overwriting issue, some experts believe it does not cover all potential attack vectors.

For more details about Dmidecode, you can refer to its official documentation or the Debian package repository.

Related vulnerabilities

Recent vulnerabilities recorded for dmidecode.

How To Fix

Minimum fixed version

3.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade dmidecode

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback