{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "87260e7bb1a9edfb2ce9b41549c4142129061ca5"
            }
          ],
          "repo": "https://github.com/mruby/mruby",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "@huntrdev",
    "cwe_ids": [
      "CWE-416"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1212.json"
  },
  "details": "Use-After-Free in str_escape in mruby/mruby in GitHub repository mruby/mruby prior to 3.2. Possible arbitrary code execution if being exploited.",
  "id": "CVE-2022-1212",
  "modified": "2026-04-01T23:07:54.772813528Z",
  "published": "2022-04-05T03:45:19Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://huntr.dev/bounties/9fcc06d0-08e4-49c8-afda-2cae40946abe"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1212.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-1212"
    },
    {
      "type": "FIX",
      "url": "https://github.com/mruby/mruby/commit/3cf291f72224715942beaf8553e42ba8891ab3c6"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Use-After-Free in str_escape in mruby/mruby in mruby/mruby"
}