v3.2.49.2 & CVE-2026-109618 + CVE-2026-109619

v3.2.49.2 has been released ahead of a formal PHP announcement concerning CVE-2026-109618 + CVE-2026-109619.

This release bundles 2 additional security vulnerabilities reported by kta1kri.

v3.2.49.2 is a FLARE release. All servers will receive this update within the next hour.

Mitigation technique is based upon preliminary rumors concerning the vulnerable vector, session.upload_progress.enabled. PHP versions older than 8.2 are EOL. No further fixes will be available; therefore, upload progress in legacy applications is permanently disabled.

v3.2.49.2 will be re-released later today once more information is available.

CVE-2026-109618 is a RCE via OOM corruption. PoC exploits exist for mod_php. Mitigation techniques involve setting post_max_size above upload_max_filesize. This is a default setting in the platform.

It is feasible to achieve root when mod_php is used; with PHP-FPM, the threat is limited to the pool owner reported under Web > PHP Pools. Unless modified, this user is an unprivileged system user “apache” local to the account.

Source analysis suggests PHP-FPM is vulnerable, although no such exploit exists yet.

Verifying mod_php presence
Use the Scope: cpcmd scope:get php.fpm. If the value is 1, PHP-FPM is used instead of mod_php. Alternatively, query Apache directly: httpd -t -DDUMP_MODULES 2>&1 | grep php. php_module (or a variation of phpX_module) will report present if embedded in Apache. Setting cpcmd scope:set php.fpm 1 will disable it.

CVE-2026-109619 is a RCE via global state corruption. Session upload progress is the most accessible vector to leverage this exploit. Invalid .htaccess values before startup trigger this vulnerability as well.

A similar risk assessment is present in mod_php: root can be gained. For PHP-FPM, because mod_proxy_fcgi is required, and ProxyFCGISetEnvIf cannot be selectively disallowed in .htaccess context, it too carries the same risk assessment. An attacker would require local file access to inject a corrupted PHP_VALUE, e.g. ProxyFCGISetEnvIf "true" PHP_VALUE "auto_detect_line_endings=1".

As with most exploits, some chaining is required for ini corruption.


v3.2.49.2 will be re-released later today once all odds and ends are tightened up. If you’re using PHP-FPM, don’t panic. If mod_php, I would switch over to PHP-FPM ASAP.

Are there any plans for older PHP Versions like 7.4 to 8.1?

Depends if the professional community backports these changes necessary to resolve these defects.

I don’t work for Zend and have limited experience with its internals. I would not feel comfortable cherry-picking changes from PHP 8.x to backport into 7.x and 5.x given the exhaustive modifications necessary to close these vulnerabilities. Patches for 8.1 and 8.0 are likely possible but not guaranteed.

Fixes prescribed so far are temporary measures. Ideally, apps should be compatible with PHP 8.2+ as PHP 8.1 went EOL December 2025. 7.4
 is over 4 years old. That’s an eternity for web-facing applications.

I’ve used Rector in the past to migrate code, including ApisCP, from 7.4 to 8.1.

Is now a good time to ask, if there is a way to upgrade the panel php version?
(one of mine is a 7.4 variant if memory serves.)

Panel runtime is 8.3 effective v3.2.49 released last week. cpcmd misc:cp-version will confirm version info.

PHP team has released patches for 8.1, 8.0, and 7.4. These aren’t part of v3.2.49.2 yet as none of them trigger an official version bump requiring a one-off migration after 8.2+ is addressed. For these EOL versions, mitigation is still preferred.

To force an upgrade on 7.4, 8.0, and 8.1 as a one-off task:

upcp -svbf --var=php_version=8.1 --var=force=True php/install

You’ll see something similar to,

TASK [php/build-from-source : include_tasks] **************************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "multiphp_build | bool", "skip_reason": "Conditional result was False"}

TASK [php/build-from-source : include_tasks] **************************************************************************************************************************************************************************************************************************
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/cve-2026-109619-mitigation.yml for localhost

