目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2022-1642— Apple Swift 代码问题漏洞

一分钟漏洞结论

影响对象
Swift Project Swift Corelib-Foundation
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Apple Swift是美国苹果(Apple)公司的一款适用于macOS、iOS、watchOS和tvOS的编程语言。 Swift swift-corelibs-foundation 5.6.1 版本及之前版本存在安全漏洞,该漏洞源于生成包含类型不匹配的 JSON 文档的潜在恶意源。攻击者利用该漏洞可执行拒绝服务攻击。

AI 预测 7.5 利用难度: 较易 EPSS 0.64% · P49

可能的 ATT&CK 技术 1 AI

T1498 · Network Denial of Service
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2022-1642 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
N/A
来源: CVE Program / CVE List V5
Vulnerability Description
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 to this mismatch. The JSONDecoder class is often wrapped by popular Swift-based web frameworks to parse the body of HTTP requests and perform basic type validation. This makes the attack low-effort: sending a specifically crafted JSON document during a request to these endpoints will cause them to crash. The attack does not have any confidentiality or integrity risks in and of itself; the crash is produced deterministically by an abort function that ensures that execution does not continue in the face of this violation of assumptions. However, unexpected crashes can lead to violations of invariants in services, so it's possible that this attack can be used to trigger error conditions that escalate the risk. Producing a denial of service may also be the goal of an attacker in itself. This issue is solved in Swift 5.6.2 for Linux and Windows. This issue was solved by ensuring that the same methods are invoked both when validating and during casting, so that no type mismatch occurs. Swift for Linux and Windows versions are not ABI-interchangeable. To upgrade a service, its owner must update to this version of the Swift toolchain, then recompile and redeploy their software. The new version of Swift includes an updated swift-corelibs-foundation package. Versions of Swift running on Darwin-based operating systems are not affected.
来源: CVE Program / CVE List V5
CVSS Information
N/A
来源: CVE Program / CVE List V5
Vulnerability Type
非预期数据类型处理不恰当
来源: CVE Program / CVE List V5
Vulnerability Title
Apple Swift 代码问题漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Apple Swift是美国苹果(Apple)公司的一款适用于macOS、iOS、watchOS和tvOS的编程语言。 Swift swift-corelibs-foundation 5.6.1 版本及之前版本存在安全漏洞,该漏洞源于生成包含类型不匹配的 JSON 文档的潜在恶意源。攻击者利用该漏洞可执行拒绝服务攻击。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Swift Project Swift Corelib-Foundation 5.5.0 ~ unspecified -

二、漏洞 CVE-2022-1642 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2022-1642 的情报信息

请登录查看更多情报信息。

CVE-2022-1642 厂商安全公告 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2022-1642

暂无评论


发表评论