CVE-2024-3955CWE-94

Arbitrary code execution in CraftBeerPi 4

Critical · published May 2, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
66.6
In the wild
Unconfirmed
What it is

🚨 A sneaky URL parameter is the key to chaos! The "logtime" GET parameter in the CraftBeerPi app can let attackers run arbitrary commands on your system. 🔥 Think of it like a restaurant where the chef blindly follows any order without checking if it matches the menu. If a customer sends in a quirky request, like a burger made of metal instead of meat, the chef might just whip it up! This means an attacker could potentially execute any command they want, wreaking absolute havoc on your system. They could modify data, delete logs, or even take control of your device in a matter of seconds. It's a critical situation that could lead to devastating consequences!

Put simply

Think of it like a restaurant where the chef blindly follows any order without checking if it matches the menu. If a customer sends in a quirky request, like a burger made of metal instead of meat, the chef might just whip it up! This vulnerability arises because the "logtime" parameter is passed to the "os.system" function without any validation, permitting the execution of arbitrary system commands in CraftBeerPi 4 versions from 4.0.0.58 to 4.4.1.a1.

What to do

This means an attacker could potentially execute any command they want, wreaking absolute havoc on your system. They could modify data, delete logs, or even take control of your device in a matter of seconds. It's a critical situation that could lead to devastating consequences! To protect your system, update CraftBeerPi immediately to version 4.4.1.a1 or later. Additionally, consider implementing input validation to sanitize parameters before any execution. It's crucial to keep all dependencies up to date to mitigate security risks. You've got this! Follow these steps, and you’ll secure your system in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01149 · 66.6th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2024-05-02T09:43Z
EPSS history
Timeline
  • 02 MAY 09:43Z
    Arbitrary code execution in CraftBeerPi 4
    cvelistv5