cbcvebase.
CVE-2017-7047
published 2017-07-20

CVE-2017-7047: An issue was discovered in certain Apple products. iOS before 10.3.3 is affected. macOS before 10.12.6 is affected. tvOS before 10.2.2 is affected. watchOS…

PriorityP261high8.8CVSS 3.0
AVNACLPRNUIRSUCHIHAH
EXPLOIT
EPSS
6.73%
93.1th percentile
An issue was discovered in certain Apple products. iOS before 10.3.3 is affected. macOS before 10.12.6 is affected. tvOS before 10.2.2 is affected. watchOS before 3.2.3 is affected. The issue involves the "libxpc" component. It allows attackers to execute arbitrary code in a privileged context or cause a denial of service (memory corruption) via a crafted app.

Affected

8 ranges
VendorProductVersion rangeFixed in
appleios
appleiphone_os< 10.3.310.3.3
applemac_os_x< 10.12.610.12.6
applemacos_sierra_10.12.6_security_update_2017-003_el_capitan_and_security_update_201
appletvos< 10.2.210.2.2
appletvos
applewatchos< 3.2.33.2.3
applewatchos

Detection & IOCsextracted from sources · hover to see the quote

urlhttps://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/42407.zip
processairportd
  • Monitor for processes sending crafted XPC messages with mach memory entry ports using non-standard flags to mach_make_memory_entry_64, resulting in shared memory regions being mapped into both sender and receiver address spaces.
  • Detect exploitation attempts targeting the 'airportd' daemon (runs as root) via NSXPC, which is the primary PoC target for CVE-2017-7047 privilege escalation.
  • Look for race condition patterns where xpc_data object backing buffers are modified between NSGetSizeAndAlignment and the subsequent calloc/parse calls in NSMethodSignature signatureWithObjCTypes, indicating an attempt to trigger out-of-bounds writes via the 'ty' key in serialized NSInvocation bplist16 payloads.
  • Alert on deployment or execution of 'triple_fetch' exploit tooling on iOS 10.0–10.3.2 devices, which builds a remote lldb debugserver stub capable of attaching to all userspace processes.
  • Flag use of interposition libraries injected into processes communicating over NSXPC, as the exploit leverages such libraries to craft malicious xpc_data objects with shared-memory-backed mach memory entry ports.
  • ·The exploit is a race condition and is not highly reliable; it may require multiple attempts and hard reboots, meaning detection based on single-event triggers may miss attempts.
  • ·The vulnerability affects any NSXPC service, not just airportd; detection rules scoped only to airportd will miss exploitation of other privileged NSXPC services.
  • ·Apple's advisory attributes the CVE to the 'Kernel' component with memory read impact, while the NVD and PoC describe it as a libxpc logic error enabling arbitrary code execution; detection scope should cover both kernel and userspace XPC layers.

CVSS provenance

nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/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.