CVE-2026-54634

Hamlib: rigctld `send_raw` Stack Out-of-Bounds Write and Uninitialized Memory Disclosure

Published Sep 17, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
Description
Hamlib is a ham radio control library for radios, rotators, and amplifiers. Prior to 4.7.2, the unauthenticated rigctld send_raw command on TCP port 4532 reaches rigctl_send_raw() in tests/rigctl_parse.c, which writes a NUL byte at buf[buf_len + 1] outside its 200-byte stack buffer, and rig_send_raw() in src/rig.c, which copies reply_len - 1 bytes instead of the actual nbytes received. A remote client can send the CR terminator with a short payload to trigger both flaws in one command under the default no-password configuration. The out-of-bounds write can crash the daemon or corrupt adjacent stack memory, while the oversized copy can return up to 198 bytes of uninitialized stack data to the client. This issue is fixed in version 4.7.2.

Analysis

AI-generated

Technical impact

A remote, unauthenticated client can exploit the rigctld send_raw command on TCP port 4532 to trigger two distinct issues in Hamlib versions prior to 4.7.2. The first flaw is a stack out‑of‑bounds write that places a NUL byte beyond a 200‑byte buffer, which can corrupt adjacent stack memory or crash the daemon. The second flaw is an oversized copy that returns up to 198 bytes of uninitialized stack data to the client. These weaknesses correspond to CWE‑787 and CWE‑908 and allow a remote attacker to cause denial of service or exfiltrate sensitive data from the stack. The impact is limited to the daemon process and any applications that rely on the library for radio control.

Affected Systems

Hamlib, the ham radio control library used by radios, rotators, and amplifiers, is affected. Any installation running a version older than 4.7.2 is vulnerable. Although the version field was not explicitly listed in the CNA data, the advisory states that all releases prior to 4.7.2 contain the flaw.

Risk and Exploitability

The CVSS score of 7.3 indicates high severity. The EPSS score of less than 1% suggests a low probability of exploitation at the moment, and the vulnerability is not currently recorded in the CISA KEV catalog. The likely attack vector is an unauthenticated TCP connection to port 4532 made by a remote client, after which a short payload is sent that triggers both the out‑of‑bounds write and the uninitialized data copy. Exploitability requires remote network access, but no privileged credentials are needed. The consequence range is from a simple crash to potential data leakage, and the scope is limited to the affected daemon and its privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Hamlib to version 4.7.2 or later
  • Block traffic to TCP port 4532 from untrusted networks using a firewall until the patch is applied
  • Enable rigctld password authentication or restart the daemon with authentication enabled to force client credentials

Generated by OpenCVE AI on September 19, 2026 at 00:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Hamlib
Hamlib hamlib
Vendors & Products Hamlib
Hamlib hamlib
Type Values Removed Values Added
Description Hamlib is a ham radio control library for radios, rotators, and amplifiers. Prior to 4.7.2, the unauthenticated rigctld send_raw command on TCP port 4532 reaches rigctl_send_raw() in tests/rigctl_parse.c, which writes a NUL byte at buf[buf_len + 1] outside its 200-byte stack buffer, and rig_send_raw() in src/rig.c, which copies reply_len - 1 bytes instead of the actual nbytes received. A remote client can send the CR terminator with a short payload to trigger both flaws in one command under the default no-password configuration. The out-of-bounds write can crash the daemon or corrupt adjacent stack memory, while the oversized copy can return up to 198 bytes of uninitialized stack data to the client. This issue is fixed in version 4.7.2.
Title Hamlib: rigctld `send_raw` Stack Out-of-Bounds Write and Uninitialized Memory Disclosure
Weaknesses CWE-787
CWE-908
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 18, 2026, 2:43 PM
Reserved
Jun 15, 2026, 8:07 PM
Status
Deferred
Published
Sep 17, 2026, 10:17 PM
Modified
Sep 24, 2026, 9:25 PM