Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

nvd логотип

CVE-2022-1642

Опубликовано: 16 июн. 2022
Источник: nvd
CVSS3: 7.5
CVSS2: 5
EPSS Низкий

Описание

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

Уязвимые конфигурации

Конфигурация 1

Одно из

cpe:2.3:a:apple:swift:*:*:*:*:*:linux:*:*
Версия до 5.6.2 (исключая)
cpe:2.3:a:apple:swift:*:*:*:*:*:windows:*:*
Версия до 5.6.2 (исключая)

EPSS

Процентиль: 43%
0.00206
Низкий

7.5 High

CVSS3

5 Medium

CVSS2

Дефекты

CWE-241
CWE-704

Связанные уязвимости

CVSS3: 7.5
github
около 2 лет назад

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

EPSS

Процентиль: 43%
0.00206
Низкий

7.5 High

CVSS3

5 Medium

CVSS2

Дефекты

CWE-241
CWE-704