Out-of-bounds read in hivex
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · Low
- Fix status
- Partial Red Hat: 8 fixed, 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | hivex | hivex-1.3.20 | — | No fix listed | CNA |
- hivex Vendor— Affected hivex-1.3.20 Fixed in — No fix listed CNA
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:redhat:hivex:*:*:*:*:*:*:*:* | before 1.3.20 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:advanced_virtualization:*:*:* | 8.0 | Vulnerable | Red Hat |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
- cpe:2.3:a:redhat:hivex:*:*:*:*:*:*:*:* Versions before 1.3.20 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:advanced_virtualization:*:*:* Versions 8.0 Vulnerable ·Red Hat
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
Remediation
Red Hat 2 advisories
- RHSA-2021:3061 Released 2021-08-10 · Red Hat rating Moderatevirt:rhel and virt-devel:rhel security and bug fix update
- Red Hat CodeReady Linux Builder (v. 8) SLOF-20191022-3.git899d9883.module+el8.3.0+6423+e4cb6418.src::virt-devel:rhel, hivex-1.3.18-21.module+el8.4.0+10770+19c037f9.i686::virt-devel:rhel, hivex-devel-1.3.18-21.module+el8.4.0+10770+19c037f9.i686::virt-devel:rhel +47
- Red Hat Enterprise Linux AppStream (v. 8) SLOF-20191022-3.git899d9883.module+el8.3.0+6423+e4cb6418.noarch::virt:rhel, SLOF-20191022-3.git899d9883.module+el8.3.0+6423+e4cb6418.src::virt:rhel, hivex-1.3.18-21.module+el8.4.0+10770+19c037f9.aarch64::virt:rhel +47
- RHSA-2021:2318 Released 2021-06-08 · Red Hat rating Moderatehivex security update
- Red Hat Enterprise Linux Client (v. 7) hivex-1.3.10-6.11.el7_9, perl-hivex-1.3.10-6.11.el7_9
- Red Hat Enterprise Linux Client Optional (v. 7) hivex-devel-1.3.10-6.11.el7_9, ocaml-hivex-1.3.10-6.11.el7_9, ocaml-hivex-devel-1.3.10-6.11.el7_9 +2
- Red Hat Enterprise Linux Server (v. 7) hivex-1.3.10-6.11.el7_9, perl-hivex-1.3.10-6.11.el7_9
- Red Hat Enterprise Linux Server Optional (v. 7) hivex-devel-1.3.10-6.11.el7_9, ocaml-hivex-1.3.10-6.11.el7_9, ocaml-hivex-devel-1.3.10-6.11.el7_9 +2
- Red Hat Enterprise Linux Workstation (v. 7) hivex-1.3.10-6.11.el7_9, perl-hivex-1.3.10-6.11.el7_9
- Red Hat Enterprise Linux Workstation Optional (v. 7) hivex-devel-1.3.10-6.11.el7_9, ocaml-hivex-1.3.10-6.11.el7_9, ocaml-hivex-devel-1.3.10-6.11.el7_9 +2
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 Advanced Virtualization | Affected | No fix yet |
| Red Hat CodeReady Linux Builder (v. 8) | Fixed | RHSA-2021:3061 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2021:3061 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2021:2318 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2021:2318 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2021:2318 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2021:2318 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2021:2318 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2021:2318 |
Not affected: 1 product
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2021-3504
- 2026-10-03 Alias added: GHSA-5vp3-c6x6-5464
References
Sources
- CVE-2021-3504 · CVE Program
- CVE-2021-3504 · NVD
- FIRST EPSS
- GHSA-5vp3-c6x6-5464 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-3504 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences