Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. OctoPrint
  4. ›
  5. CVE-2022-2872

CVE-2022-2872: OctoPrint vulnerable to Unrestricted Upload of File with Dangerous Type

September 22, 2022 (updated October 7, 2024)

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.

References

  • github.com/advisories/GHSA-49wm-4fp6-h59c
  • github.com/octoprint/octoprint
  • github.com/octoprint/octoprint/commit/3e3c11811e216fb371a33e28412df83f9701e5b0
  • github.com/pypa/advisory-database/tree/main/vulns/octoprint/PYSEC-2022-286.yaml
  • huntr.dev/bounties/b966c74d-6f3f-49fe-b40a-eaf25e362c56
  • nvd.nist.gov/vuln/detail/CVE-2022-2872

Code Behaviors & Features

Detect and mitigate CVE-2022-2872 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.8.3

Fixed versions

  • 1.8.3

Solution

Upgrade to version 1.8.3 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type

Source file

pypi/OctoPrint/CVE-2022-2872.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.