Skip to content
High 7.7

PHPのPharで署名検証を回避され改ざんされたアーカイブが実行される脆弱性

CVE-2026-128090 First seen on SecPulse

Summary

PHPのPharエクステンションでは、署名方式を格納元のアーカイブ内の情報で選ぶため、OpenSSL署名のPharを改ざんされても、ハッシュ方式への格下げで検証を通過させられる脆弱性が見つかりました。影響するのは8.2.36より前の8.2系、8.3.37より前の8.3系、8.4.28より前の8.4系、8.5.13より前の8.5系で、修正版は8.2.36、8.3.37、8.4.28、8.5.13です。攻撃者が用意したPHPコードを実行されるおそれがあるため、該当する版を使っている場合は修正版へ早めに更新してください。

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.

PHPのPharエクステンションでは、署名方式を格納元のアーカイブ内の情報で選ぶため、OpenSSL署名のPharを改ざんされても、ハッシュ方式への格下げで検証を通過させられる脆弱性が見つかりました。影響するのは8.2.36より前の8.2系、8.3.37より前の8.3系、8.4.28より前の8.4系、8.5.13より前の8.5系で、修正版は8.2.36、8.3.37、8.4.28、8.5.13です。攻撃者が用意したPHPコードを実行されるおそれがあるため、該当する版を使っている場合は修正版へ早めに更新してください。

Affected packages

PackageAffected → Fixed
PHP GroupPHP
< 8.2.36→ 8.2.36
≥ 8.3.0, < 8.3.37→ 8.3.37
≥ 8.4.0, < 8.4.28→ 8.4.28
≥ 8.5.0, < 8.5.13→ 8.5.13
Bitnamilibphp
≥ 8.2.0, < 8.2.36→ 8.2.36
≥ 8.3.0, < 8.3.37→ 8.3.37
≥ 8.4.0, < 8.4.28→ 8.4.28
≥ 8.5.0, < 8.5.13→ 8.5.13
Bitnamiphp-min
≥ 8.2.0, < 8.2.36→ 8.2.36
≥ 8.3.0, < 8.3.37→ 8.3.37
≥ 8.4.0, < 8.4.28→ 8.4.28
≥ 8.5.0, < 8.5.13→ 8.5.13
Bitnamiphp
≥ 8.2.0, < 8.2.36→ 8.2.36
≥ 8.3.0, < 8.3.37→ 8.3.37
≥ 8.4.0, < 8.4.28→ 8.4.28
≥ 8.5.0, < 8.5.13→ 8.5.13

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

PHAR OpenSSL signature bypass via algorithm downgrade.

The Phar extension selects the signature verification method from the signature type stored in the archive, and only the OpenSSL types consult the separate .pubkey file holding the trusted public key. An attacker who can modify an OpenSSL-signed Phar archive, but not its public key file, can switch the signature type to a keyless hash such as SHA-256 with a recomputed digest, so the altered archive passes verification even with phar.require_hash enabled. An application that loads the archive may then execute attacker-controlled PHP code. Native, tar-based and zip-based phars are affected.

This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

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