CVE-2024-3955
Arbitrary code execution in CraftBeerPi 4
- State
- Published
- Severity
- 9.8 Critical
- Published
- May 2, 2024
- Updated
- Aug 1, 2024
- Reserved
- Apr 18, 2024
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).
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 9.8 Critical | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected Products
| Product | Versions |
|---|---|
CraftBeerPi 4PiBrewing |
|
CraftBeerPi 4CraftBeerPi - Brewing Controller |
|
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/132issue-tracking
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.