oasdiffに外部参照の制限を回避され、ローカルファイルを読まれる脆弱性
Summary
oasdiffの1.24.0から1.34.1より前の版では、--open使用時に--allow-external-refs=falseの設定が適用されず、外部の$ref経由でローカルファイルを読まれたり、HTTPリクエストを発生させられたりするおそれがあります。読み込まれた内容はレビュー用のバンドルにアップロードされます。修正版の1.34.1に更新してください。信頼できないOpenAPI仕様を扱う環境では早めの対応が望ましいでしょう。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
oasdiffの1.24.0から1.34.1より前の版では、--open使用時に--allow-external-refs=falseの設定が適用されず、外部の$ref経由でローカルファイルを読まれたり、HTTPリクエストを発生させられたりするおそれがあります。読み込まれた内容はレビュー用のバンドルにアップロードされます。修正版の1.34.1に更新してください。信頼できないOpenAPI仕様を扱う環境では早めの対応が望ましいでしょう。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| oasdiffoasdiff |
≥ 1.24.0, < 1.34.1→ 1.34.1 |
1.34.1 |
Original description The description as published by the source.
oasdiff 1.24.0 before 1.34.1 fails to enforce --allow-external-refs=false when --open is used, because the recordingReader() capture reader in load/capture.go never applies the external-reference policy. Attackers supplying an untrusted OpenAPI spec can use external $ref values to read local files or trigger HTTP requests, with contents uploaded in the review bundle.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com