8.1high
An issue was discovered in splitregion in uc.c in Unicorn Engine before 2.0.0-rc5.
- Severity
- 8.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.55% (higher than 47% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- PYSEC-2021-868
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| unicorn-engine unicorn_engine | up to 1.0.3, 2.0.0 | NVD |
| unicorn (PyPI) | before c733bbada356b0373fa8aa72c044574bb855fd24, before 2.0.0rc1 | PyPA Advisory Database |
All scores
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 6.9medium CVSS:2.0 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
Classification
What each source says
CVE List
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.
NVD (es)
Se ha detectado un problema en la función split_region en el archivo uc.c en Unicorn Engine versiones anteriores a 2.0.0-rc5. Permite a atacantes locales escapar del sandbox. Un atacante debe obtener primero la capacidad de ejecutar código diseñado en el sandbox de destino para poder explotar esta vulnerabilidad. El fallo específico se presenta en el administrador de memoria virtual. El problema resulta de la comparación defectuosa de GVA y GPA mientras es llamado a uc_mem_map_ptr para liberar parte de un bloque de memoria reclamado. Un atacante puede aprovechar esta vulnerabilidad para escapar del sandbox y ejecutar código arbitrario en la máquina anfitriona
References
| https://www.unicorn-engine.org/changelog/ | vendor-advisory, web | |
| https://gist.github.com/jwang-a/cb4b6e9551457aa299066076b836a2cd | third-party-advisory, web | |
| https://github.com/unicorn-engine/unicorn/commit/c733bbada356b0373fa8aa72c044574bb855fd24 | fix, patch, third-party-advisory | |
| https://github.com/jwang-a/CTF/blob/master/MyChallenges/Pwn/Unicorns_Aisle/UnicornsAisle.pdf | third-party-advisory, web | |
| https://github.com/unicorn-engine/unicorn/compare/2.0.0-rc4...2.0.0-rc5 | patch, third-party-advisory, web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-44078 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-44078 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-868 changed 2023-11-08 | CC-BY-4.0 |