CVE-2023-6654: Phpems/phpems PHPEMS Deserialization Of Untrusted Data Vulnerability

MODERATE
Advisory Identifier: GHSA-5rv2-vvmf-f7w8
CVSS 6.3
CWE-502
Published
Advisory Summary

CVE-2023-6654 is a MODERATE (CVSS 6.3) phpems deserialization of untrusted data vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Phpems/phpems libraries in the Packagist ecosystem. The issue involves phpems deserialization of untrusted data vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2023-6654 at a Glance

CVE Identifier CVE-2023-6654
GHSA Identifier GHSA-5rv2-vvmf-f7w8
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Phpems/phpems
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.3

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

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

How to Fix CVE-2023-6654

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

phpems/phpems fixed: Latest secure release
Upgrade phpems/phpems to Latest secure release
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 phpems/phpems

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-6654, inspect your project dependencies for Phpems/phpems:

inspect dependencies for phpems/phpems

Analyze the terminal output to locate any version of Phpems/phpems in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Phpems/phpems, 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

A vulnerability classified as critical was found in PHPEMS 6.x/7.0. Affected by this vulnerability is an unknown functionality in the library lib/session.cls.php of the component Session Data Handler. The manipulation leads to deserialization. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The identifier VDB-247357 was assigned to this vulnerability.

CVE-2023-6654 Affected Phpems/phpems Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
phpems/phpems
Packagist
≥ 6.0.0
≤ 6.1.3

References

Frequently Asked Questions

What is CVE-2023-6654?
CVE-2023-6654 is a security vulnerability in Phpems/phpems involving PHPEMS Deserialization of Untrusted Data vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Phpems/phpems versions are affected?
Affected versions include releases prior to current release patches across affected packages: phpems/phpems.
What version fixes CVE-2023-6654?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is phpems/phpems affected?
Yes, phpems/phpems is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-6654?
CVE-2023-6654 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2023-6654?
CVE-2023-6654 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-6654?
Run the dependency tree command: 'inspect dependencies for phpems/phpems'. 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-5rv2-vvmf-f7w8",
  "modified" : "2024-01-11T19:39:47Z",
  "published" : "2023-12-10T15:30:31Z",
  "aliases" : [ "CVE-2023-6654" ],
  "summary" : "PHPEMS Deserialization of Untrusted Data vulnerability",
  "details" : "A vulnerability classified as critical was found in PHPEMS 6.x/7.0. Affected by this vulnerability is an unknown functionality in the library lib/session.cls.php of the component Session Data Handler. The manipulation leads to deserialization. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. The identifier VDB-247357 was assigned to this vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "phpems/phpems"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "last_affected" : "6.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-6654"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/oiuv/phpems"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/oiuv/phpems/blob/a4a049362a0250c4b1762464b34d90ed881fef19/lib/session.cls.php"
  }, {
    "type" : "WEB",
    "url" : "https://note.zhaoj.in/share/jw4Hp9cq7T69"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.247357"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.247357"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-11T19:39:47Z",
    "nvd_published_at" : "2023-12-10T15:15:07Z"
  }
}