脆弱性の一覧へ戻る
編集部の見出し:Refitter 2.1.2 未満:OpenAPI の content-type のキーから生成コードに任意のコードを混ぜられ、起動時に動く
NVD の情報
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.
- 公開日
- 2026-10-30
- 最終更新(NVD)
- 2026-11-06
- NVD の状態
- Deferred
- 脆弱性の種類
- CWE-116、CWE-94
深刻度(CVSS)
- 8.6 HighCVSS 4.0/副/評価:security-advisories@github.com
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
悪用の状況
CISA KEV には掲載されていません(掲載されていないことは、悪用されていないことの証明ではありません)。
EPSS:今後30日に悪用される推定確率 0.35%(全体の上位 70.7%、評価日 2026-11-19)
解消方法
- Refitter のバージョンアップ2.1.2 以降根拠:公告(編集部の転記)
「NVD の条件から推定」は、NVD が影響ありとする版の上限から読み取ったもので、修正版とは限りません。「解消方法の情報なし」は、修正が無いという意味ではありません。必ずベンダーの公告で確認してください。
編集部の記載(レポート掲載時)
レポートの編集部がベンダー公告などから転記した内容です。検証済みの値ではないため、必ず出典で確認してください。
2026-11-20 のレポートRefitter 2.1.2 未満:OpenAPI の content-type のキーから生成コードに任意のコードを混ぜられ、起動時に動く
NuGet の Refitter が OpenAPI 定義の content-type のキーをエスケープせず Refit の Headers 属性に書き込む。[ModuleInitializer] を足すとアセンブリ読み込み時に実行される。外部の OpenAPI 定義から CI で自動生成する .NET 案件が対象。GitHub が 11/20 に審査済みにした(GHSA-p32v-8v8j-j534、公告表示 9.3)。
悪用状況(編集部):悪用の報告は確認されていない根拠
公告に記載の修正版
- Refitter 2.1.2公告
参照(NVD)
- https://github.com/christianhelle/refitter/commit/ab4d8e439d6f0ee82ad49ee15323978d70fe5a67
- https://github.com/christianhelle/refitter/pull/1178
- https://github.com/christianhelle/refitter/releases/tag/2.1.2
- https://github.com/christianhelle/refitter/security/advisories/GHSA-p32v-8v8j-j534
- https://github.com/user-attachments/files/29394848/reproduce.sh
- https://github.com/user-attachments/files/29394851/maintainer-report.txt
- https://github.com/user-attachments/files/29394853/make_spec.py
- https://github.com/christianhelle/refitter/security/advisories/GHSA-p32v-8v8j-j534
NVD から取得:2026-11-20T00:50:17.051Z/EPSS 評価日:2026-11-19
This product uses the NVD API but is not endorsed or certified by the NVD.
悪用の確認情報は CISA Known Exploited Vulnerabilities Catalog(NVD 経由で取得)によります。EPSS は FIRST(www.first.org/epss)によります。