| Title | TheCodingMachineのGotenbergにおける不完全なブラックリストに関する脆弱性 |
|---|---|
| Summary | GotenbergはPDFファイル向けのDockerベースのステートレスAPIです。8.30.0以前のバージョンでは、GotenbergのExifToolメタデータ書き込みブロックリストがExifToolのグループプレフィックス構文を使用して回避される可能性があり、その結果、サーバー上で任意のファイルのリネーム、移動、ハードリンク作成、シンボリックリンク作成が可能でした。ExifToolはFile:FileNameのようなグループプレフィックス構文をサポートしており、これはFileNameと同様に処理されます。プレフィックスはWriter.plのSetNewValueでタグマッチング前に除去されます。safeKeyPattern正規表現(^[a-zA-Z0-9\-_.:]+$)はコロンを許可しているため、プレフィックス付きタグ名は検証を通過します。プレフィックスは任意で、File:FileNameやSystem:Directory、a:HardLinkなどがあります。さらに、FilePermissions、FileUserID、FileGroupIDの疑似タグはまったくブロックされず、プレフィックスなしでファイル属性を変更できます。この脆弱性は8.30.0で修正されました。 |
| Possible impacts | 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアの一部が停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | May 14, 2026, midnight |
| Registration Date | May 20, 2026, 1:29 p.m. |
| Last Update | May 20, 2026, 1:29 p.m. |
| CVSS3.0 : 重要 | |
| Score | 8.2 |
|---|---|
| Vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
| TheCodingMachine |
| Gotenberg 8.30.0 未満 |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2026年05月20日] 掲載 |
May 20, 2026, 1:29 p.m. |
| Summary | Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.30.0, The ExifTool metadata write blocklist in Gotenberg can be bypassed using ExifTool's group-prefix syntax, enabling arbitrary file rename, move, hardlink, and symlink creation on the server. ExifTool supports group-prefix syntax where File:FileName is processed identically to FileName -- the prefix is stripped by SetNewValue in Writer.pl before tag matching. The safeKeyPattern regex (^[a-zA-Z0-9\-_.:]+$) allows colons, so prefixed tag names pass validation. Any prefix works: File:FileName, System:Directory, a:HardLink, etc. Additionally, FilePermissions, FileUserID, and FileGroupID pseudo-tags are not blocked at all and can modify file attributes without any prefix. This vulnerability is fixed in 8.30.0. |
|---|---|
| Publication Date | May 15, 2026, 1:16 a.m. |
| Registration Date | May 15, 2026, 4:25 a.m. |
| Last Update | May 18, 2026, 9:15 p.m. |
| Configuration1 | or higher | or less | more than | less than | |
| cpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:* | 8.30.0 | ||||