# CVE-2022-2111: Unrestricted Upload of File with Dangerous Type in inventree/inventree

- Severity: Critical 9.0 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-06-17T01:16:55.000Z
- Modified: 2026-07-07T11:56:17.424Z
- Also known as: GHSA-fr2w-mp56-g4xp, PYSEC-2026-825
- Weaknesses: CWE-434
- Assigned by: @huntrdev

## Description

Unrestricted Upload of File with Dangerous Type in GitHub repository inventree/inventree prior to 0.7.2.

(As written by CVE List.)

## Affected

- inventree inventree/inventree: from unspecified before 0.7.2
- inventree (PyPI): before 0.7.2
- inventree_project inventree: before 0.7.2

## Every score

- @huntrdev: CVSS:3.0 9.0 Critical `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.dev/bounties/a0e5c68e-0f75-499b-bd7b-d935fb8c0cd1> (exploit, patch, third-party-advisory, web)
- <https://github.com/inventree/inventree/commit/26bf51c20a1c9b3130ac5dd2e17649bece5ff84f> (patch, third-party-advisory, web)
- <https://github.com/inventree/InvenTree/security/advisories/GHSA-fr2w-mp56-g4xp> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-2111> (advisory)
- <https://github.com/inventree/inventree-python> (web)
- <https://pypi.org/project/inventree> (package)
- <https://github.com/advisories/GHSA-fr2w-mp56-g4xp> (advisory)

## Sources

- CVE List: [CVE-2022-2111](https://www.cve.org/CVERecord?id=CVE-2022-2111), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-fr2w-mp56-g4xp](https://github.com/advisories/GHSA-fr2w-mp56-g4xp), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2022-2111](https://nvd.nist.gov/vuln/detail/CVE-2022-2111), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-825](https://osv.dev/vulnerability/PYSEC-2026-825), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2022-2111 · Whole record: https://cve.day/CVE-2022-2111.json · Rebuilt by cve.day 2026-11-25T22:58:12.439Z
