{"answers":{"affected":"3 open source packages ship an affected version, including cbpi4.","exploited":"There is no known exploitation of CVE-2024-3955 in the wild and no public exploit code.","fix":"Upgrade cbpi4 to 4.4.1.a1 or later.","what":"CVE-2024-3955 is a critical command injection vulnerability in CraftBeerPi 4, published on 2 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-3955 and fix it if it is affected.\n\nWhat it is: CVE-2024-3955 is a critical command injection vulnerability in CraftBeerPi 4, published on 2 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-3955 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cbpi4 (PyPI): affected from 4.0.0.58; fixed in 4.4.1.a1\n- cbpi4 (PyPI): affected from 4.0.0.58; fixed in 4.4.1.a1\n- cbpi4 (PyPI): affected from 4.0.0.58; fixed in 4.4.1.a1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-3955/ (Markdown: https://insights.sbomify.com/CVE-2024-3955/index.md)","id":"CVE-2024-3955","markdown":"https://insights.sbomify.com/CVE-2024-3955/index.md","name":"CVE-2024-3955","record":{"aliases":["GHSA-4f92-w438-f484","PYSEC-2026-308"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Brewing controller software","requires_auth":"none","summary":"CraftBeerPi 4 allows arbitrary code execution via the logtime parameter in the downloadlog function due to lack of input validation.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CERT-PL","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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).","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Arbitrary code execution in CraftBeerPi 4","id":"CVE-2024-3955","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"Cross-site scripting in Pods – Custom Content Types and Fields","id":"CVE-2024-3956"},"packages":[{"ecosystem":"PyPI","fixed":["4.4.1.a1"],"introduced":["4.0.0.58"],"last_affected":[],"package":"cbpi4","purl":null,"source":"GHSA-4f92-w438-f484"},{"ecosystem":"PyPI","fixed":["4.4.1.a1"],"introduced":["4.0.0.58"],"last_affected":[],"package":"cbpi4","purl":"pkg:pypi/cbpi4","source":"GHSA-4f92-w438-f484"},{"ecosystem":"PyPI","fixed":["4.4.1.a1"],"introduced":["4.0.0.58"],"last_affected":[],"package":"cbpi4","purl":"pkg:pypi/cbpi4","source":"PYSEC-2026-308"}],"prev":{"headline":"Ditty – Responsive News Tickers, Sliders, and Lists \u003c= 3.1.38 - Authenticated (Contributor+) PHP Object Injection","id":"CVE-2024-3954"},"products":["CraftBeerPi 4"],"published":"2024-05-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["CraftBeerPi - Brewing Controller","PiBrewing"]},"summary":"CraftBeerPi 4 allows arbitrary code execution via the logtime parameter in the downloadlog function due to lack of input validation.","url":"https://insights.sbomify.com/CVE-2024-3955/"}