CVE-2024-39915 Authenticated remote code execution in Thruk

Critical 10.0 Published Updated

Authenticated attackers can execute arbitrary commands via URL parameters during PDF report generation in Thruk.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-39915?

CVE-2024-39915 is a critical command injection vulnerability in sni Thruk, published on 15 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Thruk is a multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken using the Livestatus API. This authenticated RCE in Thruk allows authorized users with network access to inject arbitrary commands via the URL parameter during PDF report generation. The Thruk web application does not properly process the url parameter when generating a PDF report. An authorized attacker with access to the reporting functionality could inject arbitrary commands that would be executed when the script /script/html2pdf.sh is called. The vulnerability can be exploited by an authorized user with network access. This issue has been addressed in version 3.16. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-94

Which versions are affected by CVE-2024-39915?

How do I fix CVE-2024-39915?

No fix has been published for CVE-2024-39915 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2024-39915 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39915 exists.

Sources

Also known as GHSA-r7gx-h738-4w6f.

Is CVE-2024-39915 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free