Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-44078

An issue was discovered in split_region in uc.c in Unicorn Engine before 2.0.0-rc5. It allows local attackers to escape the sandbox. An attacker must first obtain the ability to execute crafted code in the target sandbox in order to exploit this vulnerability. The specific flaw exists within the virtual memory manager. The issue results from the faulty comparison of GVA and GPA while calling uc_mem_map_ptr to free part of a claimed memory block. An attacker can leverage this vulnerability to escape the sandbox and execute arbitrary code on the host machine.

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

Source evidence

CVE-2021-44078

core-osv · Original source

Published 26 Dec 2021, 05:15 UTC

An issue was discovered in split_region in uc.c in Unicorn Engine before 2.0.0-rc5. It allows local attackers to escape the sandbox. An attacker must first obtain the ability to execute crafted code in the target sandbox in order to exploit this vulnerability. The specific flaw exists within the virtual memory manager. The issue results from the faulty comparison of GVA and GPA while calling uc_mem_map_ptr to free part of a claimed memory block. An attacker can leverage this vulnerability to escape the sandbox and execute arbitrary code on the host machine.

osv:CVE-2021-44078
Complete source record
{
  "id": "9693894dfad62cc6154e4d1cbfcef814421157d4ea194ba843b68e8570f87828",
  "url": "https://osv.dev/vulnerability/CVE-2021-44078",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-44078",
    "summary": "An issue was discovered in split_region in uc.c in Unicorn Engine before 2.0.0-rc5. It allows local attackers to escape the sandbox. An attacker must first obtain the ability to execute crafted code in the target sandbox in order to exploit this vulnerability. The specific flaw exists within the virtual memory manager. The issue results from the faulty comparison of GVA and GPA while calling uc_mem_map_ptr to free part of a claimed memory block. An attacker can leverage this vulnerability to escape the sandbox and execute arbitrary code on the host machine.",
    "evidence": "osv:CVE-2021-44078",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-44078",
      "aliases": [
        "CVE-2021-44078",
        "PYSEC-2021-868"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/unicorn-engine/unicorn",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "52f90cda023abaca510d59f021c88629270ad6c0"
                },
                {
                  "introduced": "e1204d8977618a9ba3f98e5bf6acf3eb7085ee6e"
                },
                {
                  "last_affected": "0714fb5760fb651a3726e7bd31c20464b3712779"
                },
                {
                  "fixed": "c733bbada356b0373fa8aa72c044574bb855fd24"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:unicorn-engine:unicorn_engine:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:unicorn-engine:unicorn_engine:2.0.0:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0-rc1"
                      },
                      {
                        "last_affected": "2.0.0-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:unicorn-engine:unicorn_engine:2.0.0:rc2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0-rc2"
                      },
                      {
                        "last_affected": "2.0.0-rc2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:unicorn-engine:unicorn_engine:2.0.0:rc3:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0-rc3"
                      },
                      {
                        "last_affected": "2.0.0-rc3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:unicorn-engine:unicorn_engine:2.0.0:rc4:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0-rc4"
                      },
                      {
                        "last_affected": "2.0.0-rc4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c733bbada356b0373fa8aa72c044574bb855fd24"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.0.0-rc1",
            "2.0.0-rc2",
            "2.0.0-rc3",
            "2.0.0-rc4",
            "1.0.3",
            "1.0.2",
            "1.0.2-rc6",
            "1.0.2-rc5",
            "1.0.2-rc4",
            "1.0.2-rc3",
            "1.0.2-rc2",
            "1.0.2-rc1",
            "1.0-rc2",
            "0.9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-44078.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-44078-344afddf",
                "digest": {
                  "length": 2117,
                  "function_hash": "106066105807825728619540824540371274260"
                },
                "source": "https://github.com/unicorn-engine/unicorn/commit/c733bbada356b0373fa8aa72c044574bb855fd24",
                "target": {
                  "file": "uc.c",
                  "function": "split_region"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-44078-97eee2c6",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "334059185868931703861480259373589463038",
                    "4294278430204865816110644826195709746",
                    "191368433424455765902090256558486501641",
                    "72264695351499073512251023204860785196"
                  ]
                },
                "source": "https://github.com/unicorn-engine/unicorn/commit/c733bbada356b0373fa8aa72c044574bb855fd24",
                "target": {
                  "file": "uc.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:59:37Z"
          }
        }
      ],
      "modified": "2026-10-20T13:59:37.729791054Z",
      "provider": "osv",
      "references": [
        "https://gist.github.com/jwang-a/cb4b6e9551457aa299066076b836a2cd",
        "https://github.com/jwang-a/CTF/blob/master/MyChallenges/Pwn/Unicorns_Aisle/UnicornsAisle.pdf",
        "https://www.unicorn-engine.org/changelog/",
        "https://github.com/unicorn-engine/unicorn/commit/c733bbada356b0373fa8aa72c044574bb855fd24",
        "https://github.com/unicorn-engine/unicorn/compare/2.0.0-rc4...2.0.0-rc5"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-44078",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388489,
  "published_at": "2021-12-26T05:15:07.27+00:00"
}