CVE-2022-39297: Melisplatform/melis cms Melisplatform/melis-cms Vulnerable To Deserialization Of Vulnerability

HIGH
Advisory Identifier: GHSA-m3m3-6gww-7gj9
CVSS 7.7
CWE-502
Published
Advisory Summary

CVE-2022-39297 is a HIGH (CVSS 7.7) melisplatform/melis-cms vulnerable to deserialization of vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Melisplatform/melis cms libraries in the Packagist ecosystem. The issue involves melisplatform/melis-cms vulnerable to deserialization of untrusted data. Remediation is available by upgrading affected packages to version 5.0.1.

CVE-2022-39297 at a Glance

CVE Identifier CVE-2022-39297
GHSA Identifier GHSA-m3m3-6gww-7gj9
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Melisplatform/melis cms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.7

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

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

How to Fix CVE-2022-39297

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

melisplatform/melis-cms fixed: 5.0.1
Upgrade melisplatform/melis-cms to 5.0.1
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 melisplatform/melis-cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-39297, inspect your project dependencies for Melisplatform/melis cms:

inspect dependencies for melisplatform/melis-cms

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

### Impact Attackers can deserialize arbitrary data on affected versions of `melisplatform/melis-cms`, and ultimately leads to the execution of arbitrary PHP code on the system. Conducting this attack does not require authentication. Users should immediately upgrade to `melisplatform/melis-cms` >= 5.0.1. ### Patches This issue was addressed by restricting allowed classes when deserializing user-controlled data. ### References - https://github.com/melisplatform/melis-cms/commit/d124b2474699a679a24ec52620cadceb3d4cec11 ### For more information If you have any questions or comments about this advisory, you can contact: - The original reporters, by sending an email to vulnerability.research [at] sonarsource.com; - The maintainers, by opening an issue on this repository.

CVE-2022-39297 Affected Melisplatform/melis cms Versions

1 component(s)
Fixed Versions:
5.0.1
Product / Package Ecosystem Affected Versions Fixed Version
melisplatform/melis-cms
Packagist
< 5.0.1
5.0.1

References

Frequently Asked Questions

What is CVE-2022-39297?
CVE-2022-39297 is a security vulnerability in Melisplatform/melis cms involving melisplatform/melis-cms vulnerable to deserialization of untrusted data under CWE-502: Deserialization of Untrusted Data.
Which Melisplatform/melis cms versions are affected?
Affected versions include releases prior to 5.0.1 across affected packages: melisplatform/melis-cms.
What version fixes CVE-2022-39297?
Upgrading to 5.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is melisplatform/melis-cms affected?
Yes, melisplatform/melis-cms is affected in releases prior to 5.0.1. Upgrade your dependency to 5.0.1 or later.
What is the CVSS score of CVE-2022-39297?
CVE-2022-39297 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L.
What CWE is associated with CVE-2022-39297?
CVE-2022-39297 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-2022-39297?
Run the dependency tree command: 'inspect dependencies for melisplatform/melis-cms'. 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-m3m3-6gww-7gj9",
  "modified" : "2022-10-13T20:09:39Z",
  "published" : "2022-10-11T20:45:54Z",
  "aliases" : [ "CVE-2022-39297" ],
  "summary" : "melisplatform/melis-cms vulnerable to deserialization of untrusted data",
  "details" : "### Impact\n\nAttackers can deserialize arbitrary data on affected versions of `melisplatform/melis-cms`, and ultimately leads to the execution of arbitrary PHP code on the system. Conducting this attack does not require authentication.\n\nUsers should immediately upgrade to `melisplatform/melis-cms` >= 5.0.1.\n\n### Patches\n\nThis issue was addressed by restricting allowed classes when deserializing user-controlled data. \n\n### References\n\n- https://github.com/melisplatform/melis-cms/commit/d124b2474699a679a24ec52620cadceb3d4cec11\n\n### For more information\n\nIf you have any questions or comments about this advisory, you can contact:\n- The original reporters, by sending an email to vulnerability.research [at] sonarsource.com;\n- The maintainers, by opening an issue on this repository.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "melisplatform/melis-cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/melisplatform/melis-cms/security/advisories/GHSA-m3m3-6gww-7gj9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39297"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/melisplatform/melis-cms/commit/d124b2474699a679a24ec52620cadceb3d4cec11"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/melisplatform/melis-cms"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-10-11T20:45:54Z",
    "nvd_published_at" : "2022-10-12T23:15:00Z"
  }
}