CVE-2024-3955 (GCVE-0-2024-3955)
Vulnerability from cvelistv5 – Published: 2024-05-02 09:43 – Updated: 2024-08-01 20:26
VLAI?
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).
Severity ?
9.8 (Critical)
CWE
- CWE-94 - Improper Control of Generation of Code ('Code Injection')
Assigner
References
| URL | Tags | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||
Impacted products
| Vendor | Product | Version | |||||||
|---|---|---|---|---|---|---|---|---|---|
| PiBrewing | CraftBeerPi 4 |
Affected:
4.0.0.58 (commit 563fae9) , < 4.4.1.a1 (commit 57572c7)
(custom)
|
|||||||
|
|||||||||
Credits
Pondzik
{
"containers": {
"adp": [
{
"affected": [
{
"cpes": [
"cpe:2.3:a:pibrewing:craftbeerpi_4:4.0.0.58:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"product": "CraftBeerPi 4",
"vendor": "PiBrewing",
"versions": [
{
"status": "affected",
"version": "4.0.0.58 (commit 563fae9)"
}
]
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2024-3955",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-05-02T17:35:00.248697Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-06-04T17:31:57.493Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-01T20:26:57.228Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"third-party-advisory",
"x_transferred"
],
"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": [
"issue-tracking",
"x_transferred"
],
"url": "https://github.com/PiBrewing/craftbeerpi4/issues/132"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://pypi.org/project/cbpi4/",
"defaultStatus": "unaffected",
"product": "CraftBeerPi 4",
"repo": "https://github.com/PiBrewing/craftbeerpi4",
"vendor": "PiBrewing",
"versions": [
{
"lessThan": "4.4.1.a1 (commit 57572c7)",
"status": "affected",
"version": "4.0.0.58 (commit 563fae9)",
"versionType": "custom"
}
]
},
{
"defaultStatus": "unaffected",
"product": "CraftBeerPi 4",
"repo": "https://github.com/craftbeerpi/craftbeerpi4",
"vendor": "CraftBeerPi - Brewing Controller",
"versions": [
{
"lessThanOrEqual": "*",
"status": "affected",
"version": "4.0.0.58 (commit 563fae9)",
"versionType": "git"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Pondzik"
}
],
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"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.\u003cp\u003eThis issue affects CraftBeerPi 4: from 4.0.0.58 (commit 563fae9) before 4.4.1.a1 (commit 57572c7).\u003c/p\u003e"
}
],
"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"
}
],
"impacts": [
{
"capecId": "CAPEC-242",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-242 Code Injection"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-94",
"description": "CWE-94 Improper Control of Generation of Code (\u0027Code Injection\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-05-02T09:43:51.941Z",
"orgId": "4bb8329e-dd38-46c1-aafb-9bf32bcb93c6",
"shortName": "CERT-PL"
},
"references": [
{
"tags": [
"third-party-advisory"
],
"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": [
"issue-tracking"
],
"url": "https://github.com/PiBrewing/craftbeerpi4/issues/132"
}
],
"source": {
"discovery": "UNKNOWN"
},
"title": "Arbitrary code execution in CraftBeerPi 4",
"x_generator": {
"engine": "Vulnogram 0.1.0-dev"
}
}
},
"cveMetadata": {
"assignerOrgId": "4bb8329e-dd38-46c1-aafb-9bf32bcb93c6",
"assignerShortName": "CERT-PL",
"cveId": "CVE-2024-3955",
"datePublished": "2024-05-02T09:43:51.941Z",
"dateReserved": "2024-04-18T15:36:37.809Z",
"dateUpdated": "2024-08-01T20:26:57.228Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"fkie_nvd": {
"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\"}, {\"lang\": \"es\", \"value\": \"El par\\u00e1metro GET de URL \\\"logtime\\\" utilizado dentro de la funci\\u00f3n \\\"downloadlog\\\" de \\\"cbpi/http_endpoints/http_system.py\\\" se pasa posteriormente a la funci\\u00f3n \\\"os.system\\\" en \\\"cbpi/controller/system_controller.py\\\" sin validaci\\u00f3n previa que permita ejecutar c\\u00f3digo arbitrario. Este problema afecta a CraftBeerPi 4: desde 4.0.0.58 (commit 563fae9) antes de 4.4.1.a1 (commit 57572c7).\"}]",
"id": "CVE-2024-3955",
"lastModified": "2024-11-21T09:30:46.170",
"metrics": "{\"cvssMetricV31\": [{\"source\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"type\": \"Secondary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\", \"baseScore\": 9.8, \"baseSeverity\": \"CRITICAL\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"NONE\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"HIGH\", \"integrityImpact\": \"HIGH\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 3.9, \"impactScore\": 5.9}]}",
"published": "2024-05-02T10:15:08.630",
"references": "[{\"url\": \"https://cert.pl/en/posts/2024/05/CVE-2024-3955/\", \"source\": \"cvd@cert.pl\"}, {\"url\": \"https://cert.pl/posts/2024/05/CVE-2024-3955/\", \"source\": \"cvd@cert.pl\"}, {\"url\": \"https://github.com/PiBrewing/craftbeerpi4/issues/132\", \"source\": \"cvd@cert.pl\"}, {\"url\": \"https://cert.pl/en/posts/2024/05/CVE-2024-3955/\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://cert.pl/posts/2024/05/CVE-2024-3955/\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/PiBrewing/craftbeerpi4/issues/132\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}]",
"sourceIdentifier": "cvd@cert.pl",
"vulnStatus": "Awaiting Analysis",
"weaknesses": "[{\"source\": \"cvd@cert.pl\", \"type\": \"Secondary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-94\"}]}]"
},
"nvd": "{\"cve\":{\"id\":\"CVE-2024-3955\",\"sourceIdentifier\":\"cvd@cert.pl\",\"published\":\"2024-05-02T10:15:08.630\",\"lastModified\":\"2024-11-21T09:30:46.170\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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\"},{\"lang\":\"es\",\"value\":\"El par\u00e1metro GET de URL \\\"logtime\\\" utilizado dentro de la funci\u00f3n \\\"downloadlog\\\" de \\\"cbpi/http_endpoints/http_system.py\\\" se pasa posteriormente a la funci\u00f3n \\\"os.system\\\" en \\\"cbpi/controller/system_controller.py\\\" sin validaci\u00f3n previa que permita ejecutar c\u00f3digo arbitrario. Este problema afecta a CraftBeerPi 4: desde 4.0.0.58 (commit 563fae9) antes de 4.4.1.a1 (commit 57572c7).\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"cvd@cert.pl\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-94\"}]}],\"references\":[{\"url\":\"https://cert.pl/en/posts/2024/05/CVE-2024-3955/\",\"source\":\"cvd@cert.pl\"},{\"url\":\"https://cert.pl/posts/2024/05/CVE-2024-3955/\",\"source\":\"cvd@cert.pl\"},{\"url\":\"https://github.com/PiBrewing/craftbeerpi4/issues/132\",\"source\":\"cvd@cert.pl\"},{\"url\":\"https://cert.pl/en/posts/2024/05/CVE-2024-3955/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://cert.pl/posts/2024/05/CVE-2024-3955/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/PiBrewing/craftbeerpi4/issues/132\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
"vulnrichment": {
"containers": "{\"adp\": [{\"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\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-01T20:26:57.228Z\"}}, {\"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\"}}}], \"affected\": [{\"cpes\": [\"cpe:2.3:a:pibrewing:craftbeerpi_4:4.0.0.58:*:*:*:*:*:*:*\"], \"vendor\": \"PiBrewing\", \"product\": \"CraftBeerPi 4\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.0.0.58 (commit 563fae9)\"}], \"defaultStatus\": \"unknown\"}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-02T17:34:28.726Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"Arbitrary code execution in CraftBeerPi 4\", \"source\": {\"discovery\": \"UNKNOWN\"}, \"credits\": [{\"lang\": \"en\", \"type\": \"finder\", \"value\": \"Pondzik\"}], \"impacts\": [{\"capecId\": \"CAPEC-242\", \"descriptions\": [{\"lang\": \"en\", \"value\": \"CAPEC-242 Code Injection\"}]}], \"affected\": [{\"repo\": \"https://github.com/PiBrewing/craftbeerpi4\", \"vendor\": \"PiBrewing\", \"product\": \"CraftBeerPi 4\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.0.0.58 (commit 563fae9)\", \"lessThan\": \"4.4.1.a1 (commit 57572c7)\", \"versionType\": \"custom\"}], \"collectionURL\": \"https://pypi.org/project/cbpi4/\", \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://github.com/craftbeerpi/craftbeerpi4\", \"vendor\": \"CraftBeerPi - Brewing Controller\", \"product\": \"CraftBeerPi 4\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.0.0.58 (commit 563fae9)\", \"versionType\": \"git\", \"lessThanOrEqual\": \"*\"}], \"defaultStatus\": \"unaffected\"}], \"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\"]}], \"x_generator\": {\"engine\": \"Vulnogram 0.1.0-dev\"}, \"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\", \"supportingMedia\": [{\"type\": \"text/html\", \"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.\u003cp\u003eThis issue affects CraftBeerPi 4: from 4.0.0.58 (commit 563fae9) before 4.4.1.a1 (commit 57572c7).\u003c/p\u003e\", \"base64\": false}]}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-94\", \"description\": \"CWE-94 Improper Control of Generation of Code (\u0027Code Injection\u0027)\"}]}], \"providerMetadata\": {\"orgId\": \"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6\", \"shortName\": \"CERT-PL\", \"dateUpdated\": \"2024-05-02T09:43:51.941Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2024-3955\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-08-01T20:26:57.228Z\", \"dateReserved\": \"2024-04-18T15:36:37.809Z\", \"assignerOrgId\": \"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6\", \"datePublished\": \"2024-05-02T09:43:51.941Z\", \"assignerShortName\": \"CERT-PL\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…