CVE-2024-51748 Remote code execution through language setting in kanboard

Critical 9.1 Published Updated

An authenticated admin can achieve remote code execution by uploading a crafted database that uses path traversal to load malicious PHP files.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-51748?

CVE-2024-51748 is a critical path traversal vulnerability in kanboard, published on 11 Nov 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Kanboard is project management software that focuses on the Kanban methodology. An authenticated Kanboard admin can run arbitrary php code on the server in combination with a file write possibility. The user interface language is determined and loaded by the setting `application_language` in the `settings` table. Thus, an attacker who can upload a modified sqlite.db through the dedicated feature, has control over the filepath, which is loaded. Exploiting this vulnerability has one constraint: the attacker must be able to place a file (called translations.php) on the system. However, this is not impossible, think of anonymous FTP server or another application that allows uploading files. Once the attacker has placed its file with the actual php code as the payload, the attacker can craft a sqlite db settings, which uses path traversal to point to the directory, where the `translations.php` file is stored. Then gaining code execution after importing the crafted sqlite.db. This issue has been addressed in version 1.2.42 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-22

Which versions are affected by CVE-2024-51748?

It affects 1 product.

Products include Kanboard Kanboard.

How do I fix CVE-2024-51748?

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

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-51748 being exploited?

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

Sources

Also known as GHSA-jvff-x577-j95p.

Is CVE-2024-51748 in your software?

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

Check your SBOMs for free