Skip to main content

PHP 5.6 Security Patches for AlmaLinux, Rocky and RHEL 9

Everpatch PHP keeps PHP 5.6 security-patched on Enterprise Linux 9 for legacy applications that cannot leave 5.6 yet.

A signed php56 software collection, installed beside the system PHP, with current security fixes hand-ported to the 5.6 codebase.

PHP2Shell fixed from 5.6.40-43.el9. How to apply it · Check your server · Scan it with CVEfox

phpAfterShell fixed from 5.6.40-54.el9. Check your server

Also built for CentOS 7 · AlmaLinux / Rocky 8

Ultra, $500/year Fleet, from $800/year

The gap

PHP 5.6 has been end of life upstream since 2018, years before Enterprise Linux 9 shipped. The third-party 5.6 collections built for EL9 stopped receiving security fixes.

Everpatch PHP 5.6 for EL9 carries the same hand-ported security stack as the CentOS 7 channel, built for AlmaLinux 9, Rocky Linux 9, RHEL 9 and Oracle Linux 9.

Install

Upgrading an installed php56 collection in place (php56-php-*)

dnf -y install https://extras.getpagespeed.com/release-latest.rpm
dnf update 'php56-php*'
systemctl restart php56-php-fpm
scl enable php56 -- php -v

Fresh install (side by side with the system PHP)

dnf -y install https://extras.getpagespeed.com/release-latest.rpm
dnf install php56-php-cli php56-php-fpm
systemctl enable --now php56-php-fpm
scl enable php56 -- php -v

The php56-php-* collection lives in the always-enabled main GetPageSpeed repository, so no channel needs enabling. It installs under /opt/remi/php56 beside the AlmaLinux, Rocky Linux or RHEL 9 system PHP, which it never touches.

Package names, paths and the php56-php-fpm service match Remi's collection, so an existing install upgrades in place, keeps its configuration, and dnf downgrade takes you back. Afterwards php -v prints Built by GetPageSpeed LLC.

Free for personal use. Running it for a business?

Patching EOL PHP is ongoing work: every new PHP CVE has to be ported to branches upstream abandoned years ago, then built and tested on EL9. Commercial production use requires GetPageSpeed Ultra or GetPageSpeed Fleet: either one funds that work and keeps your production servers covered for the next one, together with the full GetPageSpeed repository. When a new fix is ready for the PHP your servers run, we email you the exact command. Ultra covers up to 10 servers running your own services; Fleet is the plan for servers that host client websites, or for more than 10 servers. 250+ employees or $10M+ revenue, or need a contractual SLA? That is Enterprise.

Ultra, $500/year Fleet, from $800/year Contact us about Enterprise

Security fixes in this channel

The channel's security notes track 94 CVE fixes and 2 further GitHub security advisories that never reached the last vendor build for Enterprise Linux 9.

