hivex — security advisory
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.
- Products
- hivex
- Affected versions
- Not specified
- Fixed versions
- 1.3.20-1
- CVEs
- CVE-2021-3504
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:23 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2021-3504
hivex
Fixed versions: 1.3.20-1
hivex
Fixed versions: 1.3.20-1
hivex
Fixed versions: 1.3.20-1
Complete source record
{
"id": "da71e605a89ffdc49439dcdf3e64f4204b4d05117ccbf5b4ce69304fd06b4b41",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-3504",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-3504",
"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.",
"evidence": "osv:DEBIAN-CVE-2021-3504",
"products": [
{
"name": {
"value": "hivex",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.20-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "hivex",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.20-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "hivex",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.3.20-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2021-3504",
"aliases": [
"DEBIAN-CVE-2021-3504"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.3.20-1"
}
]
}
],
"package": {
"name": "hivex",
"purl": "pkg:deb/debian/hivex?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3504.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.3.20-1"
}
]
}
],
"package": {
"name": "hivex",
"purl": "pkg:deb/debian/hivex?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3504.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.3.20-1"
}
]
}
],
"package": {
"name": "hivex",
"purl": "pkg:deb/debian/hivex?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3504.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:15.641153043Z",
"provider": "osv",
"upstream": [
"CVE-2021-3504"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-3504"
]
},
"related_cves": [
{
"value": "CVE-2021-3504",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 420977,
"published_at": "2021-05-11T23:15:09.05+00:00"
}