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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-63344— Refitter 通过 OpenAPI 内容类型映射键的 C# 源注入漏洞

一分钟漏洞结论

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

Refitter 是一个利用 Refit 库生成 CREST API 客户端的工具。在 2.1.2 版本之前, 内容映射中的 键会被原样输出到 Refit 的 属性字符串中,而未对引号进行转义处理。攻击者可构造一个恶意的 键,该键在未经 参数的默认验证下仍能通过,从而突破属性字符串、接口及命名空间的限制,并注入一个顶层文件类,同时保持生成的 C代码在语法上有效。该顶层类中包含一个 方法,当生成的程序集在应用程序启动时加载,该方法便会执行攻击者代码,且无需调用客户端即可触发。此行为已在 Refitter 2.0.0

CVSS 8.6 · High
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-63344 基础信息

漏洞信息

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

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

Vulnerability Title
Refitter: C# source injection through OpenAPI content-type map keys
来源: CVE Program / CVE List V5
Vulnerability Description
Refitter is a tool for generating a C# REST API client using the Refit library. Prior to 2.1.2, content-type keys in the content maps of `requestBody/responses` are emitted verbatim into a Refit `[Headers("Accept: <ct>", "Content-Type: <ct>")]` attribute string without escaping quotation marks. A crafted content-type key in an attacker-influenced OpenAPI description survives default validation without `--skip-validation`, breaks out of the attribute string and enclosing interface and namespace, and can introduce a top-level file class while leaving valid generated C#. A `[ModuleInitializer]` method in that class executes attacker code when the generated assembly is loaded at application startup, without requiring a call to the client. The behavior was verified with Refitter 2.0.0 and .NET 8. This issue is fixed in version 2.1.2.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
christianhelle refitter < 2.1.2 -

二、漏洞 CVE-2026-63344 的公开POC

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

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-63344 的情报信息

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

CVE-2026-63344 其他参考 (7)

同批安全公告 · christianhelle · 2026-10-30 · 共 4 条

CVE-2026-63345 8.6 HIGH Refitter 通过 OpenAPI 路径键的 C# 源注入漏洞
CVE-2026-63346 8.6 HIGH Refitter 远程代码注入漏洞
CVE-2026-63184 7.1 HIGH Refitter 任意 OpenAPI 引用导致 SSRF 及文件包含漏洞

IV. Related Vulnerabilities