Fixed in Everpatch PHP 5.6 for AlmaLinux, Rocky Linux or RHEL 9: 96 issues (12 critical, 24 high, 50 medium, 10 low)
Fixed advisoryIssueSeverityCVSS
CVE-2024-8932OOB access in ldap_escapecritical9.8
CVE-2024-11236 (GHSA-5hqh-c84r-qjcv)Integer overflow in the firebird and dblib quoters causing OOB writescritical9.8
CVE-2019-9641Uninitialized read in exif_process_IFD_in_TIFFcritical9.8
CVE-2019-13224Use-after-free in onig_new_deluxe (Oniguruma)critical9.8
CVE-2026-6722 (GHSA-85c2-q967-79q5)Use-After-Free in SOAP using Apache mapcritical9.5
CVE-2023-3824 (GHSA-jqcx-ccgc-xwhv)Buffer overflow and overread in phar_dir_read()critical9.4
CVE-2026-129496 (GHSA-gr4f-wgx5-jpfv)Timezone cache use-after-free can lead to remote code executioncritical9.2
CVE-2026-129289 (GHSA-qc49-hpvq-g2w6)PHP-FPM request smuggling through an unread HTTP request bodycritical9.2
CVE-2026-126714 (GHSA-fm2m-fjf5-v3cp)phpAfterShell Partially overwritten session files can lead to remote code executioncritical9.2
CVE-2026-109619PHP2Shell RCE via stale global statecritical9.2
CVE-2026-109618 (GHSA-6wmf-4rv5-p3rp, GHSA-w8hw-w9fx-j79w)PHP2Shell RCE via OOM corruptioncritical9.2
CVE-2022-31631PDO::quote() may return unquoted stringcritical9.1
CVE-2026-129291 (GHSA-jm4m-qfqx-967m)PHP-FPM epoll use-after-free can lead to local privilege escalationhigh8.8
CVE-2026-127960 (GHSA-mmf9-xm3v-hg2x)Denial of service through folded HTTP response headershigh8.7
CVE-2019-11043Underflow in PHP-FPM can lead to RCEhigh8.7
CVE-2023-3823 (GHSA-3qrf-m4j2-pcrr)Security issue with external entity loading in XML without enabling ithigh8.6
CVE-2026-128064 (GHSA-f6gg-rchx-xw8j)Mixed-case HTTPS and FTPS URLs can expose data in plaintexthigh8.2
CVE-2026-17543 (GHSA-7qpv-r5mr-78m4)SQL injection in ext-pgsql via E'...' backslash breakouthigh8.1
CVE-2024-8926PHP CGI Parameter Injection Vulnerability (CVE-2024-4577 bypass)high8.1
CVE-2022-31625Freeing unallocated memory in php_pgsql_free_params()high8.1
CVE-2021-21703PHP-FPM memory access in root process leading to privilege escalationhigh7.8
CVE-2026-128090 (GHSA-68fq-fh7h-f8gr)PHAR OpenSSL signature bypass via algorithm downgradehigh7.7
CVE-2023-0567password_verify() always returns true for some invalid hasheshigh7.7
CVE-2026-91765 (GHSA-rgrp-mwpx-f6rm)SOAP: Unbounded Recursion in Server-Side cleanup_xml_nodehigh7.5
CVE-2024-8927cgi.force_redirect configuration is bypassable due to the environment variable collisionhigh7.5
CVE-2023-0662DoS vulnerability when parsing multipart request bodyhigh7.5
CVE-2023-0568Array overrun in common path resolve codehigh7.5
CVE-2022-31626mysqlnd/pdo password buffer overflowhigh7.5
CVE-2020-7067OOB Read in urldecode()high7.5
CVE-2020-7062Null Pointer Dereference in PHP Session Upload Progresshigh7.5
CVE-2019-9640Invalid read in exif_process_SOFnhigh7.5
CVE-2019-9639Uninitialized read in exif MAKERNOTE parsinghigh7.5
CVE-2019-9638Uninitialized read in exif MAKERNOTE parsinghigh7.5
CVE-2019-9637Wrong permissions during cross-filesystem rename()high7.5
CVE-2019-19246Oniguruma heap over-read in str_lower_case_matchhigh7.5
CVE-2026-6735XSS within PHP-FPM status endpointhigh7.3
CVE-2026-129538 (GHSA-5j3f-64r7-f564)PHP-CGI out-of-bounds read and write during PATH_INFO correctionmedium6.9
CVE-2026-91768 (GHSA-62xp-839h-2637)IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison (memcmp 12 bytes)medium6.5
CVE-2026-91767 (GHSA-xr7j-rvgx-xq5p)Heap-buffer-overflow in php_openssl_matches_wildcard_name on crafted server cert wildcard CNmedium6.5
CVE-2025-14181 (GHSA-cj93-vc83-wgqv)Integer overflow to buffer overflow in soap HTTP parsingmedium6.5
CVE-2024-3096PHP function password_verify can erroneously return true when argument contains NULmedium6.5
CVE-2024-2756__Host-/__Secure- cookie bypass due to partial CVE-2022-31629 fixmedium6.5
CVE-2022-31629$_COOKIE name mangling (. to _) breaks cookie integritymedium6.5
CVE-2020-7064Use-of-uninitialized-value in exifmedium6.5
CVE-2020-7060global buffer-overflow in mbfl_filt_conv_big5_wcharmedium6.5
CVE-2020-7059OOB read in php_strip_tags_exmedium6.5
CVE-2015-9253php-fpm endless child restart with a non-blocking STDINmedium6.5
CVE-2026-7261SoapServer session-persisted object use-after-free via SOAP header faultmedium6.3
CVE-2026-15353 (GHSA-q23r-hr55-xmpg)SOAP information disclosure through malformed array dimensionsmedium6.3
CVE-2026-129506 (GHSA-4646-p932-gw34)SOAP use-after-free when processing DTD entity referencesmedium6.3
CVE-2025-1861 (GHSA-52jp-hrpf-2jff)Stream HTTP wrapper truncates redirect location to 1024 bytesmedium6.3
CVE-2025-1736 (GHSA-hgf5-96fm-v528)Stream HTTP wrapper header check might omit basic auth headermedium6.3
CVE-2025-1734 (GHSA-pcmh-g36c-qc44)Streams HTTP wrapper does not fail for headers with invalid name and no colonmedium6.3
CVE-2025-1217 (GHSA-v8xr-gpvj-cx9g)Header parser of http stream wrapper does not handle folded headersmedium6.3
CVE-2026-92842 (GHSA-88hq-2827-7pg6)OOB read / info leak in convert.* stream filters when line-break-chars contains NULmedium5.9
CVE-2026-91766 (GHSA-fpwc-w8rq-cr92)Cross-origin credential leak in HTTP stream wrapper redirectsmedium5.9
CVE-2025-6491 (GHSA-453j-q27h-5p8x)NULL Pointer Dereference in PHP SOAP Extension via Large XML Namespace Prefixmedium5.9
CVE-2025-1735pgsql extension does not check for errors during escapingmedium5.9
CVE-2024-8929 (GHSA-h35g-vwh6-m678)Leak partial content of the heap through heap buffer over-read in mysqlndmedium5.8
CVE-2026-14355ext/openssl: Memory corruption in openssl_encrypt with AES-WRAP-PADmedium5.6
CVE-2020-7063Files added to tar with Phar::buildFromIterator have all-access permissionsmedium5.5
CVE-2026-7260 (GHSA-vc5h-9ppw-p5f3)Stack overflow in phar with circular symlinksmedium5.4
CVE-2026-129292 (GHSA-3mg3-cr28-46gc)PHP-FPM status endpoint XSS via unescaped user and script fieldsmedium5.3
CVE-2024-5458Filter bypass in filter_var (FILTER_VALIDATE_URL)medium5.3
CVE-2021-21707Special characters break path parsing in XML functionsmedium5.3
CVE-2021-21702Null Dereference in SoapClientmedium5.3
CVE-2020-7071FILTER_VALIDATE_URL accepts URLs with invalid userinfomedium5.3
CVE-2020-7066get_headers() silently truncates after a null bytemedium5.3
CVE-2019-11048Temporary files are not cleaned after OOM when parsing HTTP request datamedium5.3
CVE-2021-21704Multiple vulnerabilities in Firebird client extensionmedium5
CVE-2024-11234Configuring a proxy in a stream context might allow for CRLF injection in URIsmedium4.8
CVE-2024-11233Single byte overread with convert.quoted-printable-decode filtermedium4.8
CVE-2020-7068Use of freed hash key in the phar_parse_zipfile functionmedium4.8
CVE-2019-11050Use-after-free in exif parsing under memory sanitizermedium4.8
CVE-2019-11047Heap-buffer-overflow READ in exifmedium4.8
CVE-2019-11042heap-buffer-overflow on exif_process_user_comment in EXIF extensionmedium4.8
CVE-2019-11041heap-buffer-overflow on exif_scan_thumbnail in EXIF extensionmedium4.8
CVE-2019-11040Heap buffer overflow in EXIF extensionmedium4.8
CVE-2019-11036Heap over-read in PHP EXIF extensionmedium4.8
CVE-2019-11035Heap over-read in PHP EXIF extensionmedium4.8
CVE-2019-11034Heap over-read in PHP EXIF extensionmedium4.8
CVE-2026-91769 (GHSA-vvx9-73fr-5jjx)TLS Hostname Verification Falls Back to CN After SAN Mismatchmedium4.3
CVE-2026-6103 (GHSA-j3wh-g957-2m85)Phar TAR phar_tar_number() Integer Overflow - Archive Entry Injectionmedium4.3
CVE-2021-21705Incorrect URL validation in FILTER_VALIDATE_URLmedium4.3
CVE-2020-7070PHP parses encoded cookie names so malicious `__Host-` cookies can be sentmedium4.3
CVE-2019-11039Out-of-bounds read in iconv.cmedium4.2
GHSA-ch8v-r6jh-4vvrext/filter: encode 0xFF in FILTER_SANITIZE_ENCODEDlow3.7
CVE-2025-1220 (GHSA-3cr5-j632-f35r)Null byte termination in hostnameslow3.7
CVE-2019-11046Buffer underflow in bc_shift_addsublow3.7
CVE-2019-11045DirectoryIterator class silently truncates after a null bytelow3.7
CVE-2025-1218 (GHSA-r6x9-5r99-36j7)Various packet overreads in mysqlnd_writeprotocol.clow3.4
CVE-2024-8925Erroneous parsing of multipart form datalow3.1
CVE-2026-7262NULL pointer dereference in SOAP apache:Map decoder with missing valuelow2.9
CVE-2023-3247 (GHSA-76gg-c692-v2mw)Missing error check and insufficient random bytes in HTTP Digest authentication for SOAPlow2.6
CVE-2022-31628phar wrapper can occur dos when using quine gzip filelow2.3
GHSA-4w77-75f9-2c8wHeap-Use-After-Free in sapi_read_post_data Processing in CLI SAPI Interfacelow—

