{"id":"CVE-2022-2872","aliases":["EUVD-2022-0176","GHSA-49wm-4fp6-h59c","PYSEC-2022-286"],"status":"published","title":"Unrestricted Upload of File with Dangerous Type in octoprint/octoprint","description":"Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3.","severity":{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.00691,"percentile":0.53093,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-434"],"published":"2022-09-21T09:55:08Z","modified":"2026-10-28T02:30:29Z","fixes":[{"ecosystem":"PyPI","package":"octoprint","fixed_in":["1.8.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"octoprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.3"}]}]},{"source":"osv","ecosystem":"PyPI","package":"octoprint","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.3"}]}],"versions":["1.3.11","1.3.12","1.3.12rc1","1.3.12rc3","1.4.0","1.4.0rc1","1.4.0rc2","1.4.0rc3","1.4.0rc4","1.4.0rc5","1.4.0rc6","1.4.1","1.4.1rc1","1.4.1rc2","1.4.1rc3","1.4.1rc4","1.4.2","1.5.0","1.5.0rc1","1.5.0rc2","1.5.0rc3","1.5.1","1.5.2","1.5.3","1.6.0","1.6.0rc1","1.6.0rc2","1.6.0rc3","1.6.1","1.7.0","1.7.0rc1","1.7.0rc2","1.7.0rc3","1.7.1","1.7.2","1.7.3","1.8.0","1.8.0rc1","1.8.0rc2","1.8.0rc3","1.8.0rc4","1.8.0rc5","1.8.1","1.8.2"]},{"source":"osv","ecosystem":"PyPI","package":"octoprint","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"3e3c11811e216fb371a33e28412df83f9701e5b0"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.3"}]}],"versions":["1.3.11","1.3.12","1.3.12rc1","1.3.12rc3","1.4.0","1.4.0rc1","1.4.0rc2","1.4.0rc3","1.4.0rc4","1.4.0rc5","1.4.0rc6","1.4.1","1.4.1rc1","1.4.1rc2","1.4.1rc3","1.4.1rc4","1.4.2","1.5.0","1.5.0rc1","1.5.0rc2","1.5.0rc3","1.5.1","1.5.2","1.5.3","1.6.0","1.6.0rc1","1.6.0rc2","1.6.0rc3","1.6.1","1.7.0","1.7.0rc1","1.7.0rc2","1.7.0rc3","1.7.1","1.7.2","1.7.3","1.8.0","1.8.0rc1","1.8.0rc2","1.8.0rc3","1.8.0rc4","1.8.0rc5","1.8.1","1.8.2","1.2.18","1.2.18rc1","1.2.17rc3","1.2.17rc2","1.2.17rc1","1.2.16","1.2.16rc2","1.2.16rc1","1.2.15","1.2.14","1.2.13","1.2.12","1.2.11","1.2.10","1.2.9","1.2.8","1.2.7","1.2.6","1.2.5","1.2.4","1.2.3","1.2.2","1.2.1","1.2.0","1.2.0-rc3","1.2.0-rc2","1.2.0-rc1","1.2.0-dev","1.1.0-dev"]}],"products":[{"vendor":"octoprint","product":"octoprint"},{"vendor":"octoprint","product":"octoprint/octoprint"}],"references":[{"url":"https://huntr.dev/bounties/b966c74d-6f3f-49fe-b40a-eaf25e362c56","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","web"]},{"url":"https://github.com/octoprint/octoprint/commit/3e3c11811e216fb371a33e28412df83f9701e5b0","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2872","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/octoprint/PYSEC-2022-286.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-49wm-4fp6-h59c","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2872.json","tags":["advisory"]},{"url":"https://github.com/octoprint/octoprint","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-2872","title":"Unrestricted Upload of File with Dangerous Type in octoprint/octoprint","description":"Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3.","status":"published","published":"2022-09-21T09:55:08Z","modified":"2025-05-28T15:26:59.092Z","cvss":[{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low","assessor":"cna"}],"cwes":["CWE-434"],"updated_at":"2026-11-02T14:34:32.495407Z"}],"euvd":[{"id":"EUVD-2022-0176","description":"Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3.","status":"published","published":"2022-09-21T09:55:08Z","modified":"2025-05-28T15:26:59Z","cvss":[{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low"}],"updated_at":"2026-11-02T20:32:37.456975Z"}],"ghsa":[{"id":"GHSA-49wm-4fp6-h59c","title":"OctoPrint vulnerable to Unrestricted Upload of File with Dangerous Type","description":"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.","status":"published","published":"2022-09-22T00:00:32Z","modified":"2024-10-07T21:33:26Z","cvss":[{"version":"4.0","score":2.1,"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","level":"low"},{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low"}],"cwes":["CWE-434"],"updated_at":"2026-11-02T14:38:08.742903Z"}],"nvd":[{"id":"CVE-2022-2872","description":"Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3.","status":"published","published":"2022-09-21T10:15:09.327Z","modified":"2026-06-17T04:42:44.88Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low","assessor":"secondary"}],"cwes":["CWE-434"],"updated_at":"2026-11-02T14:07:28.501364Z"}],"osv":[{"id":"CVE-2022-2872","title":"Unrestricted Upload of File with Dangerous Type in octoprint/octoprint","description":"Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3.","status":"published","published":"2022-09-21T09:55:08Z","modified":"2026-10-28T02:30:29.220379401Z","cvss":[{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low"}],"cwes":["CWE-434"],"updated_at":"2026-11-02T15:44:25.164673Z"},{"id":"GHSA-49wm-4fp6-h59c","title":"OctoPrint vulnerable to Unrestricted Upload of File with Dangerous Type","description":"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.","status":"published","published":"2022-09-22T00:00:32Z","modified":"2024-10-07T21:36:48.462736Z","cvss":[{"version":"3.0","score":3.7,"vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low"},{"version":"4.0","score":2.1,"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","level":"low"}],"cwes":["CWE-434"],"updated_at":"2026-11-02T15:46:36.782754Z"},{"id":"PYSEC-2022-286","description":"Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3.","status":"published","published":"2022-09-21T10:15:00Z","modified":"2026-06-10T17:02:26.068119147Z","updated_at":"2026-11-02T15:52:53.449407Z"}]}}
