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

Published Sep 21, 2022
·
Updated

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.

Other sources

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

Affected Software

2 affected componentsFixes available
pip/OctoPrint<1.8.3
1.8.3
OctoPrint OctoPrint<1.8.3

Event History

Sep 21, 2022
CVE Published
via MITRE·09:55 AM
Data Sourced
via MITRE·09:55 AM
DescriptionSeverityWeakness
Sep 22, 2022
Advisory Published
via GitHub·12:00 AM

Frequently Asked Questions

1

What is CVE-2022-2872?

CVE-2022-2872 is a vulnerability that allows unrestricted upload of files with dangerous types in the GitHub repository octoprint/octoprint prior to version 1.8.3.

2

What is the severity of CVE-2022-2872?

The severity of CVE-2022-2872 is medium with a CVSS score of 5.4.

3

How does CVE-2022-2872 affect Octoprint?

CVE-2022-2872 affects Octoprint versions prior to 1.8.3 by allowing unrestricted upload of files with dangerous types.

4

How can I fix CVE-2022-2872?

To fix CVE-2022-2872, update Octoprint to version 1.8.3 or later.

5

Where can I find more information about CVE-2022-2872?

More information about CVE-2022-2872 can be found in the references provided: - [GitHub Commit](https://github.com/octoprint/octoprint/commit/3e3c11811e216fb371a33e28412df83f9701e5b0) - [Huntr Bounty](https://huntr.dev/bounties/b966c74d-6f3f-49fe-b40a-eaf25e362c56)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203