CraftBeerPi 4 allows arbitrary code execution
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).
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | cbpi4 | >= 4.0.0.58, < 4.4.1.a1 | 4.4.1.a1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-3955
- https://github.com/PiBrewing/craftbeerpi4/issues/132
- https://cert.pl/en/posts/2024/05/CVE-2024-3955
- https://cert.pl/posts/2024/05/CVE-2024-3955
- https://github.com/PiBrewing/craftbeerpi4
- https://pypi.org/project/cbpi4
- https://github.com/advisories/GHSA-4f92-w438-f484
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-94- Platform
- Python (PyPI)
- Package
cbpi4- Disclosed
- 02.05.2024
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-4f92-w438-f484 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-308 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: cbpi4
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.