Skip to content
OpenAdvisories

Description

Doctrine Annotations before 1.2.7, Cache before 1.3.2 and 1.4.x before 1.4.2, Common before 2.4.3 and 2.5.x before 2.5.1, ORM before 2.4.8 or 2.5.x before 2.5.1, MongoDB ODM before 1.0.2, and MongoDB ODM Bundle before 3.0.1 use world-writable permissions for cache directories, which allows local users to execute arbitrary PHP code with additional privileges by leveraging an application with the umask set to 0 and that executes cache entries as code.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 doctrine 2.4.8-1 —
Debian 14 php-doctrine-annotations 1.2.7-1 —
Debian 14 php-doctrine-cache 1.4.2-1 —
Debian 13 doctrine 2.4.8-1 —
Debian 13 php-doctrine-annotations 1.2.7-1 —
Debian 13 php-doctrine-cache 1.4.2-1 —
Debian 13 php-doctrine-common 2.4.3-1 —
Debian 12 doctrine 2.4.8-1 —
Debian 12 php-doctrine-annotations 1.2.7-1 —
Debian 12 php-doctrine-cache 1.4.2-1 —
Debian 12 php-doctrine-common 2.4.3-1 —
Debian 8 zendframework 1.12.9+dfsg-2+deb8u4 DSA-3369-1
Debian 7 zendframework 1.11.13-1.1+deb7u4 DSA-3369-1

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist aws/aws-sdk-php >= 3.0.0, < 3.2.1 3.2.1 GHSA-pw5c-xqf2-6xc2
Packagist doctrine/annotations < 1.2.7 1.2.7 GHSA-pw5c-xqf2-6xc2
Packagist doctrine/cache >= 1.4.0, < 1.4.2 1.4.2 GHSA-pw5c-xqf2-6xc2
Packagist doctrine/cache >= 1.0.0, < 1.3.2 1.3.2 GHSA-pw5c-xqf2-6xc2
Packagist doctrine/common < 2.4.3 2.4.3 GHSA-pw5c-xqf2-6xc2
Packagist doctrine/common >= 2.5.0-stable, < 2.5.1 2.5.1 GHSA-pw5c-xqf2-6xc2
Packagist doctrine/mongodb-odm < 1.0.2 1.0.2 GHSA-pw5c-xqf2-6xc2
Packagist doctrine/mongodb-odm-bundle < 3.0.1 3.0.1 GHSA-pw5c-xqf2-6xc2
Packagist doctrine/orm >= 2.5.0, < 2.5.1 2.5.1 GHSA-pw5c-xqf2-6xc2
Packagist zendframework/zend-cache >= 2.5.0, < 2.5.3 2.5.3 GHSA-pw5c-xqf2-6xc2
Packagist zendframework/zend-cache >= 2.4.0, < 2.4.8 2.4.8 GHSA-pw5c-xqf2-6xc2
Packagist zendframework/zendframework >= 2.4.0, < 2.4.8 2.4.8 GHSA-pw5c-xqf2-6xc2
Packagist zendframework/zendframework1 >= 1.12.0, < 1.12.16 1.12.16 GHSA-pw5c-xqf2-6xc2
Packagist zfcampus/zf-apigility-doctrine >= 1.0.0, < 1.0.3 1.0.3 GHSA-pw5c-xqf2-6xc2

Advisories 1

References