TASK [php/build-from-source : Apply CVE-2026-109618] ******************************************************************************************************************************************************************************************************************
changed: [localhost] => {"changed": true, "checksum": "910c32166f1153e9f0302dfee40f0468019495bf", "dest": "/etc/php80.d/cve-2026-109618.ini", "gid": 0, "group": "root", "md5sum": "0c608d5fcc695f6d093e2c8de390e4c4", "mode": "0644", "owner": "root", "size": 43, "src": "/root/.ansible/tmp/ansible_mitogen_action_ddb98203e2cdca2b/source", "state": "file", "uid": 0}

I’ve re-released v3.2.49.2 at this time. Updates will proceed as normally scheduled. The migration applied earlier today will run again with additional per-version upgrades for panel runtime, system PHP runtime, and any additional multiPHP runtimes.

Just wanted to comment and say big thanks for being on top of this, Matt!

Was relieved to find the updates already pushed out instead of having to figure out manual patching. You rock! :call_me_hand:

Hi Matt, thanks for the quick turnaround on this. We hit something after the re-release that’s worth checking.

On one EL8 server, v3.2.49.2 (2915d4802) was picked up around 04:10 UTC today. Afterwards:

  • System PHP (/.socket/php/usr/bin/php) and the panel runtime are on 8.3.36, which is correct.
  • The multiPHP native 8.3 build, /.socket/php/multiphp/native/8.3/sbin/php-fpm, is still 8.3.35, built Oct 1. All site pools run this binary: /proc/<pid>/exe -v reports 8.3.35 for every pool.
  • /etc/php83.d/cve-2026-109618.ini was removed at the same time. The 7.4–8.2 files were left in place.

So from that point the 8.3 pools ran unpatched with session.upload_progress.enabled => On. We read that inside a pool’s mount namespace with nsenter -t <pid> -m 
 php-fpm -i.

We put the drop-in back and restarted the pools, and they read Off again. On two sites the new file showed up in the site’s fst/etc/php83.d as a stale overlay entry (-?????????) until we dropped the dentry cache. You may want to check that if the migration writes or removes files there while sites are mounted.

Two questions:

  1. Does the removal key off the system PHP version instead of each multiPHP build’s version?
  2. Will tonight’s scheduled upcp rebuild native 8.3 to 8.3.36? Or should we run upcp -sb php/multiphp (or similar) by hand?

A side effect from the same run: /usr/lib64/20230831 now points at /.socket/php/usr/lib64/20230831, which has no imagick.so. So host-side php and php-fpm-MAIN warn “Unable to load dynamic library ‘imagick.so’”. The 8.3.35 binary also fails to load the new opcache.so there (undefined symbol: zend_handle_delayed_oom) when it runs outside a site namespace. Site pools are unaffected, because their own link still points at the native 8.3 directory.

Thanks,
Bogdan (with Claude)

multiPHP version must not duplicate system PHP version. What’s reported with cpcmd scope:get php.version and cpcmd scope:get php.multi?

# cpcmd scope:get php.version
7.4
# cpcmd scope:get php.multi
'7.4': system
'8.0': native
'8.3': native
'8.2': native
'8.1': native

So the system PHP should be 7.4, but the system slot now holds 8.3:

# /.socket/php/usr/bin/php -v
PHP 8.3.36 (cli) (built: Oct 22 2026 04:23:15) (NTS)
# ls -l /.socket/php/usr/bin/php /.socket/php/usr/sbin/php-fpm
... 2026-10-22T04:28:37 /.socket/php/usr/bin/php
... 2026-10-22T04:28:38 /.socket/php/usr/sbin/php-fpm
# ls -ld /.socket/php/usr/lib64/2*
... 2026-06-01 /.socket/php/usr/lib64/20190902    <- the 7.4 extension dir, still there
... 2026-10-22 /.socket/php/usr/lib64/20230831    <- new, 8.3 API, only opcache.so

In the same run, at 04:29:28, the playbook wrote system_php_version: 7.4 back to /root/apnscp-vars.yml. So the vars still say 7.4, but the build that landed in the system slot was 8.3.36. That now duplicates the native 8.3 entry, which I take to be the state you said must not happen. It probably explains the rest:

  • the php83.d drop-in was removed, because “8.3” counted as patched through the system build;
  • native 8.3 was left at 8.3.35;
  • /usr/lib64/20230831 was re-pointed into the system tree.

