<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>Josh Bowen&#x27;s Weblog - security</title>
    <link rel="self" type="application/atom+xml" href="https://joshbowen.net/tags/security/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://joshbowen.net"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-10-21T00:00:00+00:00</updated>
    <id>https://joshbowen.net/tags/security/atom.xml</id>
    <entry xml:lang="en">
        <title>Patching PHP 7.4 for php2shell in a container</title>
        <published>2026-10-21T00:00:00+00:00</published>
        <updated>2026-10-21T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Josh Bowen
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://joshbowen.net/posts/patching-php-74-for-php2shell/"/>
        <id>https://joshbowen.net/posts/patching-php-74-for-php2shell/</id>
        
        <content type="html" xml:base="https://joshbowen.net/posts/patching-php-74-for-php2shell/">&lt;p&gt;It turns out that my &lt;a href=&quot;https:&#x2F;&#x2F;joshbowen.net&#x2F;posts&#x2F;the-pocket-guide-to-building-php-74-extensions-in-docker-containers-and-also-oci8&#x2F;&quot;&gt;legacy PHP 7.4 applications on life support&lt;&#x2F;a&gt; are still alive, kicking, and now even more vulnerable than before.&lt;&#x2F;p&gt;
&lt;p&gt;Earlier this morning, the PHP project put out a &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;www.php.net&#x2F;archive&#x2F;2026.php#2026-10-21-5&quot;&gt;security advisory&lt;&#x2F;a&gt; for two critical remote code execution bugs:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;CVE-2026-109618&lt;&#x2F;strong&gt;, RCE via out-of-memory corruption (&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;security&#x2F;advisories&#x2F;GHSA-w8hw-w9fx-j79w&quot;&gt;GHSA-w8hw-w9fx-j79w&lt;&#x2F;a&gt;)&lt;&#x2F;li&gt;
&lt;li&gt;&lt;strong&gt;CVE-2026-109619&lt;&#x2F;strong&gt;, RCE via stale global state (&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;security&#x2F;advisories&#x2F;GHSA-6wmf-4rv5-p3rp&quot;&gt;GHSA-6wmf-4rv5-p3rp&lt;&#x2F;a&gt;)&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;People are calling this &lt;strong&gt;php2shell&lt;&#x2F;strong&gt; and it seems to have leaked earlier than the intended disclosure. In short, anything serving web requests is exposed no matter how you run your PHP code, with a demonstrated exploit for Apache + mod_php.&lt;&#x2F;p&gt;
&lt;p&gt;PHP 7.4 went end of life in November 2022, and the official &lt;code&gt;php:7.4&lt;&#x2F;code&gt; Docker images stopped there: 7.4.33 on Debian 11 (bullseye). I am grateful that the PHP security team published minimal source backports for &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;tree&#x2F;PHP-7.4-CVE-2026-109618-109619&quot;&gt;7.4&lt;&#x2F;a&gt;, &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;tree&#x2F;PHP-8.0-CVE-2026-109618-109619&quot;&gt;8.0&lt;&#x2F;a&gt; and &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;tree&#x2F;PHP-8.1-CVE-2026-109618-109619&quot;&gt;8.1&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;For my old apps, the smallest change to address these vulnerabilities is to keep the official image and rebuild PHP inside it with the PHP team&#x27;s &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;commit&#x2F;712e60f9edfd03f0960fc4fc3c2c375f42b90aa2&quot;&gt;fix commit&lt;&#x2F;a&gt;. The Containerfile below takes any of the &lt;code&gt;php:7.4&lt;&#x2F;code&gt; images (cli, fpm or apache) and:&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Points apt at &lt;code&gt;archive.debian.org&lt;&#x2F;code&gt;.&lt;&#x2F;li&gt;
&lt;li&gt;Fetches the fix commit from php-src.&lt;&#x2F;li&gt;
&lt;li&gt;Rebuilds PHP from the image&#x27;s own 7.4.33 source, using the image&#x27;s original configure flags (&lt;code&gt;php-config --configure-options&lt;&#x2F;code&gt;).&lt;&#x2F;li&gt;
&lt;li&gt;Copies the new binaries and the patched source back over the original image.&lt;&#x2F;li&gt;
&lt;li&gt;Pulls in the last security updates Debian 11 got. The official images stopped at 11.5.&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Step 4 ships the patched source because &lt;code&gt;docker-php-ext-install&lt;&#x2F;code&gt; builds extensions from it.&lt;&#x2F;p&gt;
&lt;p&gt;Also, because Debian 11&#x27;s security support has ended, its security packages on &lt;code&gt;deb.debian.org&lt;&#x2F;code&gt; now return 404. Anything still built on the official &lt;code&gt;php:7.4&lt;&#x2F;code&gt; image needs to use &lt;code&gt;archive.debian.org&lt;&#x2F;code&gt; before it can &lt;code&gt;apt-get install&lt;&#x2F;code&gt; anything.&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #657B83; background-color: #FDF6E3;&quot;&gt;&lt;code data-lang=&quot;docker&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #93A1A1;font-style: italic;&quot;&gt;# Change or override this for another flavor&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #859900;&quot;&gt;ARG&lt;&#x2F;span&gt;&lt;span&gt; PHP_IMAGE=php:7.4-cli &lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #859900;&quot;&gt;FROM&lt;&#x2F;span&gt;&lt;span&gt; ${PHP_IMAGE} &lt;&#x2F;span&gt;&lt;span style=&quot;color: #859900;&quot;&gt;AS&lt;&#x2F;span&gt;&lt;span&gt; build&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #93A1A1;font-style: italic;&quot;&gt;# &amp;quot;Avoid state corruption via bailout&amp;quot; on php-src&amp;#39;s PHP-7.4-CVE-2026-109618-109619&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #859900;&quot;&gt;ARG&lt;&#x2F;span&gt;&lt;span&gt; PHP_FIX_COMMIT=712e60f9edfd03f0960fc4fc3c2c375f42b90aa2&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #859900;&quot;&gt;RUN&lt;&#x2F;span&gt;&lt;span&gt; set -eux; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	{ \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		echo &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;#39;deb http:&#x2F;&#x2F;archive.debian.org&#x2F;debian bullseye main&amp;#39;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		echo &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;#39;deb http:&#x2F;&#x2F;archive.debian.org&#x2F;debian bullseye-updates main&amp;#39;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		echo &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;#39;deb http:&#x2F;&#x2F;archive.debian.org&#x2F;debian-security bullseye-security main&amp;#39;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	} &amp;gt; &#x2F;etc&#x2F;apt&#x2F;sources.list; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	apt-get update; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	apt-get install -y --no-install-recommends \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		$PHPIZE_DEPS git patch \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	case &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;quot;$(php-config --configure-options)&amp;quot;&lt;&#x2F;span&gt;&lt;span&gt; in \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		*--with-apxs2*) apt-get install -y --no-install-recommends apache2-dev ;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	esac&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #859900;&quot;&gt;RUN&lt;&#x2F;span&gt;&lt;span&gt; set -eux; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	git init -q &#x2F;usr&#x2F;src&#x2F;php-fix; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	cd &#x2F;usr&#x2F;src&#x2F;php-fix; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	git remote add origin https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src.git; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	git fetch -q --depth 2 --filter=blob:none origin &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;quot;$PHP_FIX_COMMIT&amp;quot;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	git diff &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;quot;$PHP_FIX_COMMIT^&amp;quot; &amp;quot;$PHP_FIX_COMMIT&amp;quot;&lt;&#x2F;span&gt;&lt;span&gt; &amp;gt; &#x2F;usr&#x2F;src&#x2F;php-fix.patch&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #859900;&quot;&gt;RUN&lt;&#x2F;span&gt;&lt;span&gt; set -eux; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	export CFLAGS=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;quot;$PHP_CFLAGS&amp;quot;&lt;&#x2F;span&gt;&lt;span&gt; CPPFLAGS=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;quot;$PHP_CPPFLAGS&amp;quot;&lt;&#x2F;span&gt;&lt;span&gt; LDFLAGS=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;quot;$PHP_LDFLAGS&amp;quot;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	configureOptions=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;quot;$(php-config --configure-options)&amp;quot;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	docker-php-source extract; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	cd &#x2F;usr&#x2F;src&#x2F;php; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	patch -p1 --forward --no-backup-if-mismatch &amp;lt; &#x2F;usr&#x2F;src&#x2F;php-fix.patch; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	\&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #93A1A1;font-style: italic;&quot;&gt;# Ship the patched source too, so docker-php-ext-install builds against it.&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	mkdir -p &#x2F;out&#x2F;usr&#x2F;src; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	tar -cJf &#x2F;out&#x2F;usr&#x2F;src&#x2F;php.tar.xz -C &#x2F;usr&#x2F;src --exclude=.docker-delete-me \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		--transform &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;#39;s,^php,php-7.4.33,&amp;#39;&lt;&#x2F;span&gt;&lt;span&gt; php; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	\&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	debMultiarch=&lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;quot;$(dpkg-architecture --query DEB_BUILD_MULTIARCH)&amp;quot;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	[ -e &#x2F;usr&#x2F;include&#x2F;curl ] || [ -e &#x2F;usr&#x2F;local&#x2F;include&#x2F;curl ] \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		|| ln -sT &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;quot;&#x2F;usr&#x2F;include&#x2F;$debMultiarch&#x2F;curl&amp;quot;&lt;&#x2F;span&gt;&lt;span&gt; &#x2F;usr&#x2F;local&#x2F;include&#x2F;curl; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	.&#x2F;configure $configureOptions; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	make -j &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;quot;$(nproc)&amp;quot;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #93A1A1;font-style: italic;&quot;&gt;# apxs (apache variant) wants a config dir; the image&amp;#39;s own config is kept.&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	mkdir -p &#x2F;out&#x2F;etc&#x2F;apache2&#x2F;mods-available; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	make INSTALL_ROOT=&#x2F;out install-sapi install-binaries install-build \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		install-headers install-programs install-modules; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	rm -rf &#x2F;out&#x2F;etc; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	find &#x2F;out -type f -perm &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;#39;&#x2F;0111&amp;#39;&lt;&#x2F;span&gt;&lt;span&gt; -exec strip --strip-all &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;#39;{}&amp;#39;&lt;&#x2F;span&gt;&lt;span&gt; + || :&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #859900;&quot;&gt;FROM&lt;&#x2F;span&gt;&lt;span&gt; ${PHP_IMAGE}&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #859900;&quot;&gt;RUN&lt;&#x2F;span&gt;&lt;span&gt; set -eux; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	{ \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		echo &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;#39;deb http:&#x2F;&#x2F;archive.debian.org&#x2F;debian bullseye main&amp;#39;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		echo &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;#39;deb http:&#x2F;&#x2F;archive.debian.org&#x2F;debian bullseye-updates main&amp;#39;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;		echo &lt;&#x2F;span&gt;&lt;span style=&quot;color: #2AA198;&quot;&gt;&amp;#39;deb http:&#x2F;&#x2F;archive.debian.org&#x2F;debian-security bullseye-security main&amp;#39;&lt;&#x2F;span&gt;&lt;span&gt;; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	} &amp;gt; &#x2F;etc&#x2F;apt&#x2F;sources.list; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	apt-get update; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	apt-get upgrade -y; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	rm -rf &#x2F;var&#x2F;lib&#x2F;apt&#x2F;lists&#x2F;*&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #859900;&quot;&gt;COPY&lt;&#x2F;span&gt;&lt;span&gt; --from=build &#x2F;out&#x2F; &#x2F;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #859900;&quot;&gt;RUN&lt;&#x2F;span&gt;&lt;span&gt; set -eux; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	rm -f &#x2F;usr&#x2F;src&#x2F;php.tar.xz.asc; \&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	php --version&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This also changes one thing about how apps behave. &lt;strong&gt;Session upload progress is now always off&lt;&#x2F;strong&gt;, no matter what &lt;code&gt;session.upload_progress.enabled&lt;&#x2F;code&gt; says. That&#x27;s part of the PHP team&#x27;s mitigation. Uploads work fine, but if you poll &lt;code&gt;$_SESSION&lt;&#x2F;code&gt; for a progress bar, you&#x27;ll get nothing.&lt;&#x2F;p&gt;
&lt;p&gt;This only fixes the current CVEs on a base that no longer gets security updates. For modern systems, I recommend checking out &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;deb.sury.org&#x2F;&quot;&gt;Ondřej Surý&#x27;s packages&lt;&#x2F;a&gt;. Sury has been backporting security fixes to 7.4 long after end of life. His &lt;code&gt;php7.4 7.4.33-31&lt;&#x2F;code&gt; package went out today with the php2shell fix, on top of years of other backports.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;sources&quot;&gt;Sources&lt;a href=&quot;#sources&quot; aria-label=&quot;Link to section: Sources&quot; title=&quot;Permalink to this section&quot;&gt;#&lt;&#x2F;a&gt;&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;www.php.net&#x2F;archive&#x2F;2026.php#2026-10-21-5&quot;&gt;PHP security advisory, 2026-10-21&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;security&#x2F;advisories&#x2F;GHSA-w8hw-w9fx-j79w&quot;&gt;GHSA-w8hw-w9fx-j79w&lt;&#x2F;a&gt; (CVE-2026-109618) and &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;security&#x2F;advisories&#x2F;GHSA-6wmf-4rv5-p3rp&quot;&gt;GHSA-6wmf-4rv5-p3rp&lt;&#x2F;a&gt; (CVE-2026-109619)&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;tree&#x2F;PHP-7.4-CVE-2026-109618-109619&quot;&gt;php-src PHP 7.4 backport branch&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;packages.sury.org&#x2F;php&#x2F;README.txt&quot;&gt;Sury&#x27;s PHP repository README&lt;&#x2F;a&gt; and &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;codeberg.org&#x2F;oerdnj&#x2F;deb.sury.org&#x2F;issues&#x2F;145&quot;&gt;release-day notes&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;www.tenable.com&#x2F;blog&#x2F;php2shell-cve-2026-109618-cve-2026-109619-frequently-asked-questions-about-critical-php-remote&quot;&gt;Tenable: php2shell FAQ&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;www.huntress.com&#x2F;blog&#x2F;php2shell-leaked-critical-php-vulnerabilities&quot;&gt;Huntress: php2shell&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
        
    </entry>
</feed>
