CVE-2015-5723: Doctrine/orm Doctrine Security Misconfiguration Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-pw5c-xqf2-6xc2
CVSS 7.8
Published
Advisory Summary

CVE-2015-5723 is a HIGH (CVSS 7.8) doctrine security misconfiguration vulnerability vulnerability (General Security Weakness) affecting Doctrine/orm libraries in the Packagist ecosystem. The issue involves doctrine security misconfiguration vulnerability. Remediation is available by upgrading affected packages to version 2.5.1, 1.2.7, 1.4.2, 2.4.3, 1.0.2, 3.0.1, 1.12.16, 2.5.3, 3.2.1, 1.3.2, 2.4.8, 1.0.3.

CVE-2015-5723 at a Glance

CVE Identifier CVE-2015-5723
GHSA Identifier GHSA-pw5c-xqf2-6xc2
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification General Security Weakness
Affected Product Doctrine/orm
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2015-5723

To remediate this vulnerability, upgrade all affected Doctrine/orm dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

doctrine/orm fixed: 2.5.1
Upgrade doctrine/orm to 2.5.1
doctrine/annotations fixed: 1.2.7
Upgrade doctrine/annotations to 1.2.7
doctrine/cache fixed: 1.4.2
Upgrade doctrine/cache to 1.4.2
doctrine/common fixed: 2.4.3
Upgrade doctrine/common to 2.4.3
doctrine/common fixed: 2.5.1
Upgrade doctrine/common to 2.5.1
doctrine/mongodb-odm fixed: 1.0.2
Upgrade doctrine/mongodb-odm to 1.0.2
doctrine/mongodb-odm-bundle fixed: 3.0.1
Upgrade doctrine/mongodb-odm-bundle to 3.0.1
zendframework/zendframework1 fixed: 1.12.16
Upgrade zendframework/zendframework1 to 1.12.16
zendframework/zend-cache fixed: 2.5.3
Upgrade zendframework/zend-cache to 2.5.3
aws/aws-sdk-php fixed: 3.2.1
Upgrade aws/aws-sdk-php to 3.2.1
doctrine/cache fixed: 1.3.2
Upgrade doctrine/cache to 1.3.2
zendframework/zend-cache fixed: 2.4.8
Upgrade zendframework/zend-cache to 2.4.8
zendframework/zendframework fixed: 2.4.8
Upgrade zendframework/zendframework to 2.4.8
zfcampus/zf-apigility-doctrine fixed: 1.0.3
Upgrade zfcampus/zf-apigility-doctrine to 1.0.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for doctrine/orm

How to Check if You Are Affected

To determine whether your application is affected by CVE-2015-5723, inspect your project dependencies for Doctrine/orm:

inspect dependencies for doctrine/orm

Analyze the terminal output to locate any version of Doctrine/orm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Doctrine/orm, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2015-5723 Affected Doctrine/orm Versions

14 component(s)
Fixed Versions:
2.5.11.2.71.4.22.4.31.0.23.0.11.12.162.5.33.2.11.3.22.4.81.0.3
Product / Package Ecosystem Affected Versions Fixed Version
doctrine/orm
Packagist
≥ 2.5.0
< 2.5.1
2.5.1
doctrine/annotations
Packagist
< 1.2.7
1.2.7
doctrine/cache
Packagist
≥ 1.4.0
< 1.4.2
1.4.2
doctrine/common
Packagist
< 2.4.3
2.4.3
doctrine/common
Packagist
≥ 2.5.0-stable
< 2.5.1
2.5.1
doctrine/mongodb-odm
Packagist
< 1.0.2
1.0.2
doctrine/mongodb-odm-bundle
Packagist
< 3.0.1
3.0.1
zendframework/zendframework1
Packagist
≥ 1.12.0
< 1.12.16
1.12.16
zendframework/zend-cache
Packagist
≥ 2.5.0
< 2.5.3
2.5.3
aws/aws-sdk-php
Packagist
≥ 3.0.0
< 3.2.1
3.2.1
doctrine/cache
Packagist
≥ 1.0.0
< 1.3.2
1.3.2
zendframework/zend-cache
Packagist
≥ 2.4.0
< 2.4.8
2.4.8
zendframework/zendframework
Packagist
≥ 2.4.0
< 2.4.8
2.4.8
zfcampus/zf-apigility-doctrine
Packagist
≥ 1.0.0
< 1.0.3
1.0.3

References

