oapi-codegen 2.0.0 至 2.8.1(不含 2.8.1)版本存在代码注入漏洞。攻击者可通过在整数、数字或布尔类型的 Schema 中提供非字面量(non-literal)的枚举项,注入 Go 代码。若攻击者能够控制 OpenAPI 文档,可构造一个枚举项,使 中的 代码块提前闭合,进而注入 函数。该恶意代码将在生成的包被构建并导入时执行。
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| oapi-codegen | oapi-codegen | 2.0.0 ~ 2.8.1 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC