Vulnerability · Published May 2, 2024 · Assigned by CERT-PL
CVE-2024-3955Arbitrary code execution in CraftBeerPi 4
Critical 9.8
In plain English
A critical-severity code injection in CraftBeerPi 4 from CraftBeerPi - Brewing Controller. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
URL GET parameter "logtime" utilized within the "downloadlog" function from "cbpi/http_endpoints/http_system.py" is subsequently passed to the "os.system" function in "cbpi/controller/system_controller.py" without prior validation allowing to execute arbitrary code.This issue affects CraftBeerPi 4: from 4.0.0.58 (commit 563fae9) before 4.4.1.a1 (commit 57572c7).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | cbpi4 | 4.4.1.a1 | GHSA-4f92-w438-f484 |
| PyPI | cbpi4 | 4.4.1.a1 | PYSEC-2026-308 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| PiBrewing | CraftBeerPi 4 | 4.0.0.58 (commit 563fae9) – before 4.4.1.a1 (commit 57572c7) |
| CraftBeerPi - Brewing Controller | CraftBeerPi 4 | 4.0.0.58 (commit 563fae9) – through * |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://cert.pl/en/posts/2024/05/CVE-2024-3955/ third-party-advisory
- https://cert.pl/posts/2024/05/CVE-2024-3955/ third-party-advisory
- https://github.com/PiBrewing/craftbeerpi4/issues/132 issue-tracking