CVE-2018-4416
WebKit JSC JIT - 'JSPropertyNameEnumerator' Type Confusion
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
2Exploited in Wild
-Decision
Descriptions
Multiple memory corruption issues were addressed with improved memory handling. This issue affected versions prior to iOS 12.1, tvOS 12.1, watchOS 5.1, Safari 12.0.1, iTunes 12.9.1, iCloud for Windows 7.8.
Se abordaron múltiples problemas de corrupción de memoria con una gestión de memoria mejorada. El problema afectaba a iOS en versiones anteriores a la 12.1; tvOS en versiones anteriores a la 12.1; watchOS en versiones anteriores a la 5.1; Safari en versiones anteriores a la 12.0.1; iTunes en versiones anteriores a la 12.9.1 y iCloud para Windows en versiones anteriores a la 7.8.
When a for-in loop is executed, a JSPropertyNameEnumerator object is created at the beginning and used to store the information of the input object to the for-in loop. Inside the loop, the structure ID of the "this" object of every get_by_id expression taking the loop variable as the index is compared to the cached structure ID from the JSPropertyNameEnumerator object. If it's the same, the "this" object of the get_by_id expression will be considered having the same structure as the input object to the for-in loop has. The problem is, it doesn't have anything to prevent the structure from which the cached structure ID from being freed. As structure IDs can be reused after their owners get freed, this can lead to type confusion.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2018-01-02 CVE Reserved
- 2018-10-31 CVE Published
- 2018-11-29 First Exploit
- 2024-08-05 CVE Updated
- 2024-10-27 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
CAPEC
References (8)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://www.exploit-db.com/exploits/45910 | 2018-11-29 | |
https://github.com/erupmi/CVE-2018-4416-exploit | 2024-04-19 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://support.apple.com/kb/HT209192 | 2019-04-05 | |
https://support.apple.com/kb/HT209194 | 2019-04-05 | |
https://support.apple.com/kb/HT209195 | 2019-04-05 | |
https://support.apple.com/kb/HT209196 | 2019-04-05 | |
https://support.apple.com/kb/HT209197 | 2019-04-05 | |
https://support.apple.com/kb/HT209198 | 2019-04-05 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Apple Search vendor "Apple" | Icloud Search vendor "Apple" for product "Icloud" | < 7.8 Search vendor "Apple" for product "Icloud" and version " < 7.8" | - |
Affected
| in | Microsoft Search vendor "Microsoft" | Windows Search vendor "Microsoft" for product "Windows" | - | - |
Safe
|
Apple Search vendor "Apple" | Itunes Search vendor "Apple" for product "Itunes" | < 12.9.1 Search vendor "Apple" for product "Itunes" and version " < 12.9.1" | - |
Affected
| in | Microsoft Search vendor "Microsoft" | Windows Search vendor "Microsoft" for product "Windows" | - | - |
Safe
|
Apple Search vendor "Apple" | Safari Search vendor "Apple" for product "Safari" | < 12.0.1 Search vendor "Apple" for product "Safari" and version " < 12.0.1" | - |
Affected
| ||||||
Apple Search vendor "Apple" | Iphone Os Search vendor "Apple" for product "Iphone Os" | < 12.1 Search vendor "Apple" for product "Iphone Os" and version " < 12.1" | - |
Affected
| ||||||
Apple Search vendor "Apple" | Tvos Search vendor "Apple" for product "Tvos" | < 12.1 Search vendor "Apple" for product "Tvos" and version " < 12.1" | - |
Affected
| ||||||
Apple Search vendor "Apple" | Watchos Search vendor "Apple" for product "Watchos" | < 5.1 Search vendor "Apple" for product "Watchos" and version " < 5.1" | - |
Affected
|