{"id":"CVE-2022-2872","aliases":["CVE-2022-2872","GHSA-49wm-4fp6-h59c","PYSEC-2022-286"],"related":[],"kind":"vulnerability","state":"published","title":"Unrestricted Upload of File with Dangerous Type in octoprint/octoprint","summary":"Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3.","source":"cvelist"},{"lang":"en","text":"OctoPrint prior to version 1.8.3 is vulnerable to Unrestricted Upload of File with Dangerous Type. Due to misconfiguration in move file functionality, an attacker could easily change the file extension of an uploaded malicious file disguised as a `.gcode` file. Version 1.8.3 contains a patch.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una Descarga sin Restricciones de Archivos de Tipo Peligroso en el repositorio GitHub octoprint/octoprint versiones anteriores a 1.8.3","source":"nvd"}],"published":"2022-09-21T09:55:08.000Z","modified":"2026-06-17T04:42:44.880Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.8.3","status":"affected"}],"vendor":"octoprint","product":"octoprint/octoprint","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.8.3"}],"ecosystem":"PyPI","package":"octoprint","purl":"pkg:pypi/octoprint","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.8.3"}],"vendor":"octoprint","product":"octoprint","cpe":"cpe:2.3:a:octoprint:octoprint:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"3e3c11811e216fb371a33e28412df83f9701e5b0"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.8.3"}],"ecosystem":"PyPI","package":"octoprint","purl":"pkg:pypi/octoprint","repo":"https://github.com/octoprint/octoprint","source":"pysec"}],"references":[{"url":"https://huntr.dev/bounties/b966c74d-6f3f-49fe-b40a-eaf25e362c56","tags":["exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/octoprint/octoprint/commit/3e3c11811e216fb371a33e28412df83f9701e5b0","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2872","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/octoprint/octoprint","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/octoprint/PYSEC-2022-286.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-49wm-4fp6-h59c","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntrdev","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-05-28T15:26:52.799Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-2872","url":"https://www.cve.org/CVERecord?id=CVE-2022-2872","licence":"CVE Terms of Use","modified":"2025-05-28T15:26:59.092Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-49wm-4fp6-h59c","url":"https://github.com/advisories/GHSA-49wm-4fp6-h59c","licence":"CC-BY-4.0","modified":"2024-10-07T21:36:48.462Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-2872","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2872","licence":"Public domain","modified":"2026-06-17T04:42:44.880Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-286","url":"https://osv.dev/vulnerability/PYSEC-2022-286","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:26.068Z"}],"updatedAt":"2026-11-25T22:58:15.164Z","epss":{"score":0.00706,"percentile":0.54623,"date":"2026-12-01T12:00:22.000Z"}}