cve.bz

CVE-2021-3504 Out-of-bounds Read

5.4 mediumEPSS 1.8%Fix available

Medium (5.4). EPSS 1.8% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in the hivex library in versions before 1.3.20. It is caused due to a lack of bounds check within the hivex_open function. An attacker could input a specially crafted Windows Registry (hive) file which would cause hivex to read memory beyond its normal bounds or cause the program to crash. The highest threat from this vulnerability is to system availability.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L
EPSS
1.8% (unchanged from 1.8% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
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-2021-3504 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3504?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3504?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-2021-3504 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
redhat:hivexbefore 1.3.20
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
debian:debian_linux9.0
fedoraproject:fedora34

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9hivex1.3.13-2+deb9u1DLA-2656-1
Debian10hivex1.3.18-1+deb10u1DSA-4913-1
Debian12, 13, 14hivex1.3.20-1DEBIAN-CVE-2021-3504
Ubuntu18.04:LTShivex1.3.15-1ubuntu0.1UBUNTU-CVE-2021-3504 USN-5148-1
Ubuntu20.04:LTShivex1.3.18-2ubuntu0.1UBUNTU-CVE-2021-3504 USN-5148-1
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morehivexno fix listedUBUNTU-CVE-2021-3504
UbuntuPro:14.04:LTShivex1.3.9-2ubuntu0.1~esm1UBUNTU-CVE-2021-3504 USN-5148-2
UbuntuPro:16.04:LTShivex1.3.13-1ubuntu0.1~esm1UBUNTU-CVE-2021-3504 USN-5148-2
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationhivex, perl-hivex, ruby-hivex and 5 more0:1.3.10-6.11.el7_9RHSA-2021:2318
Red Hatenterprise_linux:8::appstreamhivex, perl-hivex, ruby-hivex and 7 more0:1.3.18-21.module+el8.4.0+10770+19c037f9RHSA-2021:3061
Red Hatenterprise_linux:8::appstreamlibnbd, nbdfuse, libnbd-devel and 5 more0:1.2.2-1.module+el8.3.0+7353+9de0a3ccRHSA-2021:3061
Red Hatenterprise_linux:8::appstreamlibvirt, libvirt-nss, libvirt-docs and 49 more0:6.0.0-35.1.module+el8.4.0+11273+64eb94efRHSA-2021:3061
Red Hatenterprise_linux:8::appstreamnbdkit, nbdkit-devel, nbdkit-server and 24 more0:1.16.2-4.module+el8.3.0+6922+fd575af8RHSA-2021:3061
Red Hatenterprise_linux:8::appstreamperl-Sys-Virt, libvirt-python, python3-libvirt and 4 more0:6.0.0-1.module+el8.3.0+6423+e4cb6418RHSA-2021:3061
Red Hatenterprise_linux:8::appstreamqemu-img, qemu-kvm, qemu-kvm-core and 18 more15:4.2.0-48.module+el8.4.0+11909+3300d70f.3RHSA-2021:3061
Red Hatenterprise_linux:8::appstreamseabios, seabios-bin, seavgabios-bin0:1.13.0-2.module+el8.3.0+7353+9de0a3ccRHSA-2021:3061
Red Hatenterprise_linux:8::appstreamsgabios, sgabios-bin1:0.20170427git-3.module+el8.1.0+4066+0f1aadabRHSA-2021:3061
Red Hatenterprise_linux:8::appstreamsupermin, supermin-devel, supermin-debuginfo and 1 more0:5.1.19-10.module+el8.3.0+6423+e4cb6418RHSA-2021:3061
Red Hatenterprise_linux:8::appstreamvirt-dib, virt-v2v, libguestfs and 33 more1:1.40.2-27.module+el8.4.0+9282+0bdec052RHSA-2021:3061
Red Hatenterprise_linux:8::appstream, enterprise_linux:8::crbSLOF0:20191022-3.git899d9883.module+el8.3.0+6423+e4cb6418RHSA-2021:3061
12 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3 and 2 morehivex1.3.14-5.3.1SUSE-SU-2021:1761-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5hivex1.3.10-5.3.1SUSE-SU-2021:1760-1
openSUSELeap 15.2hivex1.3.14-lp152.4.3.1openSUSE-SU-2021:0806-1
openSUSELeap 15.3hivex1.3.14-5.3.1openSUSE-SU-2021:1761-1
openSUSETumbleweedhivex1.3.21-2.2openSUSE-SU-2024:10845-1
AlmaLinux8libguestfs-winsupport8.2-1.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.6.0+2880+7d9e3703ALSA-2021:3061
AlmaLinux8libnbd, nbdfuse, libnbd-devel and 1 more1.2.2-1.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.6.0+2880+7d9e3703ALSA-2021:3061
AlmaLinux8nbdkit, nbdkit-devel, nbdkit-server and 11 more1.16.2-4.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.6.0+2880+7d9e3703ALSA-2021:3061
AlmaLinux8perl-Sys-Virt, python3-libvirt6.0.0-1.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8seabios, seabios-bin, seavgabios-bin1.13.0-2.module_el8.5.0+2608+72063365ALSA-2021:3061
AlmaLinux8sgabios, sgabios-bin1:0.20170427git-3.module_el8.5.0+2608+72063365ALSA-2021:3061
2 more for AlmaLinux in the JSON.
Rocky Linux8hivex0:1.3.18-21.module+el8.4.0+642+7e26f5e1RLSA-2021:3061
Rocky Linux8hivex0:1.3.18-21.module+el8.5.0+670+c4aa478cRLSA-2021:3061
Rocky Linux8libguestfs1:1.40.2-27.module+el8.4.0+534+4680a14eRLSA-2021:3061
Rocky Linux8libguestfs-winsupport0:8.2-1.module+el8.4.0+534+4680a14eRLSA-2021:3061
Rocky Linux8libiscsi0:1.18.0-8.module+el8.4.0+534+4680a14eRLSA-2021:3061
Rocky Linux8libiscsi0:1.18.0-8.module+el8.6.0+847+b490afddRLSA-2021:3061
Rocky Linux8libiscsi0:1.18.0-8.module+el8.7.0+1084+97b81f61RLSA-2021:3061
Rocky Linux8libnbd0:1.2.2-1.module+el8.4.0+534+4680a14eRLSA-2021:3061
Rocky Linux8libvirt0:6.0.0-35.1.module+el8.4.0+642+7e26f5e1RLSA-2021:3061
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.4.0+534+4680a14eRLSA-2021:3061
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.6.0+847+b490afddRLSA-2021:3061
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.7.0+1084+97b81f61RLSA-2021:3061
11 more for Rocky Linux in the JSON.
Alpinev3.13hivex1.3.19-r1ALPINE-CVE-2021-3504
Alpinev3.14, v3.15, v3.16 and 8 morehivex1.3.19-r2ALPINE-CVE-2021-3504
Azure Linux2hivex1.3.21-1AZL-6472

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; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The hivex utility being non-privileged, does not handle any confidential information. Any external program using the hivex library could be exposed to partial unavailability in case of a crash where a user can always retry the operation. As for libguestfs, a crash in hivex would not result in libguestfs crashing.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7hivex-0:1.3.10-6.11.el7_9Fixed 2021-06-08RHSA-2021:2318
Red Hat Enterprise Linux 8virt-devel:rhel-8040020210721215855.522a0ee4Fixed 2021-08-10RHSA-2021:3061
Red Hat Enterprise Linux 8virt:rhel-8040020210721215855.522a0ee4Fixed 2021-08-10RHSA-2021:3061
Red Hat Enterprise Linux 6hivexOut of support scope
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.3/hivexAffected
Red Hat Enterprise Linux 9hivexNot affected

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-2021-3504.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

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

References

Check your stackJSON