vendor:
Unknown
by:
Unknown
5.5
CVSS
MEDIUM
Type Confusion
843
CWE
Product Name: Unknown
Affected Version From: Unknown
Affected Version To: Unknown
Patch Exists: YES
Related CWE: CVE-2021-12345
CPE: a:vendor:product:version
Platforms Tested:
2021
PathTypeHandlerBase::SetAttributesHelper
When object header inlining is deoptimized, the type handler of the object is converted to a dictionary type handler. The problem is that it doesn't consider some attributes that dictionary type handlers don't have, so adding or removing those attributes can fail. ObjectSlotAttr_Accessor which indicates that the property is an accessor is one of them.
Mitigation:
Update the code to handle the conversion of type handlers to dictionary type handlers properly, considering the attributes that dictionary type handlers don't have.