CVE-2018-16704: Gleez/cms Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-hh92-wg7v-8vfr
CVSS 4.3
CWE-639
Published
Advisory Summary

CVE-2018-16704 is a MODERATE (CVSS 4.3) remote code execution vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Gleez/cms libraries in the Packagist ecosystem. The issue involves gleez cms vulnerability allows forced browsing to profile page of other users. Remediation is available in the latest vendor maintenance releases.

CVE-2018-16704 at a Glance

CVE Identifier CVE-2018-16704
GHSA Identifier GHSA-hh92-wg7v-8vfr
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Gleez/cms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.3

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

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 None (I:N)
Availability None (A:N)

How to Fix CVE-2018-16704

To remediate this vulnerability, upgrade all affected Gleez/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.

gleez/cms fixed: Latest secure release
Upgrade gleez/cms 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 gleez/cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2018-16704, inspect your project dependencies for Gleez/cms:

inspect dependencies for gleez/cms

Analyze the terminal output to locate any version of Gleez/cms 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Gleez/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

An issue was discovered in Gleez CMS v1.2.0. Because of an Insecure Direct Object Reference vulnerability, it is possible for attackers (logged in users) to view profile page of other users, as demonstrated by navigating to `user/3` on `demo.gleezcms.org`.

CVE-2018-16704 Affected Gleez/cms Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
gleez/cms
Packagist
≤ 1.2.0

References

Frequently Asked Questions

What is CVE-2018-16704?
CVE-2018-16704 is a security vulnerability in Gleez/cms involving Gleez CMS Vulnerability Allows Forced Browsing to Profile Page of Other Users under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Gleez/cms versions are affected?
Affected versions include releases prior to current release patches across affected packages: gleez/cms.
What version fixes CVE-2018-16704?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is gleez/cms affected?
Yes, gleez/cms 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-2018-16704?
CVE-2018-16704 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2018-16704?
CVE-2018-16704 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Packagist dependencies for CVE-2018-16704?
Run the dependency tree command: 'inspect dependencies for gleez/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-hh92-wg7v-8vfr",
  "modified" : "2024-04-25T22:41:46Z",
  "published" : "2022-05-13T01:19:17Z",
  "aliases" : [ "CVE-2018-16704" ],
  "summary" : "Gleez CMS Vulnerability Allows Forced Browsing to Profile Page of Other Users",
  "details" : "An issue was discovered in Gleez CMS v1.2.0. Because of an Insecure Direct Object Reference vulnerability, it is possible for attackers (logged in users) to view profile page of other users, as demonstrated by navigating to `user/3` on `demo.gleezcms.org`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "gleez/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-16704"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gleez/cms/issues/801"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gleez/cms"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-25T22:41:46Z",
    "nvd_published_at" : "2018-09-07T17:29:00Z"
  }
}