{"exploit":{"id":"EDB-41650","name":"Microsoft Windows - Uniscribe Font Processing Heap Memory Corruption in 'USP10!MergeLigRecords' (MS17-011)","description":"Microsoft Windows - Uniscribe Font Processing Heap Memory Corruption in 'USP10!MergeLigRecords' (MS17-011)","cves":["CVE-2017-0087"],"author":"Google Security Research","published":"2017-03-20","platform":"windows","type":"dos","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/41650","path":"exploits/windows/dos/41650.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-41650.txt","vulnerabilities":[{"id":"CVE-2017-0087","state":"PUBLISHED","title":null,"titleSource":null,"description":"Uniscribe in Microsoft Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, and Windows 7 SP1 allows remote attackers to execute arbitrary code via a crafted web site, aka \"Uniscribe Remote Code Execution Vulnerability.\" This vulnerability is different from those described in CVE-2017-0072, CVE-2017-0083, CVE-2017-0084, CVE-2017-0086, CVE-2017-0088, CVE-2017-0089, and CVE-2017-0090.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2017-0087","cvss":{"version":"3.0","baseScore":8.8,"severity":"high","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2017-0087"},"updatedAt":"2024-08-05T12:55:18.453Z","retrievedAt":"2026-11-27T12:11:59.960Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-41650.png?v=2","url":"https://exploitbin.com/exploits/EDB-41650","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-41650/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-41650/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Source: https://bugs.chromium.org/p/project-zero/issues/detail?id=1026&desc=2\n\nWe have encountered a crash in the Windows Uniscribe user-mode library, in the memcpy() function called by USP10!MergeLigRecords, while trying to display text using a corrupted font file:\n\n---\n(2bd0.637c): Access violation - code c0000005 (first chance)\nFirst chance exceptions are reported before any exception handling.\nThis exception may be expected and handled.\neax=0929a000 ebx=09299fa0 ecx=00000009 edx=00000002 esi=09299fda edi=092b7914\neip=76bc9b60 esp=0015f534 ebp=0015f53c iopl=0         nv up ei pl nz na po nc\ncs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010202\nmsvcrt!memcpy+0x5a:\n76bc9b60 f3a5            rep movs dword ptr es:[edi],dword ptr [esi]\n0:000> kb\nChildEBP RetAddr  Args to Child\n0015f53c 751f777d 092b7914 09299fda 00000026 msvcrt!memcpy+0x5a\n0015f554 751f74e9 0928ffd0 0928f9d0 0015f5f0 USP10!MergeLigRecords+0x14d\n0015f5b4 751f7044 0000001a 09223d88 09233fa8 USP10!LoadTTOArabicShapeTables+0x3f9\n0015f5c8 751fc5f4 a60118b0 09223d88 09216124 USP10!LoadArabicShapeTables+0xd4\n0015f5e4 751ea5a0 a60118b0 0928f7d0 0000001a USP10!ArabicLoadTbl+0xd4\n0015f608 751ea692 09216124 a60118b0 0000001a USP10!UpdateCache+0xb0\n0015f61c 751f152d a60118b0 09216000 751f15db USP10!ScriptCheckCache+0x62\n0015f628 751f15db 00000001 00000001 092162e8 USP10!GetShapeFunction+0xd\n0015f660 751f2b14 00000001 00000000 0015f6e0 USP10!RenderItemNoFallback+0x5b\n0015f68c 751f2da2 00000001 00000000 0015f6e0 USP10!RenderItemWithFallback+0x104\n0015f6b0 751f4339 00000000 0015f6e0 09216124 USP10!RenderItem+0x22\n0015f6f4 751e7a04 000004a0 00000400 a60118b0 USP10!ScriptStringAnalyzeGlyphs+0x1e9\n0015f70c 76ca5465 a60118b0 09216040 0000000a USP10!ScriptStringAnalyse+0x284\n0015f758 76ca5172 a60118b0 0015fb40 0000000a LPK!LpkStringAnalyse+0xe5\n0015f854 76ca1410 a60118b0 00000000 00000000 LPK!LpkCharsetDraw+0x332\n0015f888 763c18b0 a60118b0 00000000 00000000 LPK!LpkDrawTextEx+0x40\n0015f8c8 763c22bf a60118b0 000000c0 00000000 USER32!DT_DrawStr+0x13c\n0015f914 763c21f2 a60118b0 0015fb40 0015fb54 USER32!DT_GetLineBreak+0x78\n0015f9c0 763c14d4 a60118b0 00000000 0000000a USER32!DrawTextExWorker+0x255\n0015f9e4 763c2475 a60118b0 0015fb40 ffffffff USER32!DrawTextExW+0x1e\n0015fa18 010e6a5c a60118b0 0015fb40 ffffffff USER32!DrawTextW+0x4d\n[...]\n0:000> dd esi\n09299fda  03e003df 03df03ea 03df0382 03df0384\n09299fea  03df0388 03e0038e 03e00382 03e00384\n09299ffa  03e00388 ???????? ???????? ????????\n0929a00a  ???????? ???????? ???????? ????????\n0929a01a  ???????? ???????? ???????? ????????\n0929a02a  ???????? ???????? ???????? ????????\n0929a03a  ???????? ???????? ???????? ????????\n0929a04a  ???????? ???????? ???????? ????????\n0:000> dd edi\n092b7914  ???????? ???????? ???????? ????????\n092b7924  ???????? ???????? ???????? ????????\n092b7934  ???????? ???????? ???????? ????????\n092b7944  ???????? ???????? ???????? ????????\n092b7954  ???????? ???????? ???????? ????????\n092b7964  ???????? ???????? ???????? ????????\n092b7974  ???????? ???????? ???????? ????????\n092b7984  ???????? ???????? ???????? ????????\n---\n\nThe issue reproduces on Windows 7. It is easiest to reproduce with PageHeap enabled, but it is also possible to observe a crash in a default system configuration. In order to reproduce the problem with the provided samples, it might be necessary to use a custom program which displays all of the font's glyphs at various point sizes.\n\nAttached is a proof of concept malformed font file which triggers the crash.\n\n\nProof of Concept:\nhttps://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/41650.zip","sha256":"b8edae40404db6e94503997781200a8b5f3739294ada8da19aff38ce3e2d92c4","bytes":3633,"fetchedAt":"2026-11-27T12:11:55.519Z","encoding":"utf-8 (display only; download retains original bytes)"}