Severity by source
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Injected subtype data is processed locally and code runs only when the victim actively renders the plot (UI:R, AV:L); no auth needed (PR:N) and full code execution yields C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
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.
AnalysisAI
Arbitrary shell command execution in gpsd's gpsprof profiling tool (through release-3.27.5) allows an attacker who controls a GPS device's subtype value to run commands as the user rendering the plot. The subtype string - taken from a DEVICES JSON log entry or an NMEA PGRMT sentence - is embedded into a generated gnuplot program's set title statement with only double quotes escaped, so backtick payloads execute when the victim renders the plot via the gpsprof/gnuplot workflow. This was reported by VulnCheck; a vendor fix is available (fixed at commit 4c06658), and there is no public exploit identified at time of analysis and it is not listed in CISA KEV.
Technical ContextAI
gpsd is the widely-used GPS/GNSS multiplexing daemon; gpsprof is its bundled profiling/diagnostic utility that collects satellite and device data and generates gnuplot programs to visualize signal quality. The root cause is CWE-78 (OS Command Injection): the device 'subtype' identifier - populated either from a JSON DEVICES report or from a Garmin-proprietary NMEA PGRMT sentence - is inserted verbatim into a gnuplot set title "..." directive. gnuplot's title strings support backtick command substitution (executing shell commands and inlining their output), and gpsprof only escapes the double-quote character, leaving backticks and shell metacharacters intact. When the victim runs the generated gnuplot program, the substitution fires and the shell executes attacker-supplied commands. The affected component is identified in CPE as cpe:2.3:a:ntpsec:gpsd (the NTPsec gpsd fork).
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - update gpsd to a build that includes commit 4c06658e988f4ced1a7a574ce082a22ef625df56 (and companion commits 5581ba19 and 1a6bb7bc), applying the escaping fix for the gnuplot plot title. Because the fix is currently referenced as Git commits rather than a confirmed tagged release, verify your distribution has backported it before relying on package version numbers. Until patched, do not run gpsprof against GPS devices or captured logs from untrusted or unverified sources, and treat DEVICES JSON logs and NMEA PGRMT subtype fields as untrusted input; as a compensating control, manually inspect or sanitize the subtype value (strip backticks and shell metacharacters) before feeding recorded data into the gpsprof/gnuplot workflow, and run the rendering step as an unprivileged, sandboxed user to limit the blast radius of any command execution. Reference the vendor advisory at https://gitlab.com/gpsd/gpsd/-/work_items/404 and https://www.vulncheck.com/advisories/gpsd-gpsprof-command-injection-via-gnuplot-plot-title-subtype-field.
gpsd (before commit dc966aa) has a heap buffer overflow in the NMEA2000 satellite view handler (PGN 129540). A malicious
An integer underflow vulnerability exists in the `nextstate()` function in `gpsd/packet.c` of gpsd versions prior to com
An integer underflow vulnerability exists in the NTRIP Stream Parsing functionality of GPSd 3.25.1~dev. Rated high sever
The NMEA0183 driver in gpsd before 3.9 allows remote attackers to cause a denial of service (daemon termination) and pos
OS command injection in gpsd's gpsprof profiling utility (through release-3.27.5) lets an attacker who controls GPS inpu
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-42622
GHSA-2hhc-4hqc-4mg8