VDB
Sign up
CRITICAL9.8

PYSEC-2026-308

CraftBeerPi 4 allows arbitrary code execution

Quick fix

PYSEC-2026-308 — cbpi4: upgrade to the fixed version with the command below.

pip install --upgrade 'cbpi4>=4.4.1.a1'

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

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/cbpi4
Introduced in: 4.0.0.58Fixed in: 4.4.1.a1
Fixpip install --upgrade 'cbpi4>=4.4.1.a1'

References