Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
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 code injection vulnerability in the gpsprof utility that allows an attacker who controls GPS input data to execute arbitrary OS commands by injecting malicious content into the SKY.satellites[].used field, which is inserted unsanitized into a gnuplot heredoc data block. Attackers can supply a used value containing the string EOD to terminate the heredoc early and append gnuplot system() calls, achieving OS command execution as the user running gpsprof when the generated plot script is processed by gnuplot in polar mode.
Published 2026-07-23NVD
CVSS 4.0Local · no privileges · passive user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- Passive
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:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Fable 5.2 · high confidence · 2026-11-19
The CVE is in gpsprof, a Python client script, and this build does not install it. BR2_PACKAGE_GPSD_PYTHON is not set, so gpsd.mk passes python=no to scons and the Python programs are left out of the install; gnuplot, which is needed to execute the injected script, is not in the image either.
The gpsd 3.25 source in the tree does contain the unfixed code (version is inside the affected range, no patch addresses it), so the finding is not applicable only because of this build configuration. The gpsd daemon and the C clients that are shipped are not the code this CVE describes.
Evidence 10
The vulnerable code is present in the 3.25 source: the satellite `used` value is written with `%s` into the gnuplot data block without sanitising, and the script emits `<< EOD` heredocs (lines 725-742).
output/build/gpsd-3.25/clients/gpsprof.py.in:831-832
`# BR2_PACKAGE_GPSD_PYTHON is not set`, while `BR2_PACKAGE_GPSD=y` (line 1262) and `BR2_PACKAGE_GPSD_CLIENTS=y` (line 1306) select the package and its C clients.
output/.config:1307
Without `BR2_PACKAGE_GPSD_PYTHON` the build passes `python=no` to scons.
buildroot/package/gpsd/gpsd.mk (BR2_PACKAGE_GPSD_PYTHON block)
`clients/gpsprof` is a member of `python_progs`, the list of Python programs.
output/build/gpsd-3.25/SConscript:1983-1993
`python_progs` are only added to the build when `env['python']` is true, and `python_install` is set to `[]` otherwise, so `gpsprof` is not installed with `python=no`.
output/build/gpsd-3.25/SConscript:2594-2595, 2653-2662, 2699-2700
Files gpsd installed to the target: `gpsd`, `gpsdctl` and the C clients (`cgps`, `gpsmon`, `gpspipe`, `gpsctl`, etc.). No `usr/bin/gpsprof` and no Python `gps` module; the only gpsprof entry is the man page `usr/share/man/man1/gpsprof.1` (line 30).
output/build/gpsd-3.25/.files-list.txt:1,47-60
The directory listing has no `gpsprof`, `ubxtool`, `zerk` or `gnuplot`; a search of `output/target` for `gpsprof*` finds nothing.
output/target/usr/bin/
`# BR2_PACKAGE_GNUPLOT is not set`: the interpreter that would have to process the generated plot script is not in the image.
output/.config:921
A templated copy of the script exists in the scons variant directory inside the build tree (it still contains the vulnerable line 832), but it is a build-directory artefact and is not copied to `output/target`.
output/build/gpsd-3.25/gpsd-3.25/clients/gpsprof
Three patches are applied (nmea2000 skyview overrun, Navcom underflow, always log to syslog); none touches `gpsprof`.
output/build/gpsd-3.25/.applied_patches_list
Version and patches
Affected range per NVD is gpsd through release-3.27.5, fixed upstream at commit 4c06658; 3.25 is inside the range, so the version match is correct. The tree's clients/gpsprof.py.in is unfixed and none of the three applied patches (0001-drivers-driver_nmea2000.c-Fix-issue-356-skyview-buff.patch, 0002-gpsd-packet.c-Fix-integer-underflow-is-malicious-Nav.patch, patches/gpsd/0001-Always-log-to-syslog.patch) concerns it. The build is not affected because the vulnerable script is not installed (python=no), not because of a fix. I did not consult the upstream advisory or fix commit online; the range comes from the CVE text in the brief.
Recommendation
Document as not applicable for this configuration; no upgrade or backport is needed for this CVE.
Re-evaluate if BR2_PACKAGE_GPSD_PYTHON is ever enabled, since that would install gpsprof from the unfixed 3.25 source. Even then, exploitation needs a user to run gpsprof in polar mode and feed its output to gnuplot, which requires BR2_PACKAGE_GNUPLOT or moving the script to another host.
Open questions
The check was done against output/.config and output/target for the x86_64 build. The in-tree configs/x86_64_defconfig has no gpsd lines in it (my grep for GPSD matched nothing), so the gpsd selection comes from elsewhere and I did not trace where. Other Infix defconfigs were not examined; a board config that sets BR2_PACKAGE_GPSD_PYTHON would need its own review.
Members of Kernel Kit decide. Sign in if you are one.