Skip to content
OpenAdvisories
High · 7.8 CVE-2026-58459 EUVD-2026-42622GHSA-2hhc-4hqc-4mg8

gpsd gpsprof Command Injection via gnuplot plot title subtype field

Published Jul 9, 2026 · Updated Jul 28, 2026 · Assigned by VulnCheck

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 products

VendorProductAffectedFixed
ntpsec gpsd ≤ 3.27.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 gpsd 3.27.5-1 —
Debian 13 gpsd 3.25-5+deb13u2 —
Debian 12 gpsd No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS gpsd No fix yet —
Ubuntu 24.04 LTS gpsd No fix yet —
Ubuntu 22.04 LTS gpsd No fix yet —
Ubuntu 20.04 LTS gpsd No fix yet —
Ubuntu 18.04 LTS gpsd No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS gpsd No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 gpsd +2 1:3.26.1-3.el10_2.1 RHSA-2026:51075
RHEL 9 gpsd-minimal +1 1:3.26.1-2.el9_8.1 RHSA-2026:51153

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 gpsd +2 1:3.26.1-3.el10_2.1 ALSA-2026:51075
AlmaLinux 9 gpsd-minimal +1 1:3.26.1-2.el9_8.1 ALSA-2026:51153

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 gpsd 1:3.26.1-3.el10_2.1 RLSA-2026:51075
Rocky Linux 9 gpsd-minimal 1:3.26.1-2.el9_8.1 RLSA-2026:51153
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gpsd 3.27.5-3.1 openSUSE-SU-2026:11276-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 gpsd +2 1:3.26.1-3.0.1.el10_2.1 ELSA-2026-51075
Oracle Linux 9 gpsd-minimal +1 1:3.26.1-2.0.1.el9_8.1 ELSA-2026-51153

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3.13-gpsd No fix yet —

Advisories 10

References