CVE-2021-3504: Medium severity redhat hivex vulnerability

Published Apr 14, 2021
·
Updated

A flaw was found in libhivex. It's possible to provide a large length value for a node which can read past the end of the file leading to read of arbitrary memory and other potential consequences.

Other sources

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 hivexopen 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.

MITRE

Affected Software

8 affected componentsFixes available
redhat/hivex<1.3.20
1.3.20
redhat hivex<1.3.20
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=8.0
Debian Debian Linux=9.0
Fedoraproject Fedora=34

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/hivex to a version that resolves this vulnerability.

    Fixed in 1.3.20
  2. Upgrade

    Upgrade libhivex to a version that resolves this vulnerability.

    Fixed in 1.3.20
  3. Compensating control

    If you must process untrusted Windows Registry (hive) files, restrict access to the component that parses hivex inputs (e.g., limit who/what systems can submit hive files) to reduce the chance of crashes affecting availability.

Event History

May 11, 2021
CVE Published
via MITRE·10:30 PM
Data Sourced
via MITRE·10:30 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-3504?

CVE-2021-3504 is a vulnerability in the hivex library before version 1.3.20 that allows an attacker to read memory beyond its normal bounds or cause the program to crash.

2

How does CVE-2021-3504 affect Redhat Enterprise Linux 7.0?

CVE-2021-3504 affects Redhat Enterprise Linux 7.0 and can be fixed by updating the hivex package to version 1.3.20 or later.

3

What is the severity of CVE-2021-3504?

The severity of CVE-2021-3504 is medium with a CVSS score of 5.4.

4

How can I fix CVE-2021-3504?

To fix CVE-2021-3504, update the hivex package to version 1.3.20 or later.

5

Where can I find more information about CVE-2021-3504?

You can find more information about CVE-2021-3504 in the references: [GitHub](https://github.com/libguestfs/hivex/commit/8f1935733b10d974a1a4176d38dd151ed98cf381), [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1956204), [Red Hat Security Advisory](https://access.redhat.com/errata/RHSA-2021:2318).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203