| Summary: | Unsupported SHA-256/SHA-512 signature | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Matthieu Duchemin <alkahan> |
| Component: | RPM Packages | Assignee: | Marc Krämer <mageia> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | mageia |
| Version: | 7 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | php-7.3.18-1.mga7.src.rpm, php-pear-1.10.9-1.mga7.src.rpm | CVE: | |
| Status comment: | |||
|
Description
Matthieu Duchemin
2020-07-03 17:56:16 CEST
Thank you for reporting this, and sorry for the slow reply. php-phar [in php SRPM] Summary : Allows running of complete applications out of .phar files Full support for MD5 and SHA1 signatures is possible. Signatures can be required if the ini variable phar.require_hash is set to true. When PECL extension hash is avaiable then SHA-256 and SHA-512 signatures are supported as well. The only reference I could find for PECL was: php-pear:/usr/share/pear/PEAR/Validator/PECL.php so added the php⁻pear SRPM in case the fault is there. You say "even when hash extension is installed", which I take to be from within PHP itself. Assigning to the PHP stack maintainers. Assignee:
bugsquad =>
php in php 7.4 (backports & mga8) this is not reproducable and signatures report:
Array
(
[0] => MD5
[1] => SHA-1
[2] => SHA-256
[3] => SHA-512
[4] => OpenSSL
)
In php 7.4 hash is integrated in core, I've to check why there is a difference.CC:
(none) =>
mageia
Marc Krämer
2020-07-08 16:34:00 CEST
Assignee:
php =>
mageia fixed in updates_testing. As this is not a very critical fix, I think we push it with the next php update. The releases come ~ every month, so we are close to the next version. php-7.3.19-2 is out but the problem still persist.
I have tested php-7.3.20-1.mga7 from updates_testing and it OK:
php -v
PHP 7.3.20 (cli) (built: Jul 8 2020 21:44:11) ( NTS )
php -r 'print_r(Phar::getSupportedSignatures());'
Array
(
[0] => MD5
[1] => SHA-1
[2] => SHA-256
[3] => SHA-512
[4] => OpenSSL
)
Thanks for the fix.
see #26922. Resolution:
(none) =>
FIXED |