CVE-2024-37676
High · 8.4CVSS
8.4
EPSS
0.2%
Published
Jun 20, 2024
CISA due date
—
Cloudanix analysis
A bug in a popular command-line system monitoring tool lets someone already on the computer potentially crash it or run their own code.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Local out-of-bounds memory access in the Header_populateFromSettings function of htop, enabling memory corruption.
Why it matters to the business
Local users on affected systems running htop may crash the process or achieve code execution, disrupting system monitoring and potentially allowing privilege escalation.
How an attack unfolds
A local attacker prepares a malicious configuration or settings input that triggers Header_populateFromSettings with crafted data, causing the out-of-bounds access during htop startup or refresh.
How to fix it
Upgrade htop to the latest stable release that resolves the out-of-bounds issue in Header_populateFromSettings; rebuild from source if packaged versions lag.
How to confirm the fix worked
Confirm htop version exceeds 2.20, review source for bounds checks in Header_populateFromSettings, and execute regression tests or fuzzing against the function.
Typical attack path
- Obtain local user access to a system running vulnerable htop
- Craft or modify a settings file or environment input to reach Header_populateFromSettings with invalid bounds
- Execute htop to load the malicious settings
- Trigger out-of-bounds access leading to memory corruption or control-flow hijack
How to detect it
Review system and application logs for htop segmentation faults or memory errors; inspect user-modified configuration files in home directories for unexpected content.
What your security team should do
- Prioritize patching htop on all multi-user and privileged systems due to local attack vector
- Restrict untrusted local accounts from executing htop where possible
- Monitor for htop process crashes or anomalous memory behavior in logs
The record
An issue in htop-dev htop v.2.20 allows a local attacker to cause an out-of-bounds access in the Header_populateFromSettings function.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:20.04:LTS | htop | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | htop | 0 | No fix |
Related vulnerabilities
- CVE-2026-112108 A vulnerability was determined in ztxz16 fastllm up to 0.1.8.2. CWE-119
- CVE-2026-112073 A vulnerability was identified in Tencent ncnn up to 44b02dabdcf97499281a4692ebd65bad73dc… CWE-119
- CVE-2026-90831 A vulnerability was detected in GNU Binutils 2.47. CWE-119
- CVE-2026-90804 A vulnerability was detected in GNU Binutils 2.47. CWE-119
- CVE-2026-90803 A security vulnerability has been detected in GNU Binutils 2.47. CWE-119
- CVE-2026-90801 A security flaw has been discovered in GNU Binutils 2.47. CWE-119
- CVE-2026-87933 A vulnerability was found in DaveGamble cJSON up to 1.7.19. CWE-119
- CVE-2026-87931 A vulnerability has been found in Behavioral Technology Group Pavlok Behavioral… CWE-119