CyberRota Analysis
AI-GeneratedThe gpsd utility, specifically versions up to 3.27.5, is vulnerable to a code injection flaw in the gpsprof component, allowing attackers to execute arbitrary OS commands by manipulating GPS input data. By injecting malicious content into the SKY.satellites[].used field, an attacker can exploit unsanitized input to terminate a heredoc and append system calls, leading to command execution under the privileges of the gpsprof user. Organizations utilizing gpsd for GPS data processing should prioritize patching this vulnerability to mitigate the risk of unauthorized command execution.
Original NVD Description
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.