Vulnerability · Published Jul 9, 2026 · Assigned by VulnCheck

CVE-2026-58459gpsd gpsprof Command Injection via gnuplot plot title subtype field

High 7.8

In plain English

A high-severity OS command injection in gpsd from ntpsec. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.9% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)2.9%top 13.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10gpsd1:3.26.1-3.el10_2.1ALSA-2026:51075
AlmaLinux:10gpsd-clients1:3.26.1-3.el10_2.1ALSA-2026:51075
AlmaLinux:9gpsd-minimal1:3.26.1-2.el9_8.1ALSA-2026:51153
AlmaLinux:9gpsd-minimal-clients1:3.26.1-2.el9_8.1ALSA-2026:51153
AlmaLinux:10python3-gpsd1:3.26.1-3.el10_2.1ALSA-2026:51075
Debian:12gpsdno fix listedDEBIAN-CVE-2026-58459
Debian:13gpsd3.25-5+deb13u2DEBIAN-CVE-2026-58459
Debian:14gpsd3.27.5-1DEBIAN-CVE-2026-58459
Rocky Linux:10gpsd1:3.26.1-3.el10_2.1RLSA-2026:51075
Rocky Linux:9gpsd-minimal1:3.26.1-2.el9_8.1RLSA-2026:51153
Ubuntu:22.04:LTSgpsdno fix listedUBUNTU-CVE-2026-58459
Ubuntu:24.04:LTSgpsdno fix listedUBUNTU-CVE-2026-58459
Ubuntu:26.04:LTSgpsdno fix listedUBUNTU-CVE-2026-58459

Affected products (as reported)

VendorProductVersions
ntpsec gpsd 0 – through 3.27.50 – through 4c06658e988f4ced1a7a574ce082a22ef625df56

Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References