{"id":"CVE-2022-1240","aliases":["ALPINE-CVE-2022-1240","EUVD-2022-24575","GHSA-m6g3-mrp2-c625","UBUNTU-CVE-2022-1240","openSUSE-SU-2024:12173-1"],"status":"published","title":"Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2","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).","severity":{"version":"3.0","score":7.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00737,"percentile":0.54761,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-122","CWE-787"],"published":"2022-04-06T10:15:15Z","modified":"2026-11-03T07:30:24Z","fixes":[{"ecosystem":"Alpine:v3.18","package":"radare2","fixed_in":["5.6.6-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"radare2","fixed_in":["5.6.6-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"radare2","fixed_in":["5.6.6-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"radare2","fixed_in":["5.6.6-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"radare2","fixed_in":["5.6.6-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"radare2","fixed_in":["5.6.6-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"radare2","fixed_in":["5.6.6-r0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.18","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.6-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.6-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.6-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.6-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.6-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.6-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.6-r0"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.6-3.1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.0+dfsg-1","2.0.0+dfsg-1","2.1.0+dfsg-1","2.3.0+dfsg-1","2.3.0+dfsg-2","2.3.0+dfsg-2ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.1+dfsg-5build1","4.0.0+dfsg-1","4.2.1+dfsg-1","4.2.1+dfsg-2","4.2.1+dfsg-2ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.5.0+dfsg-1ubuntu1","5.5.0+dfsg-1.1ubuntu2","5.5.0+dfsg-1.1ubuntu3","5.5.0+dfsg-1.1ubuntu3+esm1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.9.8+dfsg-2","5.9.8+dfsg-2ubuntu0.25.10.1","5.9.8+dfsg-2ubuntu0.25.10.2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.7+ds-1","6.1.6+ds-2","6.1.6+ds-3","6.1.8+ds-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.9.8+dfsg-2","6.0.4+dfsg-1","6.0.7+ds-1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"radare2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.7.0-1.1"}]}],"bundled":38}],"products":[{"vendor":"radare","product":"radare2"},{"vendor":"radareorg","product":"radareorg/radare2"}],"references":[{"url":"https://huntr.dev/bounties/e589bd97-4c74-4e79-93b5-0951a281facc","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","web","report"]},{"url":"https://github.com/radareorg/radare2/commit/ca8d8b39f3e34a4fd943270330b80f1148129de4","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1240","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-m6g3-mrp2-c625"},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-1240","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1240.json","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-1240","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-1240","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0139","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0173","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0419","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0476","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0518","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0519","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0520","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0521","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0522","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0523","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0559","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0676","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0695","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0712","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0713","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-0849","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1031","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1052","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1061","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1207","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1237","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1238","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1240","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1244","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1283","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1284","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1296","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1297","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1382","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1383","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1437","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1444","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1451","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1452","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1649","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1714","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1809","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-1899","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2022-1240","title":"Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2","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).","status":"published","published":"2022-04-06T10:15:15Z","modified":"2024-08-02T23:55:24.53Z","cvss":[{"version":"3.0","score":7.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-122"],"updated_at":"2026-11-02T14:34:38.263045Z"}],"euvd":[{"id":"EUVD-2022-24575","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).","status":"published","published":"2022-04-06T10:15:15Z","modified":"2024-08-02T23:55:24Z","cvss":[{"version":"3.0","score":7.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","level":"high"}],"updated_at":"2026-11-03T03:26:01.998866Z"}],"ghsa":[{"id":"GHSA-m6g3-mrp2-c625","title":"Heap buffer overflow in libr/bin/format/mach0/mach0.c in GitHub repository radareorg/radare2...","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).","status":"published","published":"2022-04-07T00:00:19Z","modified":"2023-01-27T05:01:22Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-122","CWE-787"],"updated_at":"2026-11-02T14:41:52.644766Z"}],"nvd":[{"id":"CVE-2022-1240","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).","status":"published","published":"2022-04-06T11:15:07.587Z","modified":"2026-06-17T04:22:04.463Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.0","score":7.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","level":"high","assessor":"secondary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-122","CWE-787"],"updated_at":"2026-11-02T14:07:14.706146Z"}],"osv":[{"id":"ALPINE-CVE-2022-1240","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).","status":"published","published":"2022-04-06T11:15:07.587Z","modified":"2026-11-03T07:30:24.818103138Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T07:50:38.973973Z"},{"id":"CVE-2022-1240","title":"Heap buffer overflow in libr/bin/format/mach0/mach0.c in radareorg/radare2","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).","status":"published","published":"2022-04-06T10:15:15Z","modified":"2026-10-28T10:28:28.013354403Z","cvss":[{"version":"3.0","score":7.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","level":"high"}],"cwes":["CWE-122"],"updated_at":"2026-11-02T15:44:23.245966Z"},{"id":"UBUNTU-CVE-2022-1240","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).","status":"published","published":"2022-04-06T11:15:00Z","modified":"2026-10-17T12:55:56.28946281Z","cvss":[{"version":"3.0","score":7.6,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","level":"high"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:53:51.630172Z"},{"id":"openSUSE-SU-2024:12173-1","title":"radare2-5.7.0-1.1 on GA media","description":"These are all security issues fixed in the radare2-5.7.0-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:15:45.91926Z","updated_at":"2026-11-02T16:58:35.485255Z"}]}}
