CVE-2023-25240: Pimcore/pimcore SameSite Attribute Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-r2vq-p658-p274
CVSS 8.8
CWE-1265
Published
Advisory Summary

CVE-2023-25240 is a HIGH (CVSS 8.8) samesite attribute vulnerability vulnerability (CWE-1265: Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls) affecting Pimcore/pimcore libraries in the Packagist ecosystem. The issue involves samesite attribute vulnerability in pimcore. Remediation is available by upgrading affected packages to version 10.5.16.

CVE-2023-25240 at a Glance

CVE Identifier CVE-2023-25240
GHSA Identifier GHSA-r2vq-p658-p274
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-1265: Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls
Affected Product Pimcore/pimcore
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.8

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

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

How to Fix CVE-2023-25240

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

pimcore/pimcore fixed: 10.5.16
Upgrade pimcore/pimcore to 10.5.16
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 pimcore/pimcore

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-25240, inspect your project dependencies for Pimcore/pimcore:

inspect dependencies for pimcore/pimcore

Analyze the terminal output to locate any version of Pimcore/pimcore in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.5.16), 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 CWE-1265: Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls, where the product invokes code that is believed to be reentrant, but the code performs a call that unintentionally produces a nested invocation of the non-reentrant code. In Pimcore/pimcore, 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

An improper SameSite Attribute vulnerability in pimCore v10.5.15 allows attackers to execute arbitrary code.

CVE-2023-25240 Affected Pimcore/pimcore Versions

1 component(s)
Fixed Versions:
10.5.16
Product / Package Ecosystem Affected Versions Fixed Version
pimcore/pimcore
Packagist
< 10.5.16
10.5.16

References

Frequently Asked Questions

What is CVE-2023-25240?
CVE-2023-25240 is a security vulnerability in Pimcore/pimcore involving SameSite Attribute vulnerability in pimCore under CWE-1265: Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls.
Which Pimcore/pimcore versions are affected?
Affected versions include releases prior to 10.5.16 across affected packages: pimcore/pimcore.
What version fixes CVE-2023-25240?
Upgrading to 10.5.16 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pimcore/pimcore affected?
Yes, pimcore/pimcore is affected in releases prior to 10.5.16. Upgrade your dependency to 10.5.16 or later.
What is the CVSS score of CVE-2023-25240?
CVE-2023-25240 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-25240?
CVE-2023-25240 is classified under CWE-1265: Unintended Reentrant Invocation of Non-reentrant Code Via Nested Calls (The product invokes code that is believed to be reentrant, but the code performs a call that unintentionally produces a nested invocation of the non-reentrant code.).
How can I check Packagist dependencies for CVE-2023-25240?
Run the dependency tree command: 'inspect dependencies for pimcore/pimcore'. 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-r2vq-p658-p274",
  "modified" : "2023-02-23T22:07:55Z",
  "published" : "2023-02-13T21:31:03Z",
  "aliases" : [ "CVE-2023-25240" ],
  "summary" : "SameSite Attribute vulnerability in pimCore",
  "details" : "An improper SameSite Attribute vulnerability in pimCore v10.5.15 allows attackers to execute arbitrary code.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pimcore/pimcore"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "10.5.16"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25240"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/pimcore/pimCore-10.5.15"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pimcore/pimcore"
  }, {
    "type" : "WEB",
    "url" : "https://portswigger.net/web-security/csrf/bypassing-samesite-restrictions"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1265" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-14T00:29:53Z",
    "nvd_published_at" : "2023-02-13T21:15:00Z"
  }
}