BreachSpiderVerified, not vibes

CVE-2021-3504 in Debian Linux and 3 more products

Medium 5.4

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

Affects 4 products from 3 vendors. Facts below cite their sources.

CVSS 3.15.4
EPSS1.8%
EPSS percentile79th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, no integrity impact.

Affected products and versions

VendorProductAffected versions
Debian Debian Linux 9.0
Fedoraproject Fedora 34
Redhat Enterprise Linux 6.0 7.0 8.0
Redhat Hivex < 1.3.20

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-3504
BreachSpider IDBS-2021-GLOBAL-078905-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L
Published2021-05-11
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-125: Out-of-Bounds Read

Software reads data past the boundary of an allocated buffer, leaking sensitive information or causing crashes.

Related attack patterns (CAPEC)

CAPEC-540 Overread Buffers via CWE-125

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2021. A medium severity vulnerability affects Debian systems (CVE-2021-3504). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: 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. CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L.

Questions

What is CVE-2021-3504?

This vulnerability was disclosed in 2021. A medium severity vulnerability affects Debian systems (CVE-2021-3504). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2021-3504?

CVE-2021-3504 has CVSS 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L. EPSS: 1.8%.

Is CVE-2021-3504 actively exploited?

No confirmed active exploitation of CVE-2021-3504 as of 2026-09-25.

How do I remediate CVE-2021-3504?

Priority: MONITOR. Advisory: https://bugzilla.redhat.com/show_bug.cgi?id=1949687

What systems are affected by CVE-2021-3504?

CVE-2021-3504 affects Debian Debian Linux; Fedoraproject Fedora; Redhat Enterprise Linux, Hivex.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.