CVE-2021-42613
High · 7.8CVSS
7.8
EPSS
0.9%
Published
May 24, 2022
CISA due date
—
Cloudanix analysis
A bug in older document processing software can let someone crash the program or take control of a computer by getting the user to open a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Double free in cleanup_index function in index.c causes memory corruption when processing a crafted input document.
Why it matters to the business
Attackers can crash the document processor or achieve arbitrary code execution on affected systems; the issue has been public for over four years with public exploit code available, increasing long-term risk for organizations still using the affected software.
How an attack unfolds
An attacker crafts a malicious text document that triggers the double-free condition in the index cleanup routine; when a victim opens the document with the vulnerable processor, memory corruption occurs that can be leveraged for denial of service or code execution.
How to fix it
Upgrade to a patched version of Halibut once released by the project maintainers; Fedora users should apply any available updates from the distribution. Until fixed builds are available, avoid processing untrusted documents with Halibut 1.2.
How to confirm the fix worked
Confirm the installed Halibut binary version is newer than 1.2 and test that the crafted document no longer triggers a crash or corruption during index cleanup.
Typical attack path
- Attacker creates a specially crafted input document targeting the index processing code path
- Victim opens the document locally using the vulnerable Halibut binary
- The double free is triggered during cleanup_index execution
- Memory corruption leads to crash or attacker-controlled code execution
How to detect it
Review process execution logs and file access records for Halibut invocations on untrusted documents; look for segmentation faults or abnormal memory error patterns during index processing.
What your security team should do
- Inventory all systems running Halibut and remove or isolate instances still at version 1.2
- Block untrusted document processing workflows until updates are applied
- Monitor for any new fixed versions from the Halibut project and Fedora repositories
The record
A double free in cleanup_index in index.c in Halibut 1.2 allows an attacker to cause a denial of service or possibly have other unspecified impact via a crafted text document.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | halibut | 0 | No fix |
| Debian:12 | halibut | 0 | 1.3-1 |
| Debian:13 | halibut | 0 | 1.3-1 |
| Mageia:8 | halibut | 0 | 1.3-1.mga8 |
| Ubuntu:16.04:LTS | halibut | 0 | No fix |
| Ubuntu:18.04:LTS | halibut | 0 | No fix |
| Ubuntu:20.04:LTS | halibut | 0 | No fix |
| Ubuntu:22.04:LTS | halibut | 0 | No fix |
| Ubuntu:24.04:LTS | halibut | 0 | No fix |
| Ubuntu:24.10 | halibut | 0 | No fix |
| Ubuntu:25.04 | halibut | 0 | No fix |
| Ubuntu:25.10 | halibut | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | halibut | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | halibut | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | halibut | 0 | No fix |
Related vulnerabilities
- CVE-2021-42614 A use after free in info_width_internal in bk_info.c in Halibut 1.2 allows an attacker to… Also affects halibut
- CVE-2021-42612 A use after free in cleanup_index in index.c in Halibut 1.2 allows an attacker to cause a… Also affects halibut
- CVE-2026-109271 ImageMagick 7.1.2-30 before 7.1.2-32 contains a use after free vulnerability in the… CWE-415
- CVE-2026-107886 OpenPrinting CUPS before 2.4.20 contains a double-free in printer-class management. CWE-415
- CVE-2026-107209 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-415
- CVE-2026-98154 In the Linux kernel, the following vulnerability has been resolved: nvme-rdma: fix -EIO… CWE-415
- CVE-2026-87585 Double free in PDFium in Google Chrome on on Windows prior to 153.0.8010.36 allowed a… CWE-415
- CVE-2026-79907 Acrobat Reader is affected by a Double Free vulnerability that could result in arbitrary… CWE-415