| タイトル | TheCodingMachineのGotenbergにおける競合状態に関する脆弱性 |
|---|---|
| 概要 | GotenbergはPDFファイル用のDockerベースのステートレスAPIです。バージョン8.32.0より前では、Webhookミドルウェアが同期ハンドラーがErrAsyncProcessを返した後にリクエストのecho.Contextへの参照を保持するゴルーチンを生成し、Echoがコンテキストをsync.Poolへリサイクルしていました。並行リクエストがリサイクルされたコンテキストを取得すると、c.Reset()がストアをクリアします。その時点でWebhookゴルーチンがhardTimeoutMiddlewareに達すると、nilのストアエントリに対する未チェックの型アサーションによってrecover()スコープ外でパニックが発生し、Gotenbergプロセスがクラッシュします。匿名の呼び出し者はWebhookパスに到達可能です(デフォルトのwebhook-deny-listはWebhookの送信先のみをフィルタリングし、送信者はフィルタリングしません)。単一ソースから約24件のWebhookリクエストと約60件のGET /versionリクエストをストレステストすると、約2秒でプロセスクラッシュが発生します。この脆弱性はバージョン8.32.0で修正されました。 |
| 想定される影響 | 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| 対策 | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月14日0:00 |
| 登録日 | 2026年5月20日13:29 |
| 最終更新日 | 2026年5月20日13:29 |
| CVSS3.0 : 重要 | |
| スコア | 7.5 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| TheCodingMachine |
| Gotenberg 8.32.0 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月20日] 掲載 |
2026年5月20日13:29 |
| 概要 | Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.32.0, the webhook middleware spawns a goroutine that holds a reference to the request's echo.Context after the synchronous handler returns ErrAsyncProcess and Echo recycles the context back to its sync.Pool. When a concurrent request claims the recycled context, c.Reset() clears the store. If the webhook goroutine reaches hardTimeoutMiddleware at that moment, an unchecked type assertion on a nil store entry panics outside any recover() scope, crashing the Gotenberg process. Any anonymous caller reaches the webhook path (default webhook-deny-list filters only the webhook destination, not the submitter). A single-source stress of ~24 webhook requests plus ~60 GET /version requests crashes the process in about two seconds. This vulnerability is fixed in 8.32.0. |
|---|---|
| 公表日 | 2026年5月15日1:16 |
| 登録日 | 2026年5月15日4:25 |
| 最終更新日 | 2026年5月18日22:02 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:* | 8.32.0 | ||||