CVE-2022-3607: OctoPrint OctoPrint Vulnerable To Special Element Vulnerability
MODERATECVE-2022-3607 is a MODERATE (CVSS 6.0) octoprint vulnerable to special element vulnerability (CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)) affecting OctoPrint libraries in the PyPI ecosystem. The issue involves octoprint vulnerable to special element injection. Remediation is available by upgrading affected packages to version 1.8.3.
CVE-2022-3607 at a Glance
Security Impact
CVSS: 6.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N).
How to Fix CVE-2022-3607
To remediate this vulnerability, upgrade all affected OctoPrint dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install OctoPrint>=1.8.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show OctoPrint
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2022-3607, inspect your installed packages using pip:
pip show OctoPrint
Analyze the terminal output to locate any version of OctoPrint in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.3), your application is affected.
Note: The pip show OctoPrint command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection), where the product does not adequately filter user-controlled input for special elements with control implications. In OctoPrint, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-3607 Affected OctoPrint Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
OctoPrint
|
PyPI |
< 1.8.3
|
1.8.3
|
References
Frequently Asked Questions
What is CVE-2022-3607?
Which OctoPrint versions are affected?
What version fixes CVE-2022-3607?
Is OctoPrint affected?
What is the CVSS score of CVE-2022-3607?
What CWE is associated with CVE-2022-3607?
How can I check PyPI dependencies for CVE-2022-3607?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rj5f-vm79-5j84",
"modified" : "2024-10-08T12:56:58Z",
"published" : "2022-10-19T19:00:24Z",
"aliases" : [ "CVE-2022-3607" ],
"summary" : "OctoPrint vulnerable to Special Element Injection",
"details" : "OctoPrint prior to 1.8.3 is vulnerable to Special Element Injection.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "OctoPrint"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-3607"
}, {
"type" : "WEB",
"url" : "https://github.com/octoprint/octoprint/commit/3cca3a43f3d085e9bbe5a5840c8255bb1b5d052e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/octoprint/octoprint"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/octoprint/PYSEC-2022-42975.yaml"
}, {
"type" : "WEB",
"url" : "https://huntr.dev/bounties/2d1db3c9-93e8-4902-a55b-5ea53c22aa11"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74", "CWE-75" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-10-19T22:21:33Z",
"nvd_published_at" : "2022-10-19T13:15:00Z"
}
}