XML::Sigに任意コード実行の脆弱性、修正版0.74あり
Summary
PerlのXML署名ライブラリXML::Sigの0.74より前の版に、署名付き文書を検証する処理でコマンドを実行されてしまう脆弱性があります。XML署名を検証するPerl製サーバーの管理者は、0.74以降への更新と、依存関係経由で入っている版の確認を進めてください。
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.
PerlのXML署名ライブラリXML::Sigの0.74より前の版に、署名付き文書を検証する処理でコマンドを実行されてしまう脆弱性があります。XML署名を検証するPerl製サーバーの管理者は、0.74以降への更新と、依存関係経由で入っている版の確認を進めてください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANXML-Sig |
< 0.74→ 0.74 |
0.74 |
Original description The description as published by the source.
XML::Sig versions before 0.74 for Perl allow code execution via a document's Algorithm attribute that verify resolves to a function name and calls.
The text after the last # in the DigestMethod and SignatureMethod Algorithm attributes is looked up with Digest::SHA->can. That returns a code reference for any fully qualified function name, Perl builtins in the CORE namespace included. The digest function is called on the canonical form of the referenced element, so the document picks both the function and its argument.
An attacker who can submit a signed document can run a command as the verifying process.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory metacpan.org
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web cpan.org
- web github.com
- web openwall.com