You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Phar::setSignatureAlgorithm(): OpenSSL signing reads a freed private key #25528
Phar::setSignatureAlgorithm(Phar::OPENSSL, $key) keeps a pointer into the $key string in PHAR_G(openssl_privatekey) and doesn't copy it. Here the key string from file_get_contents() is freed right after the call, and the next write to the phar signs it with freed memory. The pointer also outlives the request.
Activity
Fix phpGH-25528: Retain the Phar OpenSSL signing key (php#25529)
Merge branch 'PHP-8.4' into PHP-8.5
Merge branch 'PHP-8.5' into PHP-8.6
Merge branch 'PHP-8.6'
Merge branch 'PHP-8.5' into brian.marks/trace-jit-vm-interrupt-jmp