CVE-2024-3955

Arbitrary code execution in CraftBeerPi 4

State
Published
Severity
9.8 Critical
Published
May 2, 2024
Updated
Aug 1, 2024
Reserved
Apr 18, 2024

Read the record on cve.org

Description

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 to execute arbitrary code.This issue affects CraftBeerPi 4: from 4.0.0.58 (commit 563fae9) before 4.4.1.a1 (commit 57572c7).

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
CraftBeerPi 4PiBrewing
  • 4.0.0.58 (commit 563fae9) to before 4.4.1.a1 (commit 57572c7)Affected
CraftBeerPi 4CraftBeerPi - Brewing Controller
  • 4.0.0.58 (commit 563fae9) and laterAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.