For comparison, a second EL8 box with the identical scopes (php.version 7.4, same php.multi) hasn’t run the re-release yet. Its system PHP is still 7.4.33.

What’s the right way to put this server back: rebuild system 7.4 and native 8.3 (8.3.36)? Which upcp invocation would you use?

Thanks,
Bogdan (with Claude)

upcp fails with an error, seeing this on multiple servers.
The folder doesn’t exist on any of them.

TASK [php/build-from-source : Apply CVE-2026-109618] ********************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "checksum": "910c32166f1153e9f0302dfee40f0468019495bf", "msg": "Destination directory /.socket/php/multiphp/native/8.1/etc/php81.d does not exist"}

PLAY RECAP **************************************************************************************************************************************************
localhost                  : ok=1000 changed=66   unreachable=0    failed=1    skipped=539  rescued=0    ignored=0  

/.socket/php/multiphp/native/8.1/etc/ does not contain any folders except php-fpm.d for any version.

Short Feedback from my side:
Update also failed

Results in a lot of horde error Messages.

Run upcp -sb after that.
that run through and seems to fix some stuff.
PHP 8.2, 8.3 and 8.4 were rebuilt successfully,

btw
 first services are currently under attack
quit busy times currently :wink:

From the dashboard:

  • OOMs
  • 3636949
    Uptime of Server under 24h

Run upcp again, let me know if that sorts things out. If not, provide an updated readout from both cpcmd commands.

Spent today running through rebuilds as well. Roles aren’t as independent as I would have liked for them to be. Give upcp a go now.

Run upcp. System PHP version is getting squashed by last ran multiPHP in previous release.

Thanks Matt. Follow-up from our side, all sorted now, posting in case it helps others:

Server 1 (EL8): last night’s scheduled upcp (f1ddc1c10) fixed it. System 7.4.33, native 8.2/8.3.36, all pools on 8.3.36.

Server 2 (EL8): we moved system PHP from 7.4 to 8.4, which solved it. After the same run the system slot still held 8.3.36, while php.version said 7.4. 7.4 itself had been built under multiphp/native/7.4. 7.4 is EOL anyway, so instead of rebuilding it we ran cpcmd scope:set php.version 8.4. 8.4.27 built cleanly into the system slot, and php.multi now shows '8.4': system. We’ll do the same on server 1. Sites and Roundcube are fine. Horde was removed with it, as expected for system ≄ 8.0, and we don’t use it.

Server 3 (EL9, system 8.4, natives 8.1–8.3): everything is patched. Its upcp fails every night, though, because the eol-php-update migration tries to build 8.0.30, which can’t compile against OpenSSL 3 ('RSA_SSLV23_PADDING' undeclared). The play stops there, so the pools stayed on the deleted binaries until we restarted them by hand. On EL9 it’ll keep failing until 8.0 is skipped there.

For anyone else checking their own servers: php -v reports the system build, not the version your site pools run. To see what a pool actually runs:

ls -l /proc/<pool-master-pid>/exe        # "(deleted)" = still on the old build, restart the pool
/proc/<pool-master-pid>/exe -v           # the version the pool runs
nsenter -t <pid> -m /proc/<pid>/exe -i | grep upload_progress   # effective ini inside the site namespace

If upcp fails partway, the pools keep the deleted binary until they are restarted.

Thanks.
Bogdan (with Claude)

Looks to be a relatively simple fix. FIX nothing below PHP 8.1 installs in Ubuntu 22.04 (`RSA_SSLV23_PADDING` undeclared in OpenSSL 3.0.0) · Issue #718 · php-build/php-build · GitHub

I’ll work on getting an update out later today that permits slipstream patches into roles/php/build-php/files/.

Mitigation still applies until it’s recompiled. Per a risk evaluation basis, as long as you’re not using mod_php as discussed above you’re “reasonably safe”.

If an attacker has local file access, yes they could do whatever a user with ssh service enabled could do on an account.

1 Like

I’ve added support for building PHP 8.0 against EL9/EL10 as well as slipping custom patches into the build process. .2 has been resigned. upcp migrations will complete as expected when rebuilding 8.0.

