Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| gpsd / gpsd | affected 0 through 3.27.5; unaffected 5a9c44a42136b9bb98d460a8a716e9fd344a8d93 |
CWE
CWE-94
References
- https://gitlab.com/gpsd/gpsd/-/work_items/406
- https://gitlab.com/gpsd/gpsd/-/commit/5a9c44a42136b9bb98d460a8a716e9fd344a8d93
- https://www.vulncheck.com/advisories/gpsd-gpsprof-code-injection-via-sky-satellites-used-field
ADP enrichment
No English description supplied.
No references supplied.