CVE-2022-25377 Appwrite Directory Traversal vulnerability

High 7.5 Published Updated

Remote attackers can read arbitrary local files via directory traversal in the ACME-challenge endpoint if the certificate storage path exists.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-25377?

CVE-2022-25377 is a high-severity path traversal vulnerability in n/a, published on 22 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.)

Weakness: CWE-22

Which versions are affected by CVE-2022-25377?

2 open source packages ship an affected version, including appwrite/server-ce. It affects 1 product.

PackageAffectedFixed in
appwrite/server-ce PackagistFrom 0.5.00.12.2
appwrite/server-ce PackagistFrom 0.5.00.12.2

Products include Appwrite Appwrite.

How do I fix CVE-2022-25377?

Upgrade appwrite/server-ce to 0.12.2 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-25377 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25377 exists.

Sources

Also known as GHSA-wfm3-gq9h-mrjm.

Is CVE-2022-25377 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free