CVE-2021-44255: Motioneye Unrestricted Upload Of File With Vulnerability
HIGHCVE-2021-44255 is a HIGH (CVSS 7.2) unrestricted upload of file with vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Motioneye libraries in the PyPI ecosystem. The issue involves unrestricted upload of file with dangerous type in motioneye. Remediation is available in the latest vendor maintenance releases.
CVE-2021-44255 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-44255
To remediate this vulnerability, upgrade all affected Motioneye 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 motioneye>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show motioneye
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-44255, inspect your installed packages using pip:
pip show motioneye
Analyze the terminal output to locate any version of Motioneye in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show motioneye command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Motioneye, 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-2021-44255 Affected Motioneye Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
motioneye
|
PyPI |
≤ 0.42.1
|
|
References
Frequently Asked Questions
What is CVE-2021-44255?
Which Motioneye versions are affected?
What version fixes CVE-2021-44255?
Is motioneye affected?
What is the CVSS score of CVE-2021-44255?
What CWE is associated with CVE-2021-44255?
How can I check PyPI dependencies for CVE-2021-44255?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m2c7-42rf-c62f",
"modified" : "2022-02-14T19:58:19Z",
"published" : "2022-02-01T00:00:44Z",
"aliases" : [ "CVE-2021-44255" ],
"summary" : "Unrestricted Upload of File with Dangerous Type in motionEye",
"details" : "motionEye <= 0.42.1 and motioneEyeOS <= 20200606 allow a remote attacker to upload a configuration backup file containing a malicious python pickle file. This is possible when an installation is accessible over the Internet and uses no or poor authentication credentials.\n\nThe GitHub repositories for motionEye and motionEyeOS are no longer being actively maintained as of January 2022, so release of a patched version is unlikely. Keeping a motionEye or motionEyeOS installation off of the Internet and/or using strong credentials provide protection against this issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "motioneye"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.42.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-44255"
}, {
"type" : "WEB",
"url" : "https://github.com/ccrisan/motioneyeos/issues/2843"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ccrisan/motioneye"
}, {
"type" : "WEB",
"url" : "https://www.pizzapower.me/2021/10/09/self-hosted-security-part-1-motioneye"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-434" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-02-14T19:58:19Z",
"nvd_published_at" : "2022-01-31T12:15:00Z"
}
}