# CVE-2021-3504: A flaw was found in the hivex library in versions before 1.3.20.

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.83%, higher than 79% of CVEs (2026-12-01)
- Published: 2021-05-11T22:30:25.000Z
- Modified: 2026-06-17T04:05:14.900Z
- Weaknesses: CWE-125
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- hivex: hivex-1.3.20
- redhat hivex: before 1.3.20
- redhat enterprise_linux: 6.0; 7.0; 8.0
- debian debian_linux: 9.0
- fedoraproject fedora: 34

## Every score

- NVD: 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`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1949687> (issue-tracking, patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/05/msg00011.html> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5BNKNVYFL36P2GBEB5O36LHFRYU575H/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BQXTEACRWYAZVNEOIWIYUFGG4GOXSQ22/> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-3504](https://www.cve.org/CVERecord?id=CVE-2021-3504), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3504](https://nvd.nist.gov/vuln/detail/CVE-2021-3504), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3504 · Whole record: https://cve.day/CVE-2021-3504.json · Rebuilt by cve.day 2026-11-25T22:58:01.303Z
