Vulnerability · Published Apr 13, 2023 · Assigned by mitre
CVE-2023-30630
High 7.1
In plain English
A high-severity security flaw in the dmidecode package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | dmidecode | 1:3.3-4.el8_8.1 | ALSA-2023:5252 |
| AlmaLinux:9 | dmidecode | 1:3.3-7.el9_2.1 | ALSA-2023:5061 |
| Debian:12 | dmidecode | no fix listed | DEBIAN-CVE-2023-30630 |
| Debian:13 | dmidecode | 3.5-1 | DEBIAN-CVE-2023-30630 |
| Debian:14 | dmidecode | 3.5-1 | DEBIAN-CVE-2023-30630 |
| Rocky Linux:9 | dmidecode | 1:3.3-7.el9_2.1 | RLSA-2023:5061 |
| Ubuntu:22.04:LTS | cpu-x | no fix listed | UBUNTU-CVE-2023-30630 |
| Ubuntu:24.04:LTS | cpu-x | no fix listed | UBUNTU-CVE-2023-30630 |
| Ubuntu:25.10 | cpu-x | no fix listed | UBUNTU-CVE-2023-30630 |
| Ubuntu:26.04:LTS | cpu-x | no fix listed | UBUNTU-CVE-2023-30630 |
| Ubuntu:26.10 | cpu-x | no fix listed | UBUNTU-CVE-2023-30630 |
| Ubuntu:22.04:LTS | dmidecode | no fix listed | UBUNTU-CVE-2023-30630 |
Affected products (as reported)
Weakness: CWE-23 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
References
- https://github.com/adamreiser/dmiwrite
- https://lists.nongnu.org/archive/html/dmidecode-devel/2023-03/msg00003.html
- https://git.savannah.nongnu.org/cgit/dmidecode.git/commit/?id=d8cfbc808f387e87091c25e7d5b8c2bb348bb206
- https://git.savannah.nongnu.org/cgit/dmidecode.git/commit/?id=6ca381c1247c81f74e1ca4e7706f70bdda72e6f2