StackPatch is liveSee product

Back to CVE digest
CVE-2021-3504 · cross-distro fix matrix

CVE-2021-3504: 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

Affects 8 Linux releases across 8 (distro × package) combinations.

Fix per ecosystem

Each block below is a distro release where CVE-2021-3504 has a known fix. Run the listed command on that distro to remediate.

Debian bullseye

Source: Debian Security Tracker

  • hivex→ fixed in1.3.20-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y hivex

Debian bookworm

Source: Debian Security Tracker

  • hivex→ fixed in1.3.20-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y hivex

Debian trixie

Source: Debian Security Tracker

  • hivex→ fixed in1.3.20-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y hivex

Alpine v3.20

Source: Alpine secdb

  • hivex→ fixed in1.3.19-r2
    apk update && apk add --upgrade hivex

Alpine v3.21

Source: Alpine secdb

  • hivex→ fixed in1.3.19-r2
    apk update && apk add --upgrade hivex

Alpine edge

Source: Alpine secdb

  • hivex→ fixed in1.3.19-r2
    apk update && apk add --upgrade hivex

Alpine v3.18

Source: Alpine secdb

  • hivex→ fixed in1.3.19-r2
    apk update && apk add --upgrade hivex

Alpine v3.19

Source: Alpine secdb

  • hivex→ fixed in1.3.19-r2
    apk update && apk add --upgrade hivex
Are YOU affected by CVE-2021-3504?

5-second check on your actual server. Reads /etc/os-release, uname -r, and the distro's package manager; matches against this same cross-source index live.

curl https://mindsparkstack.com/scan.sh | bash
Continuous monitoring beats manual checking

CVE-2021-3504dropped silently in your distro's update channel. Every new CVE is the same story. StackPatch runs the matcher hourly against all 5 sources and emails the exact remediation when something new applies to one of your servers. From $9/mo, 14-day free trial, cancel anytime.

See StackPatch (from $9/mo)