{"id":21357,"date":"2026-10-22T08:25:54","date_gmt":"2026-10-22T08:25:54","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=21357"},"modified":"2026-10-23T13:30:43","modified_gmt":"2026-10-23T13:30:43","slug":"how-to-protect-your-vps-from-the-php2shell-php-vulnerabilities","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-protect-your-vps-from-the-php2shell-php-vulnerabilities\/","title":{"rendered":"How to protect your VPS from the php2shell PHP vulnerabilities at Hostinger"},"content":{"rendered":"<p>To protect your Hostinger VPS from the php2shell PHP vulnerabilities, update PHP to 8.5.12, 8.4.27, 8.3.36, or 8.2.35 and restart PHP. If you can&rsquo;t update straight away, disable session upload progress as a temporary measure and limit file uploads. You manage PHP yourself on a Hostinger VPS, so Hostinger&rsquo;s server-level protections don&rsquo;t apply to it. Websites on Hostinger Web, Cloud, Agency, and cPanel hosting are already protected and need no action.<\/p><h2 id=\"h-what-the-php2shell-php-vulnerabilities-are\">What the php2shell PHP vulnerabilities are<\/h2><p>The php2shell PHP vulnerabilities are two critical flaws, CVE-2026-109618 and CVE-2026-109619, that the PHP project fixed on October 21, 2026. Both are rated 9.2 out of 10 on the Common Vulnerability Scoring System (CVSS). Details leaked before the planned release, and exploit code for one of the flaws circulated before the fix was available.<\/p><p>Every PHP version before 8.5.12, 8.4.27, 8.3.36, and 8.2.35 is affected, including WordPress, WooCommerce, and Magento websites. Updating WordPress, themes, or plugins doesn&rsquo;t fix php2shell, because the flaws are in PHP itself.<\/p><p>You don&rsquo;t need to do anything if your <a data-click-id=\"hgr-post-content-link-hostinger-vps\" href=\"https:\/\/www.hostinger.com\/support\/8852150-what-is-a-self-managed-vps-at-hostinger\/\">Hostinger VPS<\/a> doesn&rsquo;t run PHP.<\/p><h2 id=\"h-update-php-on-your-hostinger-vps-to-fix-php2shell\">Update PHP on your Hostinger VPS to fix php2shell<\/h2><p>Update PHP on your Hostinger VPS to 8.5.12, 8.4.27, 8.3.36, or 8.2.35 as soon as you can, then restart PHP. Updating PHP is the only complete fix for php2shell.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #feedaf80;border-color: #fbc91633\">\n<p>PHP 8.1 and older versions no longer get fixes from the PHP project. Upgrade PHP on your VPS to a patched version of PHP 8.2 or newer.<\/p>\n<\/div><p>PHP 8.2 stops getting security fixes on December 31, 2026, so choose PHP 8.3 or newer when possible.<\/p><h2 id=\"h-disable-session-upload-progress-on-your-hostinger-vps-if-you-cant-update-php-yet\">Disable session upload progress on your Hostinger VPS if you can&rsquo;t update PHP yet<\/h2><p>Disable <code>session.upload_progress<\/code> as a temporary measure if you can&rsquo;t update PHP on your Hostinger VPS straight away. This setting blocks only CVE-2026-109619, so update PHP as soon as possible.<\/p><ol>\n<li>Set <code>session.upload_progress.enabled = Off<\/code> in <code>php.ini<\/code> or in your PHP-FPM pool config.<\/li>\n<li>Restart all PHP workers.<\/li>\n<\/ol><p><b>NOTE<\/b><\/p><ul>\n<li>Setting <code>session.upload_progress.enabled<\/code> in your code with <code>ini_set<\/code> doesn&rsquo;t work.<\/li>\n<\/ul><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">This closes one of the two php2shell bugs and fully protects against CVE-2026-115560, announced on October 23. When PHP ships the fix for the latter, update as part of your normal maintenance.<\/div><div><\/div><div><b>NOTE:<\/b><\/div><ul>\n<li>Turn off uploads you don&rsquo;t need and keep upload size limits reasonable. It lowers your risk, but it isn&rsquo;t a substitute for updating<\/li>\n<\/ul><h2 id=\"h-reduce-upload-risk-on-your-hostinger-vps\">Reduce upload risk on your Hostinger VPS<\/h2><p>Turn off file uploads you don&rsquo;t need and keep upload size limits reasonable. These changes lower your php2shell risk, but they don&rsquo;t replace the PHP update. For more ways to protect your server, see <a data-click-id=\"hgr-post-content-link-how-to-secure-your-vps-from-abusive-activity-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/8224050-how-to-secure-your-vps-from-abusive-activity-at-hostinger\/\">How to secure your VPS from abusive activity at Hostinger<\/a>.<\/p><p>Once you install a patched PHP version and restart PHP, your Hostinger VPS is protected from both php2shell vulnerabilities.<\/p><p><strong>Additional resources<\/strong><\/p><ul>\n<li><a data-click-id=\"hgr-post-content-link-hostinger-deploys-protections-against-php2shell-php-vulnerab\" href=\"https:\/\/www.hostinger.com\/blog\/protecting-php2shell\/\">Hostinger deploys protections against php2shell PHP vulnerabilities<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-hostinger-status-page-php2shell-incident\" href=\"https:\/\/statuspage.hostinger.com\/incidents\/pj2zs1lx3n9d\" target=\"_blank\" rel=\"noopener\">Hostinger status page: php2shell incident<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Update PHP on your Hostinger VPS to patch CVE-2026-109618 and CVE-2026-109619<\/p>\n","protected":false},"author":595,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[199],"tags":[],"class_list":["post-21357","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/21357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/595"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=21357"}],"version-history":[{"count":12,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/21357\/revisions"}],"predecessor-version":[{"id":21618,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/21357\/revisions\/21618"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=21357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=21357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=21357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}