CVE-2023-27159: Appwrite/server ce Appwrite Server-Side Request Forgery Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-hxgx-584x-vwm8
CVSS 7.5
CWE-918
Published
Advisory Summary

CVE-2023-27159 is a HIGH (CVSS 7.5) appwrite server-side request forgery vulnerability vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Appwrite/server ce libraries in the Packagist ecosystem. The issue involves appwrite server-side request forgery vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2023-27159 at a Glance

CVE Identifier CVE-2023-27159
GHSA Identifier GHSA-hxgx-584x-vwm8
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Appwrite/server ce
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/A:N).

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

How to Fix CVE-2023-27159

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

appwrite/server-ce fixed: Latest secure release
Upgrade appwrite/server-ce 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 appwrite/server-ce

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-27159, inspect your project dependencies for Appwrite/server ce:

inspect dependencies for appwrite/server-ce

Analyze the terminal output to locate any version of Appwrite/server ce 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 Appwrite/server ce, 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

Appwrite up to v1.2.1 was discovered to contain a Server-Side Request Forgery (SSRF) via the component `/v1/avatars/favicon`. This vulnerability allows attackers to access network resources and sensitive information via a crafted GET request.

CVE-2023-27159 Affected Appwrite/server ce Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
appwrite/server-ce
Packagist
≤ 1.2.1

References

Frequently Asked Questions

What is CVE-2023-27159?
CVE-2023-27159 is a security vulnerability in Appwrite/server ce involving Appwrite Server-Side Request Forgery vulnerability under CWE-918: Server-Side Request Forgery (SSRF).
Which Appwrite/server ce versions are affected?
Affected versions include releases prior to current release patches across affected packages: appwrite/server-ce.
What version fixes CVE-2023-27159?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is appwrite/server-ce affected?
Yes, appwrite/server-ce 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-27159?
CVE-2023-27159 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-27159?
CVE-2023-27159 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-2023-27159?
Run the dependency tree command: 'inspect dependencies for appwrite/server-ce'. 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-hxgx-584x-vwm8",
  "modified" : "2023-04-10T16:42:16Z",
  "published" : "2023-03-31T21:30:40Z",
  "aliases" : [ "CVE-2023-27159" ],
  "summary" : "Appwrite Server-Side Request Forgery vulnerability",
  "details" : "Appwrite up to v1.2.1 was discovered to contain a Server-Side Request Forgery (SSRF) via the component `/v1/avatars/favicon`. This vulnerability allows attackers to access network resources and sensitive information via a crafted GET request.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "appwrite/server-ce"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-27159"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/b33t1e/43b26c31e895baf7e7aea2dbf9743a9a"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/b33t1e/e9e8192317c111e7897e04d2f9bf5fdb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/appwrite/appwrite"
  }, {
    "type" : "WEB",
    "url" : "https://notes.sjtu.edu.cn/gMNlpByZSDiwrl9uZyHTKA"
  }, {
    "type" : "WEB",
    "url" : "http://appwrite.com"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-10T16:42:16Z",
    "nvd_published_at" : "2023-03-31T19:15:00Z"
  }
}