{"id":"CVE-2024-3955","state":"PUBLISHED","title":"Arbitrary code execution in CraftBeerPi 4","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).\n\n","publishedAt":"2024-05-02T09:43:51.941Z","updatedAt":"2024-08-01T20:26:57.228Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"CERT-PL","products":["PiBrewing CraftBeerPi 4","CraftBeerPi - Brewing Controller CraftBeerPi 4"],"affected":[{"vendor":"PiBrewing","product":"CraftBeerPi 4","defaultStatus":"unaffected","versions":[{"version":"4.0.0.58 (commit 563fae9)","status":"affected","lessThan":"4.4.1.a1 (commit 57572c7)","versionType":"custom"}],"collectionURL":"https://pypi.org/project/cbpi4/","repo":"https://github.com/PiBrewing/craftbeerpi4"},{"vendor":"CraftBeerPi - Brewing Controller","product":"CraftBeerPi 4","defaultStatus":"unaffected","versions":[{"version":"4.0.0.58 (commit 563fae9)","status":"affected","lessThanOrEqual":"*","versionType":"git"}],"repo":"https://github.com/craftbeerpi/craftbeerpi4"}],"references":["https://cert.pl/en/posts/2024/05/CVE-2024-3955/","https://cert.pl/posts/2024/05/CVE-2024-3955/","https://github.com/PiBrewing/craftbeerpi4/issues/132"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/3xxx/CVE-2024-3955.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-3955","state":"PUBLISHED","datePublished":"2024-05-02T09:43:51.941Z","dateUpdated":"2024-08-01T20:26:57.228Z","assignerShortName":"CERT-PL","assignerOrgId":"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6","dateReserved":"2024-04-18T15:36:37.809Z"},"containers":{"cna":{"title":"Arbitrary code execution in CraftBeerPi 4","descriptions":[{"lang":"en","value":"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).\n\n"}],"affected":[{"vendor":"PiBrewing","product":"CraftBeerPi 4","defaultStatus":"unaffected","versions":[{"version":"4.0.0.58 (commit 563fae9)","status":"affected","lessThan":"4.4.1.a1 (commit 57572c7)","versionType":"custom"}],"collectionURL":"https://pypi.org/project/cbpi4/","repo":"https://github.com/PiBrewing/craftbeerpi4"},{"vendor":"CraftBeerPi - Brewing Controller","product":"CraftBeerPi 4","defaultStatus":"unaffected","versions":[{"version":"4.0.0.58 (commit 563fae9)","status":"affected","lessThanOrEqual":"*","versionType":"git"}],"repo":"https://github.com/craftbeerpi/craftbeerpi4"}],"references":[{"url":"https://cert.pl/en/posts/2024/05/CVE-2024-3955/","tags":["third-party-advisory"]},{"url":"https://cert.pl/posts/2024/05/CVE-2024-3955/","tags":["third-party-advisory"]},{"url":"https://github.com/PiBrewing/craftbeerpi4/issues/132","tags":["issue-tracking"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CERT-PL","orgId":"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6","dateUpdated":"2024-05-02T09:43:51.941Z"},"credits":[{"lang":"en","type":"finder","value":"Pondzik"}],"impacts":[{"capecId":"CAPEC-242","descriptions":[{"lang":"en","value":"CAPEC-242 Code Injection"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"PiBrewing","product":"CraftBeerPi 4","defaultStatus":"unknown","versions":[{"version":"4.0.0.58 (commit 563fae9)","status":"affected"}],"cpes":["cpe:2.3:a:pibrewing:craftbeerpi_4:4.0.0.58:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-3955","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2024-05-02T17:35:00.248697Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:31:57.493Z"}},{"title":"CVE Program Container","references":[{"url":"https://cert.pl/en/posts/2024/05/CVE-2024-3955/","tags":["third-party-advisory","x_transferred"]},{"url":"https://cert.pl/posts/2024/05/CVE-2024-3955/","tags":["third-party-advisory","x_transferred"]},{"url":"https://github.com/PiBrewing/craftbeerpi4/issues/132","tags":["issue-tracking","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T20:26:57.228Z"}}]}}}