Skip to content

release-1.27.2

Choose a tag to compare

@develart-projects develart-projects released this 28 Nov 01:35
· 76 commits to master since this release
ae00cdf

Security release – upgrade as soon as possible

This release fixes an SQL injection in Zend_Db_Select::order() and group(). Applications that pass user input (e.g. a sort column from the URL) to these methods, also through the $order argument of Zend_Db_Table fetchAll() / fetchRow(), are affected. All earlier versions are affected. Thanks to Brian Morton for the report and the patch.

This fix changes behaviour. A string that looks like an SQL function call, such as order('RAND()') or group('YEAR(created)'), now throws Zend_Db_Select_Exception. Pass new Zend_Db_Expr('RAND()') instead. If the upgrade breaks your application, call Zend_Db_Select::setStringExpressionsAllowed(true) in the bootstrap to restore the previous behaviour until the calls are rewritten. Use it only when no user input reaches these methods.

Also in this release

  • Zend_Session with a save handler: create_sid() and validateId() for PHP 8.6; session.use_strict_mode now works with a save handler (#683)
  • Zend_Cache_Core::$_lastId is protected (#684)

See CHANGELOG.md and BREAKING-CHANGES.md for details.