Support for custom patches has been added as well. Drop a patch in /usr/local/apnscp/resources/playbooks/php/build-from-source/files/ named as

NNNN-PHP-X.Y.Z-IDENTIFIER.patch or NNNN-PHP-X.Y-IDENTIFIER.patch

Where X.Y.Z is PHP major, minor, patch, e.g.

9999-PHP-8.3.4-hardcode-sendmail.patch

1 Like

Ansible PHP Patch Candidate failure on Rocky 8.10

TASK [php/build-from-source : Enumerate all patches] ********************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "Unexpected templating type error occurred on ({{ php_patch_candidates | selectattr('when', 'defined') | selectattr('when') | list | map(attribute='name') + php_patch_candidates | rejectattr('when', 'defined') | list | map(attribute='name') + (query('fileglob', __php_patch_dir ~ '/[0-9]*-PHP-' ~ __php_minor ~ '-*') + query('fileglob', __php_patch_dir ~ '/[0-9]*-PHP-' ~ version ~ '-*')) | map('basename') | list }}): unsupported operand type(s) for +: 'generator' and 'generator'"}

lgtm. I cannot reproduce with the scant information as provided. What version, what’s the rest of the command?

Here’s my reference to provide further guidance.

# upcp -svb --var=force=true --var=php_version=8.1 php/install
Using /usr/local/apnscp/resources/playbooks/ansible.cfg as config file

PLAY [localhost] ******************************************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [common/acquire-lock : Validate lock existence] ******************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "stat": {"atime": 1793123378.0506048, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "73e309f8024b4b16dfb6524ccbba006aba58ffab", "ctime": 1793123378.0506048, "dev": 2051, "device_type": 0, "executable": false, "exists": true, "gid": 985, "gr_name": "apnscp", "inode": 68878293, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1793123377.9776034, "nlink": 1, "path": "/usr/local/apnscp/storage/run/.ansible.lock", "pw_name": "apnscp", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 7, "uid": 989, "version": "1601860521", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}}

TASK [common/acquire-lock : Acquire lock] *****************************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "not st.stat.exists", "skip_reason": "Conditional result was False"}

TASK [common/acquire-lock : set_fact] *********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"lock_pid_filename": "/proc/3622945/comm"}, "changed": false}

TASK [common/acquire-lock : Check if PID /proc/3622945/comm present] **************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "stat": {"exists": false}}

TASK [common/acquire-lock : Verify process matches ansible] ***********************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "st.stat.exists and -1 != lookup('file', lock_pid_filename).find(\"ansible\")\n", "skip_reason": "Conditional result was False"}

TASK [common/acquire-lock : Save PID in /usr/local/apnscp/storage/run/.ansible.lock] **********************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "checksum": "9c3e43efea066d2fe6b4d3367cf8521073703c96", "dest": "/usr/local/apnscp/storage/run/.ansible.lock", "gid": 985, "group": "apnscp", "md5sum": "1bda303ee565920e67966ca1a56d8216", "mode": "0644", "owner": "apnscp", "size": 7, "src": "/root/.ansible/tmp/ansible_mitogen_action_87ef27407da03570/source", "state": "file", "uid": 989}

TASK [check-requirements : Force admin lowercase] *********************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "(apnscp_admin_user | lower) != apnscp_admin_user", "skip_reason": "Conditional result was False"}

TASK [check-requirements : Check /home/virtual is writable] ***********************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0711", "owner": "root", "path": "/home/virtual", "size": 4096, "state": "directory", "uid": 0}

TASK [check-requirements : file] **************************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/usr/share/zoneinfo/UTC", "size": 127, "state": "hard", "uid": 0}

TASK [check-requirements : Assert yum hook valid] *********************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "yum_transaction_hook is defined and yum_transaction_hook != \"\"", "skip_reason": "Conditional result was False"}