Fixes are ports of the upstream php-src security patches, audited hunk by hunk; the provenance of every patch is documented per release.

Frequently asked questions

Is PHP 5.6 on AlmaLinux, Rocky Linux or RHEL 9 patched for PHP2Shell?

Yes. Everpatch PHP 5.6 carries the backported PHP2Shell fix from 5.6.40-43.el9 onward. The PHP version number does not change, so check the package release rather than php -v, or paste your package list into the PHP2Shell checker. The full walkthrough is in our PHP2Shell guide.

Which distributions does PHP 5.6 for EL9 cover?

Every Enterprise Linux 9: AlmaLinux 9, Rocky Linux 9, RHEL 9 and Oracle Linux 9 use the same x86_64 packages.

Will this replace my existing PHP packages?

Only an installed php56 collection. The packages use the php56-php-* names and the php56-php-fpm service, so dnf update 'php56-php*' replaces an existing collection in place. The system PHP is never touched.

How can fixes written for PHP 8 apply to 5.6?

By hand. Each fix is ported to the 5.6 engine, audited hunk by hunk against upstream, and cross-checked against other vendors' 5.6 adaptations where they exist. The provenance of every patch is documented per release.

Do I need a subscription?

Not for personal, development or evaluation use: the PHP packages install from the public GetPageSpeed repository with no signup. Commercial production use requires a subscription under the repository terms: GetPageSpeed Ultra ($500/year) for up to 10 servers running your own services, or GetPageSpeed Fleet (from $800/year) for servers that host client websites or fleets larger than 10. Either one funds these backports and keeps your servers covered for the next EOL PHP CVE. Organizations with 250+ employees or $10M+ revenue, or anyone needing a contractual SLA, should contact us about Enterprise. To license servers without registering IP addresses, place your license file at /etc/getpagespeed/license.jwt.