深刻度 高
Remote Code Execution vulnerability in PHPMailer 6.4.1 running on Windows
phpmailer/phpmailer(ライブラリ)の脆弱性です。深刻度は「高」、CVSS は 8.1です。修正版は 6.5.0 です。
- 対象
- phpmailer/phpmailer(ライブラリ)
- CVE 番号
- CVE-2021-34551
- 深刻度
- 高CVSS 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- 影響を受けるバージョン
- 6.5.0 未満
- 修正版
- 6.5.0
- 公開日
- 情報の更新日
- 出典
- OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)
どのような脆弱性ですか
日本語解説は確認中です。
PHPMailer 6.4.1 contains a possible remote code execution vulnerability through the `$lang_path` parameter of the `setLanguage()` method. If the `$lang_path` parameter is passed unfiltered from user input, it can be set to [a UNC path](https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-f…(原文の抜粋です。全文は下の参考情報から確認できます)
どう対応すればよいですか
phpmailer/phpmailer を、修正版の 6.5.0 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
- https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-7q44-r25x-wm4q(新しいタブで開きます)
- https://nvd.nist.gov/vuln/detail/CVE-2021-34551(新しいタブで開きます)
- https://github.com/PHPMailer/PHPMailer/commit/acd264bf17ff4ac5c915f0d4226dce8a9ea70bc3(新しいタブで開きます)
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2021-34551.yaml(新しいタブで開きます)
- https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md(新しいタブで開きます)
- https://github.com/PHPMailer/PHPMailer/releases/tag/v6.5.0(新しいタブで開きます)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3YRMWGA4VTMXFB22KICMB7YMFZNFV3EJ(新しいタブで開きます)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJYSOFCUBS67J3TKR74SD3C454N7VTYM(新しいタブで開きます)
phpmailer/phpmailer のほかの脆弱性
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。