{"id":"CVE-2018-20458","details":"In radare2 prior to 3.1.1, r_bin_dyldcache_extract in libr/bin/format/mach0/dyldcache.c may allow attackers to cause a denial-of-service (application crash caused by out-of-bounds read) by crafting an input file.","modified":"2026-08-07T14:58:57.455366Z","published":"2018-12-25T19:29:00.417Z","references":[{"type":"FIX","url":"https://github.com/radareorg/radare2/commit/30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19"},{"type":"EVIDENCE","url":"https://github.com/radare/radare2/issues/12374"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/radareorg/radare2","events":[{"introduced":"0"},{"fixed":"b143e1b1b5622ef2f41a90f4c0f7ed4c477caf40"},{"fixed":"30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19"}],"database_specific":{"cpe":"cpe:2.3:a:radare:radare2:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.1.1"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["3.1.0","3.0.1","3.0.0","2.9.0","2.8.0","2.7.0","2.6.9","2.6.0","2.5.0","2.4.0","2.2.0","2.1.0","2.0.1","2.0.0","1.6.0","1.5.0","1.4.0","1.3.0","1.3.0-git","1.2.0","1.2.0-git","1.1.0","1.0.2","1.0.1","1.0.0","1.0","0.10.6","0.10.5","0.10.4-termux4","termux","0.10.4","0.10.3","0.10.2","0.10.1","0.10.0","radare2-windows-nightly","0.9.9","0.9.8","0.9.8-rc4","0.9.8-rc3","0.9.8-rc2","0.9.8-rc1","0.9.7","0.9.6","0.9.4","0.9.2","0.9","0.8.8","0.8.6"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20458.json","vanir_signatures_modified":"2026-08-07T14:58:57Z","vanir_signatures":[{"source":"https://github.com/radareorg/radare2/commit/30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19","target":{"file":"libr/bin/format/mach0/dyldcache.c"},"deprecated":false,"digest":{"line_hashes":["33697615234698038374817087692842593533","107416886164174987600506473894440617388","165136906653289500006129811050981161828","307808423801991317438087779610783963493","197306588244706090572289457101972937590","23453937759404149304032780830930626892","48645565830626834896255276963913774973","79143757714168592350382606630320278038","122594264965404280577250116718587442747","35317000811384291184355579040281778157","93043934042239327342536855227406636961","154284980941995869959878569114703363939","141067742418168168400446431340085673260","122594264965404280577250116718587442747","113501442067793598217602298376921109149","104755495764440163921667093383128573877","45660416646308782215921207000720577681","33107103318703222496541341453853545890","82363029021622543472965518092718841929","180186444021829823183979026543473611273","68750928414140778618691420272812924082","233782332393436320510781799498341247320","38286177615349822213230147291046856133","162317451857071808331140222295462710129","133204837402986654998212869288455234967","157475155056922961484559689071776260869","305682414167215036765610205165643821735","272568348953340942213789502545805956320","151031390435075064919531200406553093221","102459189796823472295513700474849761378","204720935975153807450903327626688207534","318730493100111169593338374337394427364","199180505858024116082141470974563299848","222954966982767402709875657885270064548","46347142110610930432742040268593541098","120990028991525214042047176465165575421","49315284149594602568252301880015768955","21655873523278281805804328167977235844","124376397949925107136268871652432520265","27937644069751853595300516062067075969","73785588040261856663454313942779492697"],"threshold":0.9},"id":"CVE-2018-20458-6faeb16d","signature_type":"Line","signature_version":"v1"},{"digest":{"function_hash":"161720472885181522724332432472867243711","length":217},"id":"CVE-2018-20458-74212d20","signature_type":"Function","signature_version":"v1","source":"https://github.com/radareorg/radare2/commit/b143e1b1b5622ef2f41a90f4c0f7ed4c477caf40","target":{"function":"r_buf_read_string","file":"libr/bin/format/mach0/dyldcache.c"},"deprecated":false},{"deprecated":false,"digest":{"function_hash":"26554252658900537163388606766964397773","length":421},"id":"CVE-2018-20458-9e599fc1","signature_type":"Function","signature_version":"v1","source":"https://github.com/radareorg/radare2/commit/30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19","target":{"file":"libr/bin/format/mach0/dyldcache.c","function":"r_bin_dyldcache_from_bytes_new"}},{"id":"CVE-2018-20458-b11dda58","signature_type":"Line","signature_version":"v1","source":"https://github.com/radareorg/radare2/commit/b143e1b1b5622ef2f41a90f4c0f7ed4c477caf40","target":{"file":"libr/bin/format/mach0/dyldcache.c"},"deprecated":false,"digest":{"line_hashes":["91826688001801390993882391060580842390","153573451393114912523381648709776456045","76273051819025290594568241401172330628","223983239877208572709103316397190836729","182546693358306982969485629985754146842"],"threshold":0.9}},{"source":"https://github.com/radareorg/radare2/commit/30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19","target":{"file":"libr/bin/format/mach0/dyldcache.c","function":"r_bin_dyldcache_extract"},"deprecated":false,"digest":{"function_hash":"266778194537885544084856867930803285434","length":3790},"id":"CVE-2018-20458-c979fa63","signature_type":"Function","signature_version":"v1"}]}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}