CVE-2021-41253
Last modified
CVE-2021-41253 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. Zydis is an x86/x86-64 disassembler library. Users of Zydis versions v3.2.0 and older that use the string functions provided in `zycore` in order to append untrusted user data to the formatter buffer within their custom formatter hooks can run into heap buffer overflows. EPSS estimates a 1.80% chance of exploitation in the next 30 days.
Description
Zydis is an x86/x86-64 disassembler library. Users of Zydis versions v3.2.0 and older that use the string functions provided in `zycore` in order to append untrusted user data to the formatter buffer within their custom formatter hooks can run into heap buffer overflows. Older versions of Zydis failed to properly initialize the string object within the formatter buffer, forgetting to initialize a few fields, leaving their value to chance. This could then in turn cause zycore functions like `ZyanStringAppend` to make incorrect calculations for the new target size, resulting in heap memory corruption. This does not affect the regular uncustomized Zydis formatter, because Zydis internally doesn't use the string functions in zycore that act upon these fields. However, because the zycore string functions are the intended way to work with the formatter buffer for users of the library that wish to extend the formatter, we still consider this to be a vulnerability in Zydis. This bug is patched starting in version 3.2.1. As a workaround, users may refrain from using zycore string functions in their formatter hooks until updating to a patched version.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Zyantific | Zydis | <= 3.2.0 |
References
- https://github.com/zyantific/zydis/commit/55dd08c210722aed81b38132f5fd4a04ec1943b5Patch, Third Party Advisory
- https://github.com/zyantific/zydis/security/advisories/GHSA-q42v-hv86-3m4gThird Party Advisory
- https://huntr.dev/bounties/96b0a482-7041-45b1-9327-c6a4a8f32d3aExploit, Third Party Advisory
- https://huntr.dev/bounties/d2536d7d-36ce-4723-928c-98d1ee039784Exploit, Patch, Third Party Advisory
- https://github.com/zyantific/zydis/commit/55dd08c210722aed81b38132f5fd4a04ec1943b5Patch, Third Party Advisory
- https://github.com/zyantific/zydis/security/advisories/GHSA-q42v-hv86-3m4gThird Party Advisory
- https://huntr.dev/bounties/96b0a482-7041-45b1-9327-c6a4a8f32d3aExploit, Third Party Advisory
- https://huntr.dev/bounties/d2536d7d-36ce-4723-928c-98d1ee039784Exploit, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-41253?
How severe is CVE-2021-41253?
How do I fix CVE-2021-41253?
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 2021
- CVE-2021-41248GraphiQL is the reference implementation of this monorepo, G…4.7
- CVE-2021-41249GraphQL Playground is a GraphQL IDE for development of graph…4.7
- CVE-2021-4125It was found that the original fix for log4j CVE-2021-44228 …8.1
- CVE-2021-41250Python discord bot is the community bot for the Python Disco…4.3
- CVE-2021-41251@sap-cloud-sdk/core contains the core functionality of the S…5.9
- CVE-2021-41252Kirby is an open source file structured CMS ### Impact Kirby…5.4
- CVE-2021-41254kustomize-controller is a Kubernetes operator, specialized i…8.8
- CVE-2021-41256nextcloud news-android is an Android client for the Nextclou…7.1
- CVE-2021-41258Kirby is an open source file structured CMS. In affected ver…5.4
- CVE-2021-41259Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2021-4126When receiving an OpenPGP/MIME signed email message that con…6.5
- CVE-2021-41260Galette is a membership management web application built for…8.8
Are you affected by CVE-2021-41253?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
