脆弱性の一覧へ戻る
編集部の見出し:Refitter 2.1.2 未満:OpenAPI の paths のキーから生成コードに任意のコードを混ぜられ、起動時に動く
NVD の情報
Refitter is a tool for generating a C# REST API client using the Refit library. Prior to 2.1.2, OpenAPI `paths`-object keys are emitted verbatim into Refit route attributes such as `[Get("<path>")]` without escaping quotation marks or restricting characters. An attacker-influenced single-line, slash-prefixed path survives default validation without `--skip-validation` and can close the attribute string, interface, and namespace while introducing a top-level file class and reopening the generated structure to keep valid C#. A `[ModuleInitializer]` method executes attacker code when an application compiles and loads the generated assembly at startup, even without calling the generated client. The enum and default value sinks are escaped and are not the vulnerable path-emission sink. The behavior was verified on Refitter 2.0.0 with .NET 8. This issue is fixed in version 2.1.2.
- 公開日
- 2026-10-30
- 最終更新(NVD)
- 2026-11-02
- NVD の状態
- Deferred
- 脆弱性の種類
- CWE-1116、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 の paths のキーから生成コードに任意のコードを混ぜられ、起動時に動く
同じ型の件で、入口は OpenAPI の paths のキー。GHSA-3fhm-p725-h3g3(公告表示 9.3)。
公告に記載の修正版
- Refitter 2.1.2公告
参照(NVD)
- https://github.com/christianhelle/refitter/commit/793d2632899c2022511dfc15e30725ef69073973
- 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-3fhm-p725-h3g3
- https://github.com/user-attachments/files/29395228/maintainer-report.txt
- https://github.com/user-attachments/files/29395229/make_spec.py
- https://github.com/user-attachments/files/29395230/reproduce.sh
NVD から取得:2026-11-20T00:50:18.013Z/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)によります。