Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-19842

getToken in libr/asm/p/asm_x86_nz.c in radare2 before 3.1.0 allows attackers to cause a denial of service (stack-based buffer over-read) via crafted x86 assembly data, as demonstrated by rasm2.

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

Source evidence

CVE-2018-19842

core-osv · Original source

Published 4 Dec 2018, 09:29 UTC

getToken in libr/asm/p/asm_x86_nz.c in radare2 before 3.1.0 allows attackers to cause a denial of service (stack-based buffer over-read) via crafted x86 assembly data, as demonstrated by rasm2.

osv:CVE-2018-19842
Complete source record
{
  "id": "718a7af86b27af06ea301d624b7c86cb70b3f1638898cf9ac7952a5353a1f11f",
  "url": "https://osv.dev/vulnerability/CVE-2018-19842",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-19842",
    "summary": "getToken in libr/asm/p/asm_x86_nz.c in radare2 before 3.1.0 allows attackers to cause a denial of service (stack-based buffer over-read) via crafted x86 assembly data, as demonstrated by rasm2.",
    "evidence": "osv:CVE-2018-19842",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-19842",
      "aliases": [
        "CVE-2018-19842"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/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": "c033496ebc7034e52a84be9cdb2d2dfad6a4cfac"
                },
                {
                  "fixed": "66191f780863ea8c66ace4040d0d04a8842e8432"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:radare:radare2:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.1.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "66191f780863ea8c66ace4040d0d04a8842e8432"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "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-19842.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-19842-05c1c3e4",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "17289356862643552779117616738638230764",
                    "218863782527369619721098549656350751255",
                    "290320381442572029114878873901956750113",
                    "297897495203835988794858844677240805684",
                    "177271434313444291677729203373867461009",
                    "35651211959063986914497847455555591644",
                    "80975977767538660953709823931627412248",
                    "313607390506123454966458181526683900340",
                    "289432130671053739689270343446895357773",
                    "191636119298625527863592410983501793028",
                    "22809562492750362425439120063100732326",
                    "58660093387601925117607657048549441976",
                    "215235810792463894212391932677201206971",
                    "297697175989800728676707968863080534874",
                    "120708633053791330654917401913261671029",
                    "88629528405458015762772855361877408566",
                    "241086510162143667321637698022623388458"
                  ]
                },
                "source": "https://github.com/radareorg/radare2/commit/66191f780863ea8c66ace4040d0d04a8842e8432",
                "target": {
                  "file": "libr/asm/p/asm_x86_nz.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-19842-22a0d70d",
                "digest": {
                  "length": 634,
                  "function_hash": "137780432575582775683134105875768059340"
                },
                "source": "https://github.com/radareorg/radare2/commit/66191f780863ea8c66ace4040d0d04a8842e8432",
                "target": {
                  "file": "libr/asm/p/asm_x86_nz.c",
                  "function": "getToken"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:44:51Z"
          }
        }
      ],
      "modified": "2026-10-20T13:44:51.415544325Z",
      "provider": "osv",
      "references": [
        "https://github.com/radare/radare2/commit/66191f780863ea8c66ace4040d0d04a8842e8432",
        "https://github.com/radare/radare2/issues/12239"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2018-19842",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388008,
  "published_at": "2018-12-04T09:29:00.71+00:00"
}