NVD — CVE-2015-5723 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-5723
Doctrine/orm Security Information SECURITY
https://framework.zend.com/security/advisory/ZF2015-07
Doctrine/orm Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/aws/aws-sdk-php/CVE-2015-5723.yaml
Doctrine/orm Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/doctrine/cache/CVE-2015-5723.yaml
Doctrine/orm Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/doctrine/orm/CVE-2015-5723.yaml
Doctrine/orm Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-cache/CVE-2015-5723.yaml
Doctrine/orm Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/CVE-2015-5723.yaml
Doctrine/orm Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/CVE-2015-5723.yaml
Doctrine/orm Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/zfcampus/zf-apigility-doctrine/CVE-2015-5723.yaml
Doctrine/orm Release RELEASE
https://github.com/aws/aws-sdk-php/releases/tag/3.2.1
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2IUUC7HPN4XE5NNTG4MR76OC662XRZUO
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HPS7A54FQ2CR6PH4NDR6UIYJIRNFXW67
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2IUUC7HPN4XE5NNTG4MR76OC662XRZUO
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HPS7A54FQ2CR6PH4NDR6UIYJIRNFXW67
Doctrine/orm Security Information SECURITY
https://www.doctrine-project.org/2015/08/31/security_misconfiguration_vulnerability_in_various_doctrine_projects.html
Doctrine/orm Security Information SECURITY
http://framework.zend.com/security/advisory/ZF2015-07
Doctrine/orm Security Information SECURITY
http://www.debian.org/security/2015/dsa-3369
Doctrine/orm Security Information SECURITY
http://www.doctrine-project.org/2015/08/31/security_misconfiguration_vulnerability_in_various_doctrine_projects.html

Frequently Asked Questions

What is CVE-2015-5723?
CVE-2015-5723 is a security vulnerability in Doctrine/orm involving Doctrine Security Misconfiguration Vulnerability under General Security Weakness.
Which Doctrine/orm versions are affected?
Affected versions include releases prior to 2.5.1, 1.2.7, 1.4.2, 2.4.3, 1.0.2, 3.0.1, 1.12.16, 2.5.3, 3.2.1, 1.3.2, 2.4.8, 1.0.3 across affected packages: doctrine/orm, doctrine/annotations, doctrine/cache, doctrine/common, doctrine/mongodb-odm, doctrine/mongodb-odm-bundle, zendframework/zendframework1, zendframework/zend-cache, aws/aws-sdk-php, zendframework/zendframework, zfcampus/zf-apigility-doctrine.
What version fixes CVE-2015-5723?
Upgrading to 2.5.1, 1.2.7, 1.4.2, 2.4.3, 1.0.2, 3.0.1, 1.12.16, 2.5.3, 3.2.1, 1.3.2, 2.4.8, 1.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is doctrine/orm affected?
Yes, doctrine/orm is affected in releases prior to 2.5.1. Upgrade your dependency to 2.5.1 or later.
Is doctrine/annotations affected?
Yes, doctrine/annotations is affected in releases prior to 1.2.7. Upgrade your dependency to 1.2.7 or later.
What is the CVSS score of CVE-2015-5723?
CVE-2015-5723 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2015-5723?
CVE-2015-5723 is classified under General Security Weakness.
How can I check Packagist dependencies for CVE-2015-5723?
Run the dependency tree command: 'inspect dependencies for doctrine/orm'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pw5c-xqf2-6xc2",
  "modified" : "2023-10-19T19:12:06Z",
  "published" : "2022-05-17T03:44:28Z",
  "aliases" : [ "CVE-2015-5723" ],
  "summary" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "doctrine/annotations"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "doctrine/cache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0"
      }, {
        "fixed" : "1.4.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "doctrine/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "doctrine/common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0-stable"
      }, {
        "fixed" : "2.5.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "doctrine/orm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "doctrine/mongodb-odm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "doctrine/mongodb-odm-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendframework1"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.12.0"
      }, {
        "fixed" : "1.12.16"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zend-cache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "aws/aws-sdk-php"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "doctrine/cache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.3.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zend-cache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.4.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zendframework/zendframework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.4.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zfcampus/zf-apigility-doctrine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-5723"
  }, {
    "type" : "WEB",
    "url" : "https://framework.zend.com/security/advisory/ZF2015-07"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/aws/aws-sdk-php/CVE-2015-5723.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/doctrine/cache/CVE-2015-5723.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/doctrine/orm/CVE-2015-5723.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zend-cache/CVE-2015-5723.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework/CVE-2015-5723.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/CVE-2015-5723.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zfcampus/zf-apigility-doctrine/CVE-2015-5723.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aws/aws-sdk-php/releases/tag/3.2.1"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2IUUC7HPN4XE5NNTG4MR76OC662XRZUO"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HPS7A54FQ2CR6PH4NDR6UIYJIRNFXW67"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2IUUC7HPN4XE5NNTG4MR76OC662XRZUO"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HPS7A54FQ2CR6PH4NDR6UIYJIRNFXW67"
  }, {
    "type" : "WEB",
    "url" : "https://www.doctrine-project.org/2015/08/31/security_misconfiguration_vulnerability_in_various_doctrine_projects.html"
  }, {
    "type" : "WEB",
    "url" : "http://framework.zend.com/security/advisory/ZF2015-07"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2015/dsa-3369"
  }, {
    "type" : "WEB",
    "url" : "http://www.doctrine-project.org/2015/08/31/security_misconfiguration_vulnerability_in_various_doctrine_projects.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-19T19:12:06Z",
    "nvd_published_at" : "2016-06-07T14:06:00Z"
  }
}