CVE-2026-58459gpsd gpsprof Command Injection via gnuplot plot title subtype field
gpsd through release-3.27.5, fixed at commit 4c06658, contains a command injection vulnerability in gpsprof that allows attackers who control the GPS device subtype value to execute arbitrary shell commands by embedding backtick payloads in the gnuplot plot title without proper escaping. The subtype field sourced from a DEVICES JSON log entry or NMEA PGRMT sentence is written into a generated gnuplot program via a set title statement with only double-quote characters escaped, enabling arbitrary shell command execution as the user running gnuplot when the victim renders the generated plot through the gpsprof and gnuplot workflow.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | gpsd | Under investigation | UBUNTU-CVE-2026-58459 | |
| Ubuntu 24.04 | gpsd | Under investigation | UBUNTU-CVE-2026-58459 | |
| Ubuntu 22.04 | gpsd | Under investigation | UBUNTU-CVE-2026-58459 | |
| Ubuntu 20.04 | gpsd | Fix pending | UBUNTU-CVE-2026-58459 | |
| Ubuntu 18.04 | gpsd | Fix pending | UBUNTU-CVE-2026-58459 | |
| Ubuntu 16.04 | gpsd | Fix pending | UBUNTU-CVE-2026-58459 | |
| Debian 14 | gpsd | Fixed | 3.27.5-1 | DEBIAN-CVE-2026-58459 |
| Debian 13 | gpsd | Fixed | 3.25-5+deb13u2 | DEBIAN-CVE-2026-58459 |
| Debian 12 | gpsd | Fix pending | DEBIAN-CVE-2026-58459 | |
| Red Hat Enterprise Linux 10 | gpsd | Fixed | 1:3.26.1-3.el10_2.1 | RHSA-2026:51075 |
| Red Hat Enterprise Linux 10 | gpsd-clients | Fixed | 1:3.26.1-3.el10_2.1 | RHSA-2026:51075 |
| Red Hat Enterprise Linux 10 | python3-gpsd | Fixed | 1:3.26.1-3.el10_2.1 | RHSA-2026:51075 |
| Red Hat Enterprise Linux 9 | gpsd-minimal | Fixed | 1:3.26.1-2.el9_8.1 | RHSA-2026:51153 |
| Red Hat Enterprise Linux 9 | gpsd-minimal-clients | Fixed | 1:3.26.1-2.el9_8.1 | RHSA-2026:51153 |
| AlmaLinux 10 | gpsd | Fixed | 1:3.26.1-3.el10_2.1 | ALSA-2026:51075 |
| AlmaLinux 10 | gpsd-clients | Fixed | 1:3.26.1-3.el10_2.1 | ALSA-2026:51075 |
| AlmaLinux 10 | python3-gpsd | Fixed | 1:3.26.1-3.el10_2.1 | ALSA-2026:51075 |
| AlmaLinux 9 | gpsd-minimal | Fixed | 1:3.26.1-2.el9_8.1 | ALSA-2026:51153 |
| AlmaLinux 9 | gpsd-minimal-clients | Fixed | 1:3.26.1-2.el9_8.1 | ALSA-2026:51153 |
| Rocky Linux 10 | gpsd | Fixed | 1:3.26.1-3.el10_2.1 | RLSA-2026:51075 |
| Rocky Linux 9 | gpsd-minimal | Fixed | 1:3.26.1-2.el9_8.1 | RLSA-2026:51153 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ntpsec gpsd: affected: up to 3.27.5, up to 4c06658e988f4ced1a7a574ce082a22ef625df56
Vendor advisories:
- https://github.com/ntpsec/gpsd/commit/5581ba196d826a984fbfaf792b7d58535f9911ce (patch)
- https://github.com/ntpsec/gpsd/commit/1a6bb7bcbdf58aa940132e630870af061dc88537 (patch)
- https://github.com/ntpsec/gpsd/commit/4c06658e988f4ced1a7a574ce082a22ef625df56 (patch)
References
- https://gitlab.com/gpsd/gpsd/-/work_items/404#note_3534119267
- https://github.com/ntpsec/gpsd/commit/5581ba196d826a984fbfaf792b7d58535f9911ce
- https://github.com/ntpsec/gpsd/commit/1a6bb7bcbdf58aa940132e630870af061dc88537
- https://github.com/ntpsec/gpsd/commit/4c06658e988f4ced1a7a574ce082a22ef625df56
- https://www.vulncheck.com/advisories/gpsd-gpsprof-command-injection-via-gnuplot-plot-title-subtype-field
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.