Advisory

PYSEC-2026-308

Also known as: CVE-2024-3955, GHSA-4f92-w438-f484

Summary

CraftBeerPi 4 allows arbitrary code execution

Details

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).

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-01 20:22 UTC

Affected packages and fixes

cbpi4

PyPI · All systems

Affected

  • introduced 4.0.0.58, fixed 4.4.1.a1 (ecosystem)

Fixed versions

4.4.1.a1

Fix

  • Fixed version 4.4.1.a1
    pip install --upgrade cbpi4==4.4.1.a1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences