Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-20458

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-20458
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:26 UTC · Revision 1

Source evidence

CVE-2018-20458

core-osv · Original source

Published 25 Dec 2018, 19:29 UTC

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.

osv:CVE-2018-20458
Complete source record
{
  "id": "cf51a33ac028f32360d95545830ace4b3cc9328cb3e10bc715083035ce1485b6",
  "url": "https://osv.dev/vulnerability/CVE-2018-20458",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-20458",
    "summary": "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.",
    "evidence": "osv:CVE-2018-20458",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-20458",
      "aliases": [
        "CVE-2018-20458"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/radareorg/radare2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b143e1b1b5622ef2f41a90f4c0f7ed4c477caf40"
                },
                {
                  "fixed": "30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:radare:radare2:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.1.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "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": [
              {
                "id": "CVE-2018-20458-6faeb16d",
                "digest": {
                  "threshold": 0.9,
                  "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"
                  ]
                },
                "source": "https://github.com/radareorg/radare2/commit/30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19",
                "target": {
                  "file": "libr/bin/format/mach0/dyldcache.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-20458-74212d20",
                "digest": {
                  "length": 217,
                  "function_hash": "161720472885181522724332432472867243711"
                },
                "source": "https://github.com/radareorg/radare2/commit/b143e1b1b5622ef2f41a90f4c0f7ed4c477caf40",
                "target": {
                  "file": "libr/bin/format/mach0/dyldcache.c",
                  "function": "r_buf_read_string"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-20458-9e599fc1",
                "digest": {
                  "length": 421,
                  "function_hash": "26554252658900537163388606766964397773"
                },
                "source": "https://github.com/radareorg/radare2/commit/30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19",
                "target": {
                  "file": "libr/bin/format/mach0/dyldcache.c",
                  "function": "r_bin_dyldcache_from_bytes_new"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-20458-b11dda58",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "91826688001801390993882391060580842390",
                    "153573451393114912523381648709776456045",
                    "76273051819025290594568241401172330628",
                    "223983239877208572709103316397190836729",
                    "182546693358306982969485629985754146842"
                  ]
                },
                "source": "https://github.com/radareorg/radare2/commit/b143e1b1b5622ef2f41a90f4c0f7ed4c477caf40",
                "target": {
                  "file": "libr/bin/format/mach0/dyldcache.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-20458-c979fa63",
                "digest": {
                  "length": 3790,
                  "function_hash": "266778194537885544084856867930803285434"
                },
                "source": "https://github.com/radareorg/radare2/commit/30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19",
                "target": {
                  "file": "libr/bin/format/mach0/dyldcache.c",
                  "function": "r_bin_dyldcache_extract"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:31:43Z"
          }
        }
      ],
      "modified": "2026-10-20T13:31:43.996020246Z",
      "provider": "osv",
      "references": [
        "https://github.com/radareorg/radare2/commit/30f4c7b52a4e2dc0d0b1bae487d90f5437c69d19",
        "https://github.com/radare/radare2/issues/12374"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-20458",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387784,
  "published_at": "2018-12-25T19:29:00.417+00:00"
}