CVE-2021-27312: Gleez/cms Gleez Cms Server Side Request Vulnerability

CRITICAL
Advisory Identifier: GHSA-7mxg-r76p-363g
CVSS 9.0
CWE-918
Published
Advisory Summary

CVE-2021-27312 is a CRITICAL (CVSS 9.0) gleez cms server side request vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Gleez/cms libraries in the Packagist ecosystem. The issue involves gleez cms server side request forgery (ssrf) vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2021-27312 at a Glance

CVE Identifier CVE-2021-27312
GHSA Identifier GHSA-7mxg-r76p-363g
Severity CRITICAL
CVSS v3.1 Base Score 9.0
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Gleez/cms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.0

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:C/C:H/I:H/A:H).

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

How to Fix CVE-2021-27312

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-2021-27312, 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. 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

Server Side Request Forgery (SSRF) vulnerability in Gleez Cms 1.2.0, allows remote attackers to execute arbitrary code and obtain sensitive information via modules/gleez/classes/request.php.

CVE-2021-27312 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-2021-27312?
CVE-2021-27312 is a security vulnerability in Gleez/cms involving Gleez Cms Server Side Request Forgery (SSRF) vulnerability under CWE-918: Server-Side Request Forgery (SSRF).
Which Gleez/cms versions are affected?
Affected versions include releases prior to current release patches across affected packages: gleez/cms.
What version fixes CVE-2021-27312?
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-2021-27312?
CVE-2021-27312 has a CVSS v3.1 base score of 9.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2021-27312?
CVE-2021-27312 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Packagist dependencies for CVE-2021-27312?
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-7mxg-r76p-363g",
  "modified" : "2024-04-03T15:34:31Z",
  "published" : "2024-04-03T06:30:48Z",
  "aliases" : [ "CVE-2021-27312" ],
  "summary" : "Gleez Cms Server Side Request Forgery (SSRF) vulnerability",
  "details" : "Server Side Request Forgery (SSRF) vulnerability in Gleez Cms 1.2.0, allows remote attackers to execute arbitrary code and obtain sensitive information via modules/gleez/classes/request.php.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "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-2021-27312"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gleez/cms/issues/805"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/LioTree/8d10d123d31f50db05a25586e62a87ba"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gleez/cms"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-03T15:34:31Z",
    "nvd_published_at" : "2024-04-03T06:15:07Z"
  }
}