TASK [php/install : Check for LoadModule presence in /etc/httpd/conf/httpd.conf] **************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "cmd": ["grep", "-Eqs", "^\\s*LoadModule\\s+php[[:digit:]]?_", "/etc/httpd/conf/httpd.conf"], "delta": "0:00:00.003054", "end": "2026-10-27 17:50:06.495314", "failed_when_result": false, "msg": "non-zero return code", "rc": 1, "start": "2026-10-27 17:50:06.492260", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [php/install : set_fact] *****************************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"__php_force_build": false}, "changed": false}

TASK [php/install : Remove PHP ISAPI] *********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"backup": "", "changed": false, "found": 0, "msg": ""}

TASK [php/build-from-source : Download PHP release feed] **************************************************************************************************************************************************************************************************************
ok: [localhost] => {"attempts": 1, "cache_control": "public, max-age=2592000", "cdn_cache": "HIT", "cdn_cachedat": "10/27/2026 11:23:51", "cdn_edgestorageid": "1327, 1430", "cdn_proxyver": "1.71", "cdn_pullzone": "5992589", "cdn_requestcountrycode": "US", "cdn_requestid": "1e838ef04eb6791e5a22507c65fb680f", "cdn_requestpullcode": "200", "cdn_requestpullsuccess": "True", "cdn_requesttime": "0", "cdn_status": "200", "changed": false, "connection": "close", "content": "{\"announcement\":{\"English\":\"\\/releases\\/8_1_34.php\"},\"tags\":[\"security\"],\"date\":\"18 Dec 2025\",\"source\":[{\"filename\":\"php-8.1.34.tar.gz\",\"name\":\"PHP 8.1.34 (tar.gz)\",\"sha256\":\"3c5b060ec8e0d5dd1d8237823f3161cc8bc5342aab3c46893eba9857759c4bfa\",\"date\":\"18 Dec 2025\"},{\"filename\":\"php-8.1.34.tar.bz2\",\"name\":\"PHP 8.1.34 (tar.bz2)\",\"sha256\":\"98e0a08a0fae37d08dfcca2f5ff6664863097dde4b1d360af2acc8c3542f2a0f\",\"date\":\"18 Dec 2025\"},{\"filename\":\"php-8.1.34.tar.xz\",\"name\":\"PHP 8.1.34 (tar.xz)\",\"sha256\":\"ffa9e0982e82eeaea848f57687b425ed173aa278fe563001310ae2638db5c251\",\"date\":\"18 Dec 2025\"}],\"museum\":false,\"supported_versions\":[\"8.2\",\"8.3\",\"8.4\",\"8.5\"],\"version\":\"8.1.34\"}", "content_language": "en", "content_type": "application/json", "cookies": {}, "cookies_string": "", "date": "Tue, 27 Oct 2026 17:50:07 GMT", "elapsed": 0, "json": {"announcement": {"English": "/releases/8_1_34.php"}, "date": "18 Dec 2025", "museum": false, "source": [{"date": "18 Dec 2025", "filename": "php-8.1.34.tar.gz", "name": "PHP 8.1.34 (tar.gz)", "sha256": "3c5b060ec8e0d5dd1d8237823f3161cc8bc5342aab3c46893eba9857759c4bfa"}, {"date": "18 Dec 2025", "filename": "php-8.1.34.tar.bz2", "name": "PHP 8.1.34 (tar.bz2)", "sha256": "98e0a08a0fae37d08dfcca2f5ff6664863097dde4b1d360af2acc8c3542f2a0f"}, {"date": "18 Dec 2025", "filename": "php-8.1.34.tar.xz", "name": "PHP 8.1.34 (tar.xz)", "sha256": "ffa9e0982e82eeaea848f57687b425ed173aa278fe563001310ae2638db5c251"}], "supported_versions": ["8.2", "8.3", "8.4", "8.5"], "tags": ["security"], "version": "8.1.34"}, "msg": "OK (unknown bytes)", "permissions_policy": "interest-cohort=()", "redirected": false, "server": "BunnyCDN-PB1-1430", "status": 200, "strict_transport_security": "max-age=15768000", "transfer_encoding": "chunked", "url": "https://www.php.net/releases/index.php?json&version=8.1", "vary": "Accept-Encoding", "x_frame_options": "SAMEORIGIN"}

TASK [php/build-from-source : set_fact] *******************************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "feed is not defined", "skip_reason": "Conditional result was False"}

