Cloudanix VulnDB

CVE-2024-37676

High · 8.4

CVSS

8.4

EPSS

0.2%

Published

Jun 20, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Obtain local user access to a system running vulnerable htop
  2. Craft or modify a settings file or environment input to reach Header_populateFromSettings with invalid bounds
  3. Execute htop to load the malicious settings
  4. 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