CVE-2022-1240
Last modified
CVE-2022-1240 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. Heap buffer overflow in libr/bin/format/mach0/mach0.c in GitHub repository radareorg/radare2 prior to 5.8.6. If address sanitizer is disabled during the compiling, the program should executes into the `r_str_ncpy` function. EPSS estimates a 0.73% chance of exploitation in the next 30 days.
Description
Heap buffer overflow in libr/bin/format/mach0/mach0.c in GitHub repository radareorg/radare2 prior to 5.8.6. If address sanitizer is disabled during the compiling, the program should executes into the `r_str_ncpy` function. Therefore I think it is very likely to be exploitable. For more general description of heap buffer overflow, see [CWE](https://cwe.mitre.org/data/definitions/122.html).
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Radare | Radare2 | <= 5.6.6 |
References
- https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4Patch, Third Party Advisory
- https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281faccExploit, Issue Tracking, Patch, Third Party Advisory
- https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4Patch, Third Party Advisory
- https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281faccExploit, Issue Tracking, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-1240?
How severe is CVE-2022-1240?
How do I fix CVE-2022-1240?
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-1234XSS in livehelperchat in GitHub repository livehelperchat/li…6.1
- CVE-2022-1235Weak secrethash can be brute-forced in GitHub repository liv…8.2
- CVE-2022-1236Weak Password Requirements in GitHub repository weseek/growi…6.5
- CVE-2022-1237Improper Validation of Array Index in GitHub repository rada…7.8
- CVE-2022-1238Out-of-bounds Write in libr/bin/format/ne/ne.c in GitHub rep…7.8
- CVE-2022-1239The HubSpot WordPress plugin before 8.8.15 does not validate…8.8
- CVE-2022-1241The Ask me WordPress theme before 6.8.2 does not properly sa…6.1
- CVE-2022-1242Apport can be tricked into connecting to arbitrary sockets a…7.8
- CVE-2022-1243CRHTLF can lead to invalid protocol extraction potentially l…6.1
- CVE-2022-1244heap-buffer-overflow in GitHub repository radareorg/radare2 …5.5
- CVE-2022-1245A privilege escalation flaw was found in the token exchange …9.8
- CVE-2022-1246Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
Are you affected by CVE-2022-1240?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
