Critical, CVSS 9.8PyPIAmendedPublished
CraftBeerPi 4 allows arbitrary code execution
CVE-2024-3955 · GHSA-4f92-w438-f484
- Affected
- PyPI cbpi4 >= 4.0.0.58, < 4.4.1a1
- Fixed in
- 4.4.1a1· Vendor fix available
- Issue
- 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 arbitrary code execution. This issue affects CraftBeerPi 4: from 4.0.0.58 (commit 563fae9) before 4.4.1.a1 (commit 57572c7).
Recommended action: Upgrade to 4.4.1a1 (pre-release) or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.