Debian LinuxOperating system · Debian

CVE-2015-5723

HIGH · 7.8 CVSS v3.0 Published 2016-06-07
Fix available
A fix is available. Upgrade to after 2.4.7 or later.
See remediation →
80/100
Remediation priority · High
Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Multiple Doctrine libraries create cache directories with world-writable permissions (mode 0777), allowing local users to write arbitrary PHP code into cache files that the application then executes as code. This enables local privilege escalation when the application runs with a restrictive umask of 0.

MitigationUpdate all affected Doctrine components to patched versions (Annotations 1.2.7+, Cache 1.3.2+/1.4.2+, Common 2.4.3+/2.5.1+, ORM 2.4.8+/2.5.1+, MongoDB ODM 1.0.2+, MongoDB ODM Bundle 3.0.1+) and ensure the application umask is set appropriately (e.g., umask 022) to prevent overly permissive file permissions.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Debian LinuxOperating system
Affected:= 7.0= 8.0
Zend CacheApplication
Affected:<= 2.4.7= 2.5.0= 2.5.1= 2.5.2
Object Relational MapperApplication
Affected:<= 2.4.7= 2.5.0
DoctrinemongodbbundleDatabase / datastore
Affected:= 3.0.0
Zend FrameworkApplication
Affected:<= 2.4.7<= 1.12.15
CommonApplication
Affected:<= 2.4.2= 2.5.0
AnnotationsApplication
Affected:<= 1.2.6
Mongodb OdmDatabase / datastore
Affected:<= 1.0.1

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify installed Doctrine/Zend component versions
    Run 'composer show doctrine/*' or check your composer.lock file for doctrine/annotations, doctrine/cache, doctrine/common, doctrine/orm, doctrine/mongodb-odm, and their versions. For Zend, check your vendor/zendframework directory.
    Affected if The installed version falls within: Annotations <= 1.2.6, Cache <= 2.4.7 or 2.5.0-2.5.2, Common <= 2.4.2 or 2.5.0, ORM <= 2.4.7 or 2.5.0, MongoDB ODM <= 1.0.1, or Zend Framework <= 2.4.7 or <= 1.12.15, or Zend Cache <= 2.4.7 or 2.5.0-2.5.2
  2. Check application umask setting
    Add this PHP code to your application temporarily: 'echo umask();' or check the umask setting where your PHP process is spawned. Look for umask(0) calls in your application bootstrap or entry point files.
    Affected if The umask is set to 0 (zero), which prevents the application from removing group/world write permissions from newly created directories and files
  3. Inspect cache directory permissions
    Locate your Doctrine/Zend cache directories (commonly in cache/ or data/cache under your app root, or in sys_get_temp_dir()). Run 'ls -la' on these directories and check the permission bits.
    Affected if Cache directories show permissions like drwxrwxrwx (0777) indicating they were created with world-writable permissions
  4. Verify if application creates new cache files
    Trigger cache generation in your application (e.g., clear cache then run a request that uses Doctrine metadata parsing or Zend caching). Then list files in the cache directory with 'ls -la'.
    Affected if Newly created cache files or directories have permissions 0777 (world-writable) due to the umask 0 setting combined with the vulnerable library code

You are affected if any Doctrine/Zend component version is in the affected list AND your cache directories or files are world-writable (0777) AND your application runs with umask 0, allowing local users to potentially inject executable PHP code into cache files.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Upgrade available Upgrade to a release after 2.4.7
Interim mitigation

Update all affected Doctrine components to patched versions (Annotations 1.2.7+, Cache 1.3.2+/1.4.2+, Common 2.4.3+/2.5.1+, ORM 2.4.8+/2.5.1+, MongoDB ODM 1.0.2+, MongoDB ODM Bundle 3.0.1+) and ensure the application umask is set appropriately (e.g., umask 022) to prevent overly permissive file permissions.

Fix this in Debian Linux Scoped from the published advisory
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA1.0 h
10.0 hours of engineering $1,750
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,800.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2015-5723 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2015-5723 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data