Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359663 - dev-php/doctrine-1.2.4 version bump (Security Fix)
Summary: dev-php/doctrine-1.2.4 version bump (Security Fix)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: http://www.doctrine-project.org/blog/...
Whiteboard: ~3 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-20 21:05 UTC by Denny Reeh
Modified: 2011-03-21 14:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denny Reeh 2011-03-20 21:05:27 UTC
Request for version dump

Reproducible: Always
Comment 1 Tim Sammut (RETIRED) gentoo-dev 2011-03-21 05:26:58 UTC
Details from $URL:

Because of a SQL injection possibility we urge users of Doctrine 1.2 and 2 to the newly released versions of both libraries immediately. Both versions only include the security fix and no other changes to their previous versions 1.2.3 and 2.0.2.

Affected versions are:

    * 1.2.3 and earlier for PostgreSQL and DB2 Dialects
    * 2.0.2 and earlier

The security hole was found today and affects the Doctrine\DBAL\Platforms\AbstractPlatform::modifyLimitQuery() function which does not cast input values for limit and offset to integer and allows malicious SQL to be executed if these parameters are passed into Doctrine 2 directly from request variables without previous cast to integer. Functionality building on top using limit queries in the ORM such as Doctrine\ORM\Query::setFirstResult() and Doctrine\ORM\Query::setMaxResults() are also affected by this security hole.

You can grab the packages from PEAR, Archive or Github, see the respective links more details:

    * ORM
    * DBAL

The fix for this security hole breaks backwards compatibility for developers that extend the Doctrine\DBAL\Platforms\AbstractPlatform::modifyLimitQuery() method, because it is now marked as final. Please overwrite the Doctrine\DBAL\Platforms\AbstractPlatform::doModifyLimitQuery() method instead.
Comment 2 Ole Markus With (RETIRED) gentoo-dev 2011-03-21 07:20:27 UTC
Ebuild committed.
=dev-php/doctrine-1.2.4 amd64 x86
Comment 3 Ole Markus With (RETIRED) gentoo-dev 2011-03-21 07:26:39 UTC
For the record, there is no stable version of doctrine in portage.
Comment 4 Tim Sammut (RETIRED) gentoo-dev 2011-03-21 14:18:01 UTC
(In reply to comment #3)
> For the record, there is no stable version of doctrine in portage.

Thanks!