Логотип exploitDog
bind:CVE-2022-1642
Консоль
Логотип exploitDog

exploitDog

bind:CVE-2022-1642

Количество 2

Количество 2

nvd логотип

CVE-2022-1642

около 3 лет назад

A program using swift-corelibs-foundation is vulnerable to a denial of service attack caused by a potentially malicious source producing a JSON document containing a type mismatch. This vulnerability is caused by the interaction between a deserialization mechanism offered by the Swift standard library, the Codable protocol; and the JSONDecoder class offered by swift-corelibs-foundation, which can deserialize types that adopt the Codable protocol based on the content of a provided JSON document. When a type that adopts Codable requests the initialization of a field with an integer value, the JSONDecoder class uses a type-erased container with different accessor methods to attempt and coerce a corresponding JSON value and produce an integer. In the case the JSON value was a numeric literal with a floating-point portion, JSONDecoder used different type-eraser methods during validation than it did during the final casting of the value. The checked casting produces a deterministic crash due

CVSS3: 7.5
EPSS: Низкий
github логотип

GHSA-239c-6cv2-wwx8

около 2 лет назад

Swift-corelibs-foundation denial of service in JSON decoding with JSONDecoder

CVSS3: 7.5
EPSS: Низкий

Уязвимостей на страницу

Уязвимость
CVSS
EPSS
Опубликовано
nvd логотип
CVE-2022-1642

A program using swift-corelibs-foundation is vulnerable to a denial of service attack caused by a potentially malicious source producing a JSON document containing a type mismatch. This vulnerability is caused by the interaction between a deserialization mechanism offered by the Swift standard library, the Codable protocol; and the JSONDecoder class offered by swift-corelibs-foundation, which can deserialize types that adopt the Codable protocol based on the content of a provided JSON document. When a type that adopts Codable requests the initialization of a field with an integer value, the JSONDecoder class uses a type-erased container with different accessor methods to attempt and coerce a corresponding JSON value and produce an integer. In the case the JSON value was a numeric literal with a floating-point portion, JSONDecoder used different type-eraser methods during validation than it did during the final casting of the value. The checked casting produces a deterministic crash due

CVSS3: 7.5
0%
Низкий
около 3 лет назад
github логотип
GHSA-239c-6cv2-wwx8

Swift-corelibs-foundation denial of service in JSON decoding with JSONDecoder

CVSS3: 7.5
0%
Низкий
около 2 лет назад

Уязвимостей на страницу