cve.bz

CVE-2026-58459 gpsd project gpsd: OS Command Injection

8.4 highExploit referenceEPSS 2.9%Fix available

High (8.4) in gpsd project gpsd. EPSS 2.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

8.4 high
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

CVSS 3.1

9.6 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS
2.9% (unchanged from 2.9% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-07-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-58459 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-58459?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-58459?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-58459 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
ntpsec gpsdthrough 3.27.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12gpsdno fix listedDEBIAN-CVE-2026-58459
Debian13gpsd3.25-5+deb13u2DEBIAN-CVE-2026-58459
Debian14gpsd3.27.5-1DEBIAN-CVE-2026-58459
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 3 moregpsdno fix listedUBUNTU-CVE-2026-58459
Red Hatenterprise_linux:9::appstreamgpsd-minimal, gpsd-minimal-clients, gpsd-minimal-debuginfo and 2 more1:3.26.1-2.el9_8.1RHSA-2026:51153
Red Hatenterprise_linux:10.2gpsd, gpsd-clients, python3-gpsd and 4 more1:3.26.1-3.el10_2.1RHSA-2026:51075
openSUSETumbleweedgpsd3.27.5-3.1openSUSE-SU-2026:11276-1
AlmaLinux9gpsd-minimal, gpsd-minimal-clients1:3.26.1-2.el9_8.1ALSA-2026:51153
AlmaLinux10gpsd, gpsd-clients, python3-gpsd1:3.26.1-3.el10_2.1ALSA-2026:51075
Rocky Linux9gpsd-minimal1:3.26.1-2.el9_8.1RLSA-2026:51153
Rocky Linux10gpsd1:3.26.1-3.el10_2.1RLSA-2026:51075

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

An attacker can embed malicious commands within the gnuplot plot title by controlling the GPS device subtype value. When a user processes a specially crafted plot through `gpsprof`, these commands execute, leading to arbitrary code execution. Exploitation requires user interaction.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10gpsd-1:3.26.1-3.el10_2.1Fixed 2026-08-06RHSA-2026:51075
Red Hat Enterprise Linux 9gpsd-minimal-1:3.26.1-2.el9_8.1Fixed 2026-08-06RHSA-2026:51153

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-58459.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON