TheCodingMachineのGotenbergにおけるOS コマンドインジェクションの脆弱性
| Title |
TheCodingMachineのGotenbergにおけるOS コマンドインジェクションの脆弱性
|
| Summary |
GotenbergはPDFファイル向けのDockerベースのステートレスAPIです。バージョン8.31.0より前のGotenbergの/forms/pdfengines/metadata/write HTTPエンドポイントは、JSONメタデータオブジェクトを受け取り、そのキーをgo-exiftoolライブラリを通じてExifToolに直接渡します。キー文字に対する検証は行われません。JSONキーに埋め込まれた改行文字(\n)はExifToolの標準入力ストリームを新しい引数行に分割し、攻撃者が任意のExifToolフラグ(Perl式を評価する-ifを含む)を注入できるようにします。これにより、単一のHTTPリクエストで認証なしにOSコマンドを実行できてしまいます。レスポンスは有効なPDFを含むHTTP 200で返され、この攻撃は基本的な監視では検知されにくいです。この脆弱性はバージョン8.31.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 |
9.8
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected System
| TheCodingMachine |
|
Gotenberg 8.31.0 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年05月20日] 掲載 |
May 20, 2026, 1:29 p.m. |
NVD Vulnerability Information
CVE-2026-42589
| Summary |
Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.31.0, Gotenberg's /forms/pdfengines/metadata/write HTTP endpoint accepts a JSON metadata object and passes its keys directly to ExifTool via the go-exiftool library. No validation is performed on key characters. A \n embedded in a JSON key splits the ExifTool stdin stream into a new argument line, allowing an attacker to inject arbitrary ExifTool flags — including -if, which evaluates Perl expressions. This achieves unauthenticated OS command execution in a single HTTP request. The response is HTTP 200 with a valid PDF, making the attack transparent to basic monitoring. This vulnerability is fixed in 8.31.0.
|
| Publication Date |
May 15, 2026, 1:16 a.m. |
| Registration Date |
May 15, 2026, 4:25 a.m. |
| Last Update |
May 18, 2026, 10:01 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:* |
|
|
|
8.31.0 |
Related information, measures and tools
Common Vulnerabilities List