CraftBeerPi 4 allows arbitrary code execution
CVE-2024-3955 · GHSA-4f92-w438-f484 · PYSEC-2026-308 · published 2 May 2024
How serious is it
- Severity: critical, CVSS score 9.8 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2024-3955?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
cbpi4(PyPI) >= 4.0.0.58, < 4.4.1.a1
How to check
- Run
pip show cbpi4in your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
- Or run
npx shippable-dev scan localhost:3000in your project folder. It reads your lockfile and flags this vulnerability along with every other known one.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- Upgrade
cbpi4to 4.4.1.a1 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
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).
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- nvd.nist.gov/vuln/detail/CVE-2024-3955
- github.com/PiBrewing/craftbeerpi4/issues/132
- cert.pl/en/posts/2024/05/CVE-2024-3955
- cert.pl/posts/2024/05/CVE-2024-3955
- github.com/pypa/advisory-database/tree/main/vulns/cbpi4/PYSEC-2026-308.yaml
- pypi.org/project/cbpi4
- github.com/advisories/GHSA-4f92-w438-f484
- github.com/PiBrewing/craftbeerpi4
Merged from GitHub Advisory Database, OSV. Last updated 28 Oct 2026. All vulnerabilities · RSS · JSON