# CVE-2023-50974: Apprite CLI makes Use of Hard-coded Credentials

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-01-09T00:00:00.000Z
- Modified: 2026-06-17T06:40:20.573Z
- Also known as: GHSA-g777-crp9-m27g, PYSEC-2024-2
- Weaknesses: CWE-798
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

In Appwrite CLI before 3.0.0, when using the login command, the credentials of the Appwrite user are stored in a ~/.appwrite/prefs.json file with 0644 as UNIX permissions. Any user of the local system can access those credentials.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- appwrite-cli (npm): before 3.0.0
- appwrite (PyPI): before 3.0.0
- appwrite command_line_interface: before 3.0.0

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://gist.github.com/SkypLabs/72ee00ecfa7d1a3494e2d69a24279c1d> (exploit, evidence, third-party-advisory, web)
- <https://appwrite.io/docs/tooling/command-line/installation> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-50974> (advisory)
- <https://github.com/appwrite/sdk-for-cli> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/appwrite/PYSEC-2024-2.yaml> (web)
- <https://github.com/advisories/GHSA-g777-crp9-m27g> (advisory)

## Sources

- CVE List: [CVE-2023-50974](https://www.cve.org/CVERecord?id=CVE-2023-50974), CVE Terms of Use, modified 2025-06-17
- GitHub Advisory Database: [GHSA-g777-crp9-m27g](https://github.com/advisories/GHSA-g777-crp9-m27g), CC-BY-4.0, modified 2024-09-13
- NVD: [CVE-2023-50974](https://nvd.nist.gov/vuln/detail/CVE-2023-50974), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-2](https://osv.dev/vulnerability/PYSEC-2024-2), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2023-50974 · Whole record: https://cve.day/CVE-2023-50974.json · Rebuilt by cve.day 2026-11-25T22:58:31.978Z
