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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PiBrewing | CraftBeerPi 4 | 4.0.0.58 (commit 563fae9) – < 4.4.1.a1 (commit 57572c7) | 4.4.1.a1 (commit 57572c7) |
| CraftBeerPi - Brewing Controller | CraftBeerPi 4 | — | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | cbpi4 | >= 4.0.0.58, < 4.4.1.a1 | 4.4.1.a1 | GHSA-4f92-w438-f484 |
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