CVE-2021-44255: Motioneye Unrestricted Upload Of File With Vulnerability

HIGH
Advisory Identifier: GHSA-m2c7-42rf-c62f
CVSS 7.2
CWE-434
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2021-44255
GHSA Identifier GHSA-m2c7-42rf-c62f
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Motioneye
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

motioneye fixed: Latest secure release
pip install motioneye>=Latest secure release
Verify Direct and Transitive Dependencies

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

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. The 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.

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?
CVE-2021-44255 is a security vulnerability in Motioneye involving Unrestricted Upload of File with Dangerous Type in motionEye under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Motioneye versions are affected?
Affected versions include releases prior to current release patches across affected packages: motioneye.
What version fixes CVE-2021-44255?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is motioneye affected?
Yes, motioneye is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2021-44255?
CVE-2021-44255 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2021-44255?
CVE-2021-44255 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check PyPI dependencies for CVE-2021-44255?
Run the dependency tree command: 'pip show motioneye'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}