critical9.8
CVE-2024-3955
URL GET parameter "logtime" utilized within the "downloadlog" function from "cbpi/http_endpoints/http_system.py" is subsequently passed to the "os.system" func…
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | cbpi4 | >= 4.0.0.58, < 4.4.1.a1 | 4.4.1.a1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-4f92-w438-f484
- 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/pypa/advisory-database/tree/main/vulns/cbpi4/PYSEC-2026-308.yaml
- https://pypi.org/project/cbpi4
- https://cert.pl/en/posts/2024/05/CVE-2024-3955/
- https://cert.pl/posts/2024/05/CVE-2024-3955/