cbcvebase.
CVE-2017-2524
published 2017-05-22

CVE-2017-2524: An issue was discovered in certain Apple products. iOS before 10.3.2 is affected. macOS before 10.12.5 is affected. tvOS before 10.2.1 is affected. watchOS…

PriorityP262critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
6.73%
93.1th percentile
An issue was discovered in certain Apple products. iOS before 10.3.2 is affected. macOS before 10.12.5 is affected. tvOS before 10.2.1 is affected. watchOS before 3.2.2 is affected. The issue involves the "TextInput" component. It allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption and application crash) via crafted data.

Affected

8 ranges
VendorProductVersion rangeFixed in
appleios
appleiphone_os< 10.3.210.3.2
applemac_os_x< 10.12.510.12.5
applemacos_sierra_10.12.5_security_update_2017-002_el_capitan_and_security_update_201
appletvos< 10.2.110.2.1
appletvos
applewatchos< 3.2.23.2.2
applewatchos

Detection & IOCsextracted from sources · hover to see the quote

urlhttps://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/42051.zip
commandmemcpy(<_frames>, <frames_data>, original_length) — heap overflow via NSKeyedArchiver TIKeyboardLayout initWithCoder: with frames value "A"*0x107
  • Monitor for NSKeyedArchiver deserialization of the class `TIKeyboardLayout` — specifically `initWithCoder:` being invoked with a `frames` binary blob whose length is NOT a multiple of 8. The rounding-error overflow occurs when `length % 8 != 0`.
  • The vulnerable class `TIKeyboardLayout` is present in the TextInput framework on both iOS and macOS. Any attack surface that allows untrusted NSKeyedArchiver archives to be decoded (e.g., IPC, pasteboard, file parsing) can trigger this vulnerability.
  • Use ASAN (AddressSanitizer) instrumentation on macOS/iOS builds to detect the heap buffer overflow triggered by this CVE during fuzzing or testing of archive-parsing code paths.
  • The overflow is at most 7 bytes past the allocated buffer (calloc rounds down to nearest multiple of 8, memcpy uses original length). Heap metadata corruption signatures consistent with a small controlled overflow (1–7 bytes) in a calloc'd region should be investigated in crash reports involving TextInput.
  • ·The PoC was tested specifically on macOS 10.12.3 (16D32); behavior on other versions may differ slightly, though the same vulnerable code path exists across iOS, tvOS, and watchOS builds of the TextInput framework.
  • ·The x86 disassembly shown is from the macOS build of the TextInput framework; the same vulnerability exists in the ARM builds used on iOS/tvOS/watchOS, but the register layout will differ.

CVSS provenance

nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.