{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:radare:radare2:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "6.1.4"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5590c87deeb7eb2a106fd7aab9ca88bfeebb7397"
            },
            {
              "fixed": "4661541e40947fbc269b0c2686d1cd52ad69c1dc"
            }
          ],
          "repo": "https://github.com/radareorg/radare2",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40499.json"
  },
  "details": "radare2 prior to version 6.1.4 contains a command injection vulnerability in the PDB parser's print_gvars() function that allows attackers to execute arbitrary commands by embedding a newline byte in the PE section header name field. Attackers can craft a malicious PDB file with specially crafted section names to inject r2 commands that are executed when the idp command processes the file.",
  "id": "CVE-2026-40499",
  "modified": "2026-07-16T03:31:10.165761005Z",
  "published": "2026-04-15T02:05:20.899Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40499.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/radareorg/radare2/releases/tag/6.1.4"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40499"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/radare2-command-injection-via-pdb-parser-print-gvars"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/radareorg/radare2/issues/25752"
    },
    {
      "type": "FIX",
      "url": "https://github.com/radareorg/radare2/commit/5590c87deeb7eb2a106fd7aab9ca88bfeebb7397"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "radare2 \u003c 6.1.4 Command Injection via PDB Parser print_gvars()"
}