oapi-codegen 2.5.0 至 2.8.1(不含 2.8.1)版本中存在代码注入漏洞。攻击者可通过在 OpenAPI 文档中构造 字段,利用 模板未转义该值的问题,注入恶意 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.5.0 ~ 2.8.1 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC