Reach gpsd · 2 builds in 2 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
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.
Published 2026-07-09NVD
CVSS 4.0Local · no privileges · active user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- Active
What it costs
- Confidentiality
- High
- Integrity
- High
- Availability
- High
What it costs other systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References 5
- github.com/ntpsec/gpsd/commit/1a6bb7bcbdf58aa940132e630870af061dc88537
- github.com/ntpsec/gpsd/commit/4c06658e988f4ced1a7a574ce082a22ef625df56
- github.com/ntpsec/gpsd/commit/5581ba196d826a984fbfaf792b7d58535f9911ce
- gitlab.com/gpsd/gpsd/-/work_items/404#note_3534119267
- www.vulncheck.com/advisories/gpsd-gpsprof-command-injection-via-gnuplot-plot-title-subtype-field
Fable 5.1 · high confidence · 2026-11-05
CVE-2026-58459 is in gpsprof, a Python client script (clients/gpsprof.py.in) that writes the device subtype into a gnuplot "set title" line. The source tarball in this tree does contain the vulnerable code (gpsprof.py.in:233-234 and :1295-1307, no backtick escaping), and version 3.25 is inside the affected range, but gpsprof is never built or installed: Buildroot passes python=no (BR2_PACKAGE_GPSD_PYTHON not set, gpsd.mk:230), and SConscript only installs python_progs (which includes clients/gpsprof) when env['python'] is true.
The target rootfs contains no gpsprof, no gps Python module and no gnuplot. Only the gpsd daemon and C clients are shipped, so the vulnerable code path is not in the image.
Evidence 8
Vulnerable code is present in the 3.25 source: subtype appended to desc, and title written into gnuplot 'set title' with only double quotes escaped (no fix backported).
output/build/gpsd-3.25/clients/gpsprof.py.in:233-234, 1295-1307
Only three patches applied (nmea2000 overrun, Navcom underflow, Infix syslog); none touch gpsprof.
output/build/gpsd-3.25/.applied_patches_list
gpsd is selected via BR2_PACKAGE_FEATURE_GPS=y (package/feature-gps/Config.in selects BR2_PACKAGE_GPSD); package is built for the target.
output/.config:1262-1264 and :5178; configs/x86_64_defconfig:148
Python bindings/clients disabled: scons is invoked with python=no.
output/.config (BR2_PACKAGE_GPSD_PYTHON is not set); buildroot/package/gpsd/gpsd.mk:224-231
clients/gpsprof is in python_progs; python_progs_install only enters the install list when env['python'] is true, otherwise python_install = [].
output/build/gpsd-3.25/SConscript:1983-1990, 2653, 2696-2700, 2721
No gpsprof, no gps Python module installed in the target rootfs; only gpsd, gpsdctl, gpsctl, gpsmon, gpspipe, gpsdecode, gpsrinex, gps2udp, gpssnmp, cgps, lcdgps, gpsdebuginfo.
output/target/usr/bin/ (find for gpsprof/gpsfake/gpscsv/site-packages/gps returns nothing)
gnuplot, the component that would execute the injected backticks, is not in the image either.
output/target/usr/bin/ (no gnuplot); output/.config has no BR2_PACKAGE_GNUPLOT
For context: confd only manages the gpsd daemon itself via finit (gpsd -n), never any Python client.
src/confd/src/hardware.c:2022-2040
Version and patches
NVD/advisory: affected through release-3.27.5, fixed at upstream commit 4c06658 (plus 1a6bb7b, 5581ba1). gpsd 3.25 falls within the affected range and the tree's gpsprof.py.in is unpatched. Applied patches (0001 nmea2000 skyview, 0002 Navcom underflow, Infix 0001-Always-log-to-syslog) do not address this CVE. However the affected component (gpsprof, Python) is not built: python=no.
Recommendation
Document as N/A: vulnerable component (gpsprof Python script) is not compiled/installed because BR2_PACKAGE_GPSD_PYTHON is disabled, and gnuplot is absent from the image. Consider adding GPSD_IGNORE_CVES += CVE-2026-58459 in a local gpsd.mk override (or an Infix-side CVE ignore note) with this justification. Re-check if BR2_PACKAGE_GPSD_PYTHON is ever enabled. No upgrade needed for this CVE.
Open questions
None material. The verdict depends solely on BR2_PACKAGE_GPSD_PYTHON remaining disabled; no runtime-reachability analysis is needed since the script is not present in the image.
Members of Kernel Kit decide. Sign in if you are one.