TASK [php/build-from-source : set_fact] *******************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"__php_version": "8.1.34"}, "changed": false}

TASK [php/build-from-source : set_fact] *******************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"php_version_dict": {"full": "8.1.34", "major": "8", "minor": "8.1."}}, "changed": false}

TASK [include_role : php/build-from-source] ***************************************************************************************************************************************************************************************************************************

TASK [php/build-from-source : stat] ***********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "stat": {"atime": 1793072368.8108816, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 137864, "charset": "binary", "checksum": "19407cf93104333f78c207de3b9596ec00e95e5b", "ctime": 1792725542.006535, "dev": 2051, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 42525629, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0755", "mtime": 1792689547.9447038, "nlink": 1, "path": "/usr/bin/php", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 70584640, "uid": 0, "version": null, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}

TASK [php/build-from-source : command] ********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "cmd": ["/usr/bin/php", "-nr", "print(PHP_VERSION);"], "delta": "0:00:00.052681", "end": "2026-10-27 17:50:07.920431", "msg": "", "rc": 0, "start": "2026-10-27 17:50:07.867750", "stderr": "", "stderr_lines": [], "stdout": "8.1.34", "stdout_lines": ["8.1.34"]}

TASK [php/build-from-source : set_fact] *******************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"do_install_php": true}, "changed": false}

TASK [php/build-from-source : Validate multiPHP build is not system build] ********************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "multiphp_build | bool", "skip_reason": "Conditional result was False"}

TASK [php/build-from-source : Verify work directory exists] ***********************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/var/cache/httpd", "size": 132, "state": "directory", "uid": 0}

