{"exploit":{"id":"EDB-47192","name":"iMessage - NSArray Deserialization Can Invoke Subclass that does Not Retain References","description":"iMessage - NSArray Deserialization Can Invoke Subclass that does Not Retain References","cves":["CVE-2019-8647"],"author":"Google Security Research","published":"2019-07-30","platform":"multiple","type":"dos","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/47192","path":"exploits/multiple/dos/47192.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-47192.txt","vulnerabilities":[{"id":"CVE-2019-8647","state":"PUBLISHED","title":null,"titleSource":null,"description":"A use after free issue was addressed with improved memory management. This issue is fixed in iOS 12.4, tvOS 12.4, watchOS 5.3. A remote attacker may be able to cause arbitrary code execution.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2019-8647","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2019-8647"},"updatedAt":"2024-08-04T21:24:29.585Z","retrievedAt":"2026-11-26T08:33:32.263Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-47192.png?v=2","url":"https://exploitbin.com/exploits/EDB-47192","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-47192/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-47192/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"When deserializing a class with initWithCoder, subclasses of that class can also be deserialized so long as they do not override initWithCoder and implement all methods that require a concrete implementation.\n\n_PFArray is such a subclass of NSArray. When a _PFArray is deserialized, it is deserialized with [NSArray initWithCoder:], which eventually calls [_PFArray initWithObjects:count:]. This method initializes the array with the objects provided by the NSKeyedUnarchiver, but does not retain references to these objects, so when the NSKeyedUnarchiver is released, the objects in the array will also be released, even though the user of the deserialized objects could still be using them.\n\nThis issue can be reached remotely via iMessage and crash Springboard with no user interaction.\n\nTo reproduce the issue with the files in pfarray.zip:\n\n1) install frida (pip3 install frida)\n2) open sendMessage.py, and replace the sample receiver with the phone number or email of the target device\n3) in injectMessage.js replace the marker \"PATH\" with the path of the obj file\n4) in the local directory, run:\n\npython3 sendMessage.py\n\n\nProof of Concept:\nhttps://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/47192.zip","sha256":"d7ee88d5100f6c6dfa153950fb35bdd310eb7ce89cefff4c6239a0db3ad2ff3e","bytes":1237,"fetchedAt":"2026-11-27T04:08:45.533Z","encoding":"utf-8 (display only; download retains original bytes)"}