CVE-2022-23522
Last modified
CVE-2022-23522 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. MindsDB is an open source machine learning platform. An unsafe extraction is being performed using `shutil.unpack_archive()` from a remotely retrieved tarball. EPSS estimates a 0.88% chance of exploitation in the next 30 days.
Description
MindsDB is an open source machine learning platform. An unsafe extraction is being performed using `shutil.unpack_archive()` from a remotely retrieved tarball. Which may lead to the writing of the extracted files to an unintended location. This vulnerability is sometimes called a **TarSlip** or a **ZipSlip variant**. Unpacking files using the high-level function `shutil.unpack_archive()` from a potentially malicious tarball without validating that the destination file path remained within the intended destination directory may cause files to be overwritten outside the destination directory. An attacker could craft a malicious tarball with a filename path, such as `../../../../../../../../etc/passwd`, and then serve the archive remotely using a personal bucket `s3`, thus, retrieve the tarball through **mindsdb** and overwrite the system files of the hosting server. This issue has been addressed in version 22.11.4.3. Users are advised to upgrade. Users unable to upgrade should avoid ingesting archives from untrusted sources.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Mindsdb | Mindsdb | < 22.11.4.3 |
References
- https://github.com/mindsdb/mindsdb/security/advisories/GHSA-7x45-phmr-9wqpExploit, Vendor Advisory
- https://github.com/mindsdb/mindsdb/security/advisories/GHSA-7x45-phmr-9wqpExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-23522?
How severe is CVE-2022-23522?
How do I fix CVE-2022-23522?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-23517rails-html-sanitizer is responsible for sanitizing HTML frag…7.5
- CVE-2022-23518rails-html-sanitizer is responsible for sanitizing HTML frag…6.1
- CVE-2022-23519rails-html-sanitizer is responsible for sanitizing HTML frag…6.1
- CVE-2022-2352The Post SMTP Mailer/Email Log WordPress plugin before 2.1.7…7.2
- CVE-2022-23520rails-html-sanitizer is responsible for sanitizing HTML frag…6.1
- CVE-2022-23521Git is distributed revision control system. gitattributes ar…9.8
- CVE-2022-23523In versions prior to 0.8.1, the linux-loader crate uses the …5.5
- CVE-2022-23524Helm is a tool for managing Charts, pre-configured Kubernete…7.5
- CVE-2022-23525Helm is a tool for managing Charts, pre-configured Kubernete…7.5
- CVE-2022-23526Helm is a tool for managing Charts, pre-configured Kubernete…7.5
- CVE-2022-23527mod_auth_openidc is an OpenID Certified™ authentication and …6.1
- CVE-2022-23529Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
Are you affected by CVE-2022-23522?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