TASK [php/build-from-source : Cleanup older PHPs] *********************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "examined": 7, "files": [{"atime": 1792012910.1166592, "ctime": 1736178227.166585, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 67271848, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1736178227.166585, "nlink": 17, "path": "/var/cache/httpd/php-5.6.40", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, {"atime": 1792012910.5016656, "ctime": 1740000152.6632674, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 167837027, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0775", "mtime": 1740000152.6632674, "nlink": 19, "path": "/var/cache/httpd/php-7.4.33", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": true, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, {"atime": 1792012911.3066788, "ctime": 1744133440.412262, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 33999971, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1744133440.412262, "nlink": 20, "path": "/var/cache/httpd/php-8.2.28", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, {"atime": 1793019452.0667484, "ctime": 1793019451.8227441, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 71867447, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1793019451.8227441, "nlink": 18, "path": "/var/cache/httpd/php-8.0.30", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, {"atime": 1792679753.374269, "ctime": 1792679753.1042643, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 33563837, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1792679753.1042643, "nlink": 19, "path": "/var/cache/httpd/php-8.4.27", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}], "matched": 5, "msg": "All paths examined", "skipped_paths": {}}

TASK [php/build-from-source : Remove older PHPs] **********************************************************************************************************************************************************************************************************************
skipping: [localhost] => (item=Removing php-5.6.40)  => {"ansible_loop_var": "item", "changed": false, "false_condition": "remove_all_versions | bool or -1 != item.path.find('php-%s.' % lookup('vars', '__php_version') | regex_replace('^(\\\\d+\\.\\\\d+)\\\\..*$', '\\\\1'))", "item": {"atime": 1792012910.1166592, "ctime": 1736178227.166585, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 67271848, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1736178227.166585, "nlink": 17, "path": "/var/cache/httpd/php-5.6.40", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=Removing php-7.4.33)  => {"ansible_loop_var": "item", "changed": false, "false_condition": "remove_all_versions | bool or -1 != item.path.find('php-%s.' % lookup('vars', '__php_version') | regex_replace('^(\\\\d+\\.\\\\d+)\\\\..*$', '\\\\1'))", "item": {"atime": 1792012910.5016656, "ctime": 1740000152.6632674, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 167837027, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0775", "mtime": 1740000152.6632674, "nlink": 19, "path": "/var/cache/httpd/php-7.4.33", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": true, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=Removing php-8.2.28)  => {"ansible_loop_var": "item", "changed": false, "false_condition": "remove_all_versions | bool or -1 != item.path.find('php-%s.' % lookup('vars', '__php_version') | regex_replace('^(\\\\d+\\.\\\\d+)\\\\..*$', '\\\\1'))", "item": {"atime": 1792012911.3066788, "ctime": 1744133440.412262, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 33999971, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1744133440.412262, "nlink": 20, "path": "/var/cache/httpd/php-8.2.28", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=Removing php-8.0.30)  => {"ansible_loop_var": "item", "changed": false, "false_condition": "remove_all_versions | bool or -1 != item.path.find('php-%s.' % lookup('vars', '__php_version') | regex_replace('^(\\\\d+\\.\\\\d+)\\\\..*$', '\\\\1'))", "item": {"atime": 1793019452.0667484, "ctime": 1793019451.8227441, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 71867447, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1793019451.8227441, "nlink": 18, "path": "/var/cache/httpd/php-8.0.30", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=Removing php-8.4.27)  => {"ansible_loop_var": "item", "changed": false, "false_condition": "remove_all_versions | bool or -1 != item.path.find('php-%s.' % lookup('vars', '__php_version') | regex_replace('^(\\\\d+\\.\\\\d+)\\\\..*$', '\\\\1'))", "item": {"atime": 1792679753.374269, "ctime": 1792679753.1042643, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 33563837, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1792679753.1042643, "nlink": 19, "path": "/var/cache/httpd/php-8.4.27", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => {"changed": false, "msg": "All items skipped"}

TASK [php/build-from-source : Remove PHP configuration directory] *****************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "remove_only | bool and multiphp_build", "skip_reason": "Conditional result was False"}

TASK [php/build-from-source : Include apxs] ***************************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "php_has_isapi", "skip_reason": "Conditional result was False"}

TASK [php/build-from-source : Reduce max concurrent jobs] *************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "ansible_memory_mb.nocache.free < 128 or ansible_memory_mb.nocache.free < 512*(compile_max_jobs | int) and __php_version is version('8.0', '>=')", "skip_reason": "Conditional result was False"}

TASK [Attach temporary swap] ******************************************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "(ansible_memory_mb.nocache.free < 128 or ansible_memory_mb.nocache.free < 1500) and __php_version is version('8.0', '>=')", "skip_reason": "Conditional result was False"}

TASK [php/build-from-source : Flag swap handler] **********************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "(ansible_memory_mb.nocache.free < 128 or ansible_memory_mb.nocache.free < 1500) and __php_version is version('8.0', '>=')", "skip_reason": "Conditional result was False"}

TASK [php/build-from-source : set_fact] *******************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"force_module_rebuild": true}, "changed": false}

TASK [php/build-from-source : include_tasks] **************************************************************************************************************************************************************************************************************************
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/build-php.yml for localhost

TASK [php/build-from-source : stat] ***********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "stat": {"atime": 1792688999.8522334, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "binary", "ctime": 1792688999.609229, "dev": 2051, "device_type": 0, "executable": true, "exists": true, "gid": 65534, "gr_name": "nobody", "inode": 134542250, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/directory", "mode": "0755", "mtime": 1792688999.609229, "nlink": 19, "path": "/var/cache/httpd/php-8.1.34", "pw_name": "nobody", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "version": "1390740718", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}

TASK [php/build-from-source : Download PHP 8.1.34] ********************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "not st.stat.exists or remove_all_versions", "skip_reason": "Conditional result was False"}

TASK [php/build-from-source : Apply per-version patches] **************************************************************************************************************************************************************************************************************
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/apply-patches.yml for localhost

TASK [php/build-from-source : Enumerate all patches] ******************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"php_patch_candidates": ["0001-PHP-8.1-CVE-2026-109618-109619-RCE.patch", "0001-PHP-8.1-CVE-2026-109618-109619-RCE.patch"]}, "changed": false}

TASK [php/build-from-source : Apply PHP 8.1.34 patches] ***************************************************************************************************************************************************************************************************************
ok: [localhost] => (item=Apply 0001-PHP-8.1-CVE-2026-109618-109619-RCE.patch) => {"ansible_loop_var": "patch", "changed": false, "patch": "0001-PHP-8.1-CVE-2026-109618-109619-RCE.patch"}

