Lucene search

K
seebugRootSSV:93159
HistoryMay 27, 2017 - 12:00 a.m.

Apple MacOS NSUnarchiver Heap Corruption(CVE-2017-2523)

2017-05-2700:00:00
Root
www.seebug.org
11

0.074 Low

EPSS

Percentile

94.1%

Via NSUnarchiver we can read NSBuiltinCharacterSet with a controlled serialized state.
It reads a controlled int using decodeValueOfObjCType:“i” then either passes it to
CFCharacterSetGetPredefined or uses it directly to manipulate __NSBuiltinSetTable.
Neither path has any bounds checking and the index is used to maniupulate c arrays of pointers.

Attached python script will generate a serialized NSBuiltinCharacterSet with a value of 42
for the character set identifier.

tested on MacOS 10.12.3 (16D32)

builtincharset.zip

0.074 Low

EPSS

Percentile

94.1%