{"id":"UBUNTU-CVE-2026-58459","details":"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.","modified":"2026-11-24T14:56:03.975229372Z","published":"2026-07-09T17:17:00Z","upstream":["CVE-2026-58459"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-58459"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-58459"},{"type":"REPORT","url":"https://gitlab.com/gpsd/gpsd/-/work_items/404#note_3534119267"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/gpsd-gpsprof-command-injection-via-gnuplot-plot-title-subtype-field"}],"affected":[{"package":{"name":"gpsd","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/gpsd?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.11-3","3.15-2","3.15-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"gpsd","binary_version":"3.15-2build1"},{"binary_name":"gpsd-clients","binary_version":"3.15-2build1"},{"binary_name":"libgps22","binary_version":"3.15-2build1"},{"binary_version":"3.15-2build1","binary_name":"libqgpsmm22"},{"binary_name":"python-gps","binary_version":"3.15-2build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58459.json"}},{"package":{"name":"gpsd","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/gpsd?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.16-4","3.17-3","3.17-5"],"ecosystem_specific":{"binaries":[{"binary_name":"gpsd","binary_version":"3.17-5"},{"binary_version":"3.17-5","binary_name":"gpsd-clients"},{"binary_name":"libgps23","binary_version":"3.17-5"},{"binary_name":"libqgpsmm23","binary_version":"3.17-5"},{"binary_name":"python-gps","binary_version":"3.17-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58459.json"}},{"package":{"name":"gpsd","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/gpsd?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.17-7","3.19-3","3.20-1","3.20-3","3.20-4","3.20-4build1","3.20-5ubuntu1","3.20-6","3.20-8","3.20-8ubuntu0.1","3.20-8ubuntu0.2","3.20-8ubuntu0.4"],"ecosystem_specific":{"binaries":[{"binary_name":"gpsd","binary_version":"3.20-8ubuntu0.4"},{"binary_name":"gpsd-clients","binary_version":"3.20-8ubuntu0.4"},{"binary_name":"libgps26","binary_version":"3.20-8ubuntu0.4"},{"binary_version":"3.20-8ubuntu0.4","binary_name":"libqgpsmm26"},{"binary_name":"python3-gps","binary_version":"3.20-8ubuntu0.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58459.json"}},{"package":{"name":"gpsd","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/gpsd?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.22-4","3.22-4ubuntu1","3.22-4ubuntu2","3.22-4ubuntu2.1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.22-4ubuntu2.1","binary_name":"gpsd"},{"binary_version":"3.22-4ubuntu2.1","binary_name":"gpsd-clients"},{"binary_name":"gpsd-tools","binary_version":"3.22-4ubuntu2.1"},{"binary_name":"libgps28","binary_version":"3.22-4ubuntu2.1"},{"binary_name":"libqgpsmm28","binary_version":"3.22-4ubuntu2.1"},{"binary_name":"python3-gps","binary_version":"3.22-4ubuntu2.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58459.json"}},{"package":{"name":"gpsd","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/gpsd?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.25-2ubuntu2","3.25-3ubuntu2","3.25-3ubuntu3","3.25-3ubuntu3.1","3.25-3ubuntu3.2"],"ecosystem_specific":{"binaries":[{"binary_name":"gpsd","binary_version":"3.25-3ubuntu3.2"},{"binary_name":"gpsd-clients","binary_version":"3.25-3ubuntu3.2"},{"binary_version":"3.25-3ubuntu3.2","binary_name":"gpsd-tools"},{"binary_name":"libgps30t64","binary_version":"3.25-3ubuntu3.2"},{"binary_name":"libqgpsmm30t64","binary_version":"3.25-3ubuntu3.2"},{"binary_name":"python3-gps","binary_version":"3.25-3ubuntu3.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58459.json"}},{"package":{"name":"gpsd","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/gpsd?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.25-5ubuntu1","3.27-1.1","3.27-1.1ubuntu1","3.27.5-0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"gpsd","binary_version":"3.27.5-0.1"},{"binary_name":"gpsd-clients","binary_version":"3.27.5-0.1"},{"binary_version":"3.27.5-0.1","binary_name":"gpsd-tools"},{"binary_name":"libgps32","binary_version":"3.27.5-0.1"},{"binary_name":"libqgpsmm32","binary_version":"3.27.5-0.1"},{"binary_name":"python3-gps","binary_version":"3.27.5-0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58459.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CNA"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","source":"NVD"},{"type":"CVSS_V4","score":"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","source":"CNA"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}