TASK [php/build-from-source : Configure PHP 8.1.34] *******************************************************************************************************************************************************************************************************************
]# cpcmd misc_cp_version
revision: 08fe951ca623e5bb954676d62fc970f5555e3fdf
timestamp: 1793019823
ver_maj: 3
ver_min: 2
ver_patch: 49
ver_pre: ''
dirty: false
checksum: 13528a3b06f94ed
debug: false

]# upcp -sbf

PLAY [localhost] ********************************************************************************************************************************************
included: /usr/local/apnscp/resources/playbooks/roles/common/update-config/tasks/setup-resolved.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/write-config.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/filesystem/make-mounts/tasks/enable-quotas.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/filesystem/make-mounts/tasks/set-mount-features.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/write-config.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/packages/install/tasks/configure-default-vars.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/packages/install/tasks/centos8-dnf.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/packages/install/tasks/disable-appstream.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/packages/install/tasks/disable-appstream.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/packages/install/tasks/disable-appstream.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/packages/install/tasks/disable-appstream.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/packages/install/tasks/disable-appstream.yml for localhost

TASK [packages/install : Update all packages] ***************************************************************************************************************
changed: [localhost]
included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/implicitly-import-overrides.yml for localhost

TASK [pgsql/install : Install psycopg module] ***************************************************************************************************************
changed: [localhost]
included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/write-config.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/write-config.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/pgsql/install/tasks/timescaledb.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/pgsql/install/tasks/manage-library.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/pgsql/install/tasks/manage-library.yml for localhost

TASK [common : Create temporary file] ***********************************************************************************************************************
changed: [localhost]

TASK [common : Generate private key] ************************************************************************************************************************
changed: [localhost]

TASK [common : Create temporary file] ***********************************************************************************************************************
changed: [localhost]

TASK [common : Generate CSR] ********************************************************************************************************************************
changed: [localhost]

TASK [common : Generate SSL certificate] ********************************************************************************************************************
changed: [localhost]

TASK [common : Merge key + certificate] *********************************************************************************************************************
changed: [localhost]
included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/implicitly-import-overrides.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/pgsql/install/tasks/manage-library.yml for localhost

TASK [common : Create temporary file] ***********************************************************************************************************************
changed: [localhost]

TASK [common : Generate private key] ************************************************************************************************************************
changed: [localhost]

TASK [common : Create temporary file] ***********************************************************************************************************************
changed: [localhost]

TASK [common : Generate CSR] ********************************************************************************************************************************
changed: [localhost]

TASK [common : Generate SSL certificate] ********************************************************************************************************************
changed: [localhost]

TASK [common : Merge key + certificate] *********************************************************************************************************************
changed: [localhost]
included: /usr/local/apnscp/resources/playbooks/roles/mysql/install/tasks/set-systemd-defaults.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/write-config.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/mysql/install/tasks/enable-root-user.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/common/tasks/implicitly-import-overrides.yml for localhost

RUNNING HANDLER [common : Restart postgresql] ***************************************************************************************************************
changed: [localhost]

RUNNING HANDLER [common : Restart mariadb] ******************************************************************************************************************
changed: [localhost]
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/build-php.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/apply-patches.yml for localhost

TASK [php/build-from-source : Enumerate all patches] ********************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "Unexpected templating type error occurred on ({{ php_patch_candidates | selectattr('when', 'defined') | selectattr('when') | list | map(attribute='name') + php_patch_candidates | rejectattr('when', 'defined') | list | map(attribute='name') + (query('fileglob', __php_patch_dir ~ '/[0-9]*-PHP-' ~ __php_minor ~ '-*') + query('fileglob', __php_patch_dir ~ '/[0-9]*-PHP-' ~ version ~ '-*')) | map('basename') | list }}): unsupported operand type(s) for +: 'generator' and 'generator'"}

PLAY RECAP **************************************************************************************************************************************************
localhost                  : ok=262  changed=16   unreachable=0    failed=1    skipped=149  rescued=0    ignored=0   

Re-run with -v so I see the context of the failure as it progresses through each and every role. Last 30 or lines should be adequate.