{"id":"CVE-2024-3955","aliases":["CVE-2024-3955","GHSA-4f92-w438-f484","PYSEC-2026-308"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary code execution in CraftBeerPi 4","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"},{"lang":"en","text":"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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"El parámetro GET de URL \"logtime\" utilizado dentro de la función \"downloadlog\" de \"cbpi/http_endpoints/http_system.py\" se pasa posteriormente a la función \"os.system\" en \"cbpi/controller/system_controller.py\" sin validación previa que permita ejecutar código arbitrario. Este problema afecta a CraftBeerPi 4: desde 4.0.0.58 (commit 563fae9) antes de 4.4.1.a1 (commit 57572c7).","source":"nvd"}],"published":"2024-05-02T09:43:51.941Z","modified":"2026-10-27T16:30:06.791Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"custom","introduced":"4.0.0.58 (commit 563fae9)","fixed":"4.4.1.a1 (commit 57572c7)","status":"affected"}],"vendor":"PiBrewing","product":"CraftBeerPi 4","repo":"https://github.com/PiBrewing/craftbeerpi4","source":"cvelist"},{"ranges":[{"type":"git","introduced":"4.0.0.58 (commit 563fae9)","lastAffected":"*","status":"affected"}],"vendor":"CraftBeerPi - Brewing Controller","product":"CraftBeerPi 4","repo":"https://github.com/craftbeerpi/craftbeerpi4","source":"cvelist"},{"ranges":[{"version":"4.0.0.58 (commit 563fae9)","status":"affected"}],"vendor":"PiBrewing","product":"CraftBeerPi 4","cpe":"cpe:2.3:a:pibrewing:craftbeerpi_4:4.0.0.58:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0.58","status":"affected","fixed":"4.4.1.a1"}],"ecosystem":"PyPI","package":"cbpi4","purl":"pkg:pypi/cbpi4","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0.58","status":"affected","fixed":"4.4.1.a1"}],"ecosystem":"PyPI","package":"cbpi4","purl":"pkg:pypi/cbpi4","source":"pysec"}],"references":[{"url":"https://cert.pl/en/posts/2024/05/CVE-2024-3955/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert.pl/posts/2024/05/CVE-2024-3955/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/PiBrewing/craftbeerpi4/issues/132","tags":["issue-tracking","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3955","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://cert.pl/en/posts/2024/05/CVE-2024-3955","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://cert.pl/posts/2024/05/CVE-2024-3955","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/PiBrewing/craftbeerpi4","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cbpi4/PYSEC-2026-308.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/cbpi4","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-4f92-w438-f484","tags":["advisory"],"sources":["pysec"]}],"credits":["Pondzik"],"assigner":"CERT-PL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-05-02T17:35:00.248Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-3955","url":"https://www.cve.org/CVERecord?id=CVE-2024-3955","licence":"CVE Terms of Use","modified":"2024-08-01T20:26:57.228Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4f92-w438-f484","url":"https://github.com/advisories/GHSA-4f92-w438-f484","licence":"CC-BY-4.0","modified":"2026-10-27T16:30:06.791Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-3955","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3955","licence":"Public domain","modified":"2026-06-17T07:45:32.740Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-308","url":"https://osv.dev/vulnerability/PYSEC-2026-308","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:50.205Z"}],"updatedAt":"2026-11-25T22:58:39.842Z","epss":{"score":0.01139,"percentile":0.67516,"date":"2026-12-01T12:00:22.000Z"}}