CVE-2023-36825: Orchid/platform Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-ph6g-p72v-pc3p
CVSS 9.8
CWE-502
Published
Advisory Summary

CVE-2023-36825 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Orchid/platform libraries in the Packagist ecosystem. The issue involves orchid deserialization of untrusted data vulnerability leads to remote code execution. Remediation is available by upgrading affected packages to version 14.5.0.

CVE-2023-36825 at a Glance

CVE Identifier CVE-2023-36825
GHSA Identifier GHSA-ph6g-p72v-pc3p
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Orchid/platform
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.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:N/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 None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-36825

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

orchid/platform fixed: 14.5.0
Upgrade orchid/platform to 14.5.0
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 orchid/platform

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-36825, inspect your project dependencies for Orchid/platform:

inspect dependencies for orchid/platform

Analyze the terminal output to locate any version of Orchid/platform in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.5.0), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Orchid/platform, 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

Orchid is a Laravel package that allows application development of back-office applications, admin/user panels, and dashboards. ### Impact A vulnerability present starting in version 14.0.0-alpha4 and prior to version 14.5.0 is related to the deserialization of untrusted data from the `_state` query parameter, which can result in remote code execution. This vulnerability is related to the deserialization of untrusted data from the `_state` query parameter, which can result in remote code execution. ### Patches The issue has been addressed in version 14.5.0. Users are advised to upgrade their software to this version or any subsequent versions that include the patch. There are no known workarounds. ### Workarounds In this case, it is recommended for users to upgrade to the patched version rather than relying on workarounds. Upgrading to the fixed version ensures that the vulnerability is no longer present and provides the best protection against remote code execution ### References For more detailed information about this workaround and its effectiveness, users should consult the support channels provided by the software or system developer. They can provide specific guidance on implementing this workaround and any potential limitations or caveats associated with it. ---- This vulnerability was discovered by Vladislav Gladkiy (Positive Technologies)

CVE-2023-36825 Affected Orchid/platform Versions

1 component(s)
Fixed Versions:
14.5.0
Product / Package Ecosystem Affected Versions Fixed Version
orchid/platform
Packagist
≥ 14.0.0-alpha4
< 14.5.0
14.5.0

References

Frequently Asked Questions

What is CVE-2023-36825?
CVE-2023-36825 is a security vulnerability in Orchid/platform involving Orchid Deserialization of Untrusted Data vulnerability leads to Remote Code Execution under CWE-502: Deserialization of Untrusted Data.
Which Orchid/platform versions are affected?
Affected versions include releases prior to 14.5.0 across affected packages: orchid/platform.
What version fixes CVE-2023-36825?
Upgrading to 14.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is orchid/platform affected?
Yes, orchid/platform is affected in releases prior to 14.5.0. Upgrade your dependency to 14.5.0 or later.
What is the CVSS score of CVE-2023-36825?
CVE-2023-36825 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-36825?
CVE-2023-36825 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Packagist dependencies for CVE-2023-36825?
Run the dependency tree command: 'inspect dependencies for orchid/platform'. 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-ph6g-p72v-pc3p",
  "modified" : "2023-07-20T14:58:59Z",
  "published" : "2023-07-11T22:46:27Z",
  "aliases" : [ "CVE-2023-36825" ],
  "summary" : "Orchid Deserialization of Untrusted Data vulnerability leads to Remote Code Execution",
  "details" : "Orchid is a Laravel package that allows application development of back-office applications, admin/user panels, and dashboards.\n\n### Impact\n\nA vulnerability present starting in version 14.0.0-alpha4 and prior to version 14.5.0 is related to the deserialization of untrusted data from the `_state` query parameter, which can result in remote code execution. This vulnerability is related to the deserialization of untrusted data from the `_state` query parameter, which can result in remote code execution.\n\n### Patches\n\nThe issue has been addressed in version 14.5.0. Users are advised to upgrade their software to this version or any subsequent versions that include the patch. There are no known workarounds.\n\n### Workarounds\n\nIn this case, it is recommended for users to upgrade to the patched version rather than relying on workarounds. Upgrading to the fixed version ensures that the vulnerability is no longer present and provides the best protection against remote code execution\n\n### References\n\nFor more detailed information about this workaround and its effectiveness, users should consult the support channels provided by the software or system developer. They can provide specific guidance on implementing this workaround and any potential limitations or caveats associated with it.\n\n----\n\nThis vulnerability was discovered by Vladislav Gladkiy (Positive Technologies)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "orchid/platform"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "14.0.0-alpha4"
      }, {
        "fixed" : "14.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/orchidsoftware/platform/security/advisories/GHSA-ph6g-p72v-pc3p"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-36825"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/orchidsoftware/platform"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orchidsoftware/platform/releases/tag/14.5.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-11T22:46:27Z",
    "nvd_published_at" : "2023-07-11T18:15:20Z"
  }
}