Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,110 of 9,110 pages
About the help in other languages
All help pages

Specification: the 6.0.13 security and stability hardening

This page is the map of the hardening pass that the 6.0.13 line received on 21 February 2026: seven security findings, a larger set of null and undefined-value guards that PHP 8 would turn into fatal errors, PHP 8.4…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/specifications/6.0/security-hardening-6.0.13.md

On this page

Specification: the 6.0.13 security and stability hardening

This page is the map of the hardening pass that the 6.0.13 line received on 21 February 2026: seven security findings, a larger set of null and undefined-value guards that PHP 8 would turn into fatal errors, PHP 8.4 deprecation fixes, and a test suite that proves them. Read it if you run 6.0.12 or older, or if you maintain extensions that use the same code patterns. The full findings, diffs, test results and CVSS scores are in Security hardening release notes; the test tool-chain is explained in PHPUnit 10.

What you need to do

  1. Update to 6.0.13 or later. All fixes are backward compatible. The one visible effect: a sort column name with characters other than [a-zA-Z0-9_.] is skipped with a debug warning (SEC-02).
  2. If you have custom extensions, read For extension developers. The same patterns may be in your code.
  3. Run the security tests (see Verify).

The seven security findings

IDClassCWEBase scoreFileFix
SEC-01SQL injection897.2kernel/classes/ezrole.phpRole ids are cast to (int) before they reach SQL
SEC-02SQL injection898.8kernel/classes/ezcontentobjecttreenode.php (createSortingSQLStrings)Custom sort columns are accepted only if they match [a-zA-Z0-9_.]
SEC-03SQL injection897.5same file (createPermissionCheckingSQL)Subtree paths are escaped with escapeString()
SEC-04SQL injection896.5same file (hideSubTree, unhideSubTree)Node ids are cast, paths escaped
SEC-05OS command injection789.8lib/ezutils/classes/ezsendmailtransport.phpThe sender address passed to sendmail -f goes through escapeshellarg()
SEC-06OS command injection788.1lib/ezfile/classes/ezgzipshellcompressionhandler.phpGzip file names go through escapeshellarg()
SEC-07Reflected XSS796.1kernel/content/search.phpThe search text in the page title is HTML-encoded

Commits: SEC-01 to SEC-06 in 221caccf31; SEC-07 is part of 5a4c83fb30.

At HEAD, kernel/content/search.php is a one-call entry point. The code, including the htmlspecialchars( $searchText ... ) title, lives in kernel/private/classes/views/content/search.php (see Commands, cronjob parts and module views as classes).

The stability fixes

GroupMeaningExamplesCommit
UNDUndefined offset or variable (a notice in PHP 7, an error in PHP 8)ezhttpheader.php, eznavigationpart.php, ezkeyword.phpdbb64b1692
LOGReturn value of preg_match_all used without a checkeznamepatternresolver.phpdbb64b1692
NULObject or array may be null (PHP 8 TypeError)ezcontentobjecttrashnode.php, ezcontentupload.php, ezpackagehandler.php, ezimagealiashandler.phpdbb64b1692
PRGpreg_replace() result may be nullezdifftextengine.phpdbb64b1692
PHPPHP 8.4 deprecationseztimetype.php (short time strings such as 10:30), ezorder.php (fetchList(): required parameter after optional ones, nullable type)2b98050cc4
IMPStub classes that silently dropped dataezsoapparameter.php (setValue() stored nothing), ezsoapheader.php (addHeader() stored nothing): SOAP calls sent empty parameters and no headers5a4c83fb30
SETSetup scripts with uninitialised variableskernel/setup/cachetoolbar.php, datatype.php, extensions.php, session.php and two wizard steps5a4c83fb30
KNTContent module views without null or input checkskernel/content/node_edit.php, removenode.php, restore.php, upload.php, view.php and others (12 files)5a4c83fb30

At HEAD the KNT views are entry points that call classes under kernel/private/classes/views/content/.

The SOAP fix matters if an extension talks to a payment gateway, a remote feed or an authentication provider through lib/ezsoap: calls that looked successful before may have sent empty values.

What did not change

The patch set does not raise the minimum PHP version. The PHP version analysis per patched file is in the hardening notes, section "PHP Version Compatibility".

For extension developers

  • Cast ids to integers before SQL: (int)$id, and array_map( 'intval', $ids ) for lists you implode into IN ( ... ).
  • Escape strings with eZDB::instance()->escapeString( $text ) before you interpolate them.
  • Never interpolate a column or table name from the request; check it against a whitelist.
  • Wrap every shell argument in escapeshellarg().
  • Encode user text for the place it lands in: htmlspecialchars() for HTML, the wash operator in templates.
  • Guard against null: $value ?? '', $array ?? array(), is_array() before implode() or foreach.

Verify

The tests are PHPUnit 10 tests in tests/tests/kernel/classes/security/: eZSecurityHardeningTest.php (14 test methods at HEAD) and eZRSSSecurityTest.php. They are registered as the security suite in phpunit.xml. Run them on a development installation, never against a production database:

php vendor/bin/phpunit --testsuite security

When the change was made, 14 of 14 security tests passed after the patch and none before.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x