Skip to content
High 7.7

n8nのGraphicsMagickに脆弱性、信頼できない画像で遠隔からコードを実行される恐れ

GHSA-f2cw-9483-7vcp First seen on SecPulse

Summary

n8nの公式Dockerイメージに同梱されるGraphicsMagickに既知の脆弱性があり、Edit Imageノードで信頼できない画像を処理すると、n8nの稼働環境で遠隔からコードを実行されるおそれがあります。修正版は1.123.89、2.45.5、2.46.1、3.0.1で、これらのいずれか以降へのアップグレードが対策になります。すぐに更新できない場合は、Edit Imageノードを含むワークフローを停止し、最新の情報を確認してください。

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.

n8nの公式Dockerイメージに同梱されるGraphicsMagickに既知の脆弱性があり、Edit Imageノードで信頼できない画像を処理すると、n8nの稼働環境で遠隔からコードを実行されるおそれがあります。修正版は1.123.89、2.45.5、2.46.1、3.0.1で、これらのいずれか以降へのアップグレードが対策になります。すぐに更新できない場合は、Edit Imageノードを含むワークフローを停止し、最新の情報を確認してください。

Affected packages

PackageAffected → Fixed
npmn8n
< 1.123.89→ >= 1.123.89
npmn8n
< 2.46.1→ >= 2.46.1
npmn8n
< 2.45.5→ >= 2.45.5
npmn8n
< 3.0.1→ >= 3.0.1
Original description The description as published by the source.

Impact

The version of GraphicsMagick bundled in the official n8n Docker image is affected by known vulnerabilities in some of its components. Processing untrusted images with the Edit Image node could lead to remote code execution on the n8n instance.

Patches

The issue has been fixed in n8n versions 1.123.89, 2.45.5, 2.46.1 and v3.0.1. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict n8n instance access to fully trusted users only.
  • Audit active workflows and deactivate any workflow that connects an unauthenticated Webhook node to an Edit Image node.
  • Apply network-level controls to restrict access to webhook endpoints that feed into Edit Image workflows.
  • Remove the GraphicsMagick coder modules for url, svg, mvg, pcd, and msl from the n8n container if those formats are not required.
  • Disable the Edit Image node by adding n8n-nodes-base.editImage to the NODES_EXCLUDE environment variable if it is not required.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details