ADVISORIES

GitHub Advisory Database

GHSA-pw5c-xqf2-6xc2

Doctrine Security Misconfiguration Vulnerability

Details

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.

Affected packages

EcosystemPackageAffected versions
Packagistdoctrine/annotations
All versions before 1.2.7 (fixed in 1.2.7)
Packagistdoctrine/cache
From 1.4.0 before 1.4.2 (fixed in 1.4.2)
Packagistdoctrine/common
All versions before 2.4.3 (fixed in 2.4.3)
Packagistdoctrine/common
From 2.5.0-stable before 2.5.1 (fixed in 2.5.1)
Packagistdoctrine/orm
From 2.5.0 before 2.5.1 (fixed in 2.5.1)
Packagistdoctrine/mongodb-odm
All versions before 1.0.2 (fixed in 1.0.2)
Packagistdoctrine/mongodb-odm-bundle
All versions before 3.0.1 (fixed in 3.0.1)
Packagistzendframework/zendframework1
From 1.12.0 before 1.12.16 (fixed in 1.12.16)
Packagistzendframework/zend-cache
From 2.5.0 before 2.5.3 (fixed in 2.5.3)
Packagistaws/aws-sdk-php
From 3.0.0 before 3.2.1 (fixed in 3.2.1)
Packagistdoctrine/cache
From 1.0.0 before 1.3.2 (fixed in 1.3.2)
Packagistzendframework/zend-cache
From 2.4.0 before 2.4.8 (fixed in 2.4.8)
Packagistzendframework/zendframework
From 2.4.0 before 2.4.8 (fixed in 2.4.8)
Packagistzfcampus/zf-apigility-doctrine
From 1.0.0 before 1.0.3 (fixed in 1.0.3)

References