cve.bz

CVE-2023-30630 nongnu dmidecode: Relative Path Traversal

7.1 highExploit referenceEPSS 0.5%Fix available

High (7.1) in nongnu dmidecode. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 44th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-02-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-23 Relative Path Traversal
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-30630 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-30630?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-30630?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-30630 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nongnu:dmidecodebefore 3.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12dmidecodeno fix listedDEBIAN-CVE-2023-30630
Debian13, 14dmidecode3.5-1DEBIAN-CVE-2023-30630
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTSdmidecodeno fix listedUBUNTU-CVE-2023-30630
Ubuntu20.04:LTS, 22.04:LTScpu-x, dmidecodeno fix listedUBUNTU-CVE-2023-30630
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morecpu-xno fix listedUBUNTU-CVE-2023-30630
Red Hatenterprise_linux:8::baseosdmidecode, dmidecode-debuginfo, dmidecode-debugsource1:3.3-4.el8_8.1RHSA-2023:5252
Red Hatenterprise_linux:9::baseosdmidecode, dmidecode-debuginfo, dmidecode-debugsource1:3.3-7.el9_2.1RHSA-2023:5061
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 14 moredmidecode3.2-150100.9.16.1SUSE-SU-2023:2215-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Module for Basesystem 15 SP4dmidecode3.4-150400.16.8.1SUSE-SU-2023:1947-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-ESPOS, Linux Enterprise Server 12 SP4-LTSS and 5 moredmidecode3.0-10.6.1SUSE-SU-2023:2044-1
openSUSELeap 15.4, Leap Micro 5.3dmidecode3.4-150400.16.8.1SUSE-SU-2023:1947-1
AlmaLinux8dmidecode1:3.3-4.el8_8.1ALSA-2023:5252
AlmaLinux9dmidecode1:3.3-7.el9_2.1ALSA-2023:5061
Rocky Linux9dmidecode1:3.3-7.el9_2.1RLSA-2023:5061
Azure Linux2dmidecode3.5-1AZL-26138
Alpaquita23dmidecode3.5-r0BELL-CVE-2023-30630

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The impact of the CVE marked as moderate as this CVE relies on an improbable non-default configuration of allowing an unprivileged user to run demidecode under sudo with a specific insecure configuration in the sudoers file. Using dmidecode in such a manner is no different than allowing any other tool to unexpectedly run with elevated privileges.

Red Hat's mitigation

Do not configure sudoers file to allow running dmidecode with elevated privileges.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8dmidecode-1:3.3-4.el8_8.1Fixed 2023-09-19RHSA-2023:5252
Red Hat Enterprise Linux 9dmidecode-1:3.3-7.el9_2.1Fixed 2023-09-12RHSA-2023:5061
Red Hat Enterprise Linux 6dmidecodeOut of support scope
Red Hat Enterprise Linux 7dmidecodeOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-30630.

Attack patterns (CAPEC)

  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-139 Relative Path Traversal Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON