CVE-2022-25377: 
PHP Analyse et atténuation des vulnérabilités

Aperçu

The ACME-challenge endpoint in Appwrite versions 0.5.0 through 0.12.x before 0.12.2 contained a Local File Inclusion (LFI) vulnerability that allowed remote attackers to read arbitrary local files via directory traversal. The vulnerability was discovered in December 2021 and was fixed in version 0.12.2 released on February 11, 2022 (Dubell Blog, GitHub Release).

Détails techniques

The vulnerability existed in the /.well-known/acme-challenge endpoint's path validation logic. The issue stemmed from an incorrect check '!\substr($absolute, 0, \strlen($base)) === $base' which inverted the result of substr, causing the path validation to be bypassed. This allowed attackers to use ../ directory traversal sequences to access files outside the intended directory. The vulnerability was exploitable when the path APP_STORAGE_CERTIFICATES/.well-known/acme-challenge existed on disk, which would be automatically created if the user chose to install let's encrypt certificates via Appwrite (Dubell Blog).

Impact

The impact was severe as it allowed reading arbitrary local files on the system. If PHP was running as root (as in the provided docker environment), an attacker could read any system file including sensitive files like /etc/shadow, /etc/passwd, private SSH keys, private certificate keys, .bash-history, local Appwrite cache files, and configuration files containing secrets such as database credentials in /proc/self/environ (Dubell Blog).

Exploitabilité

The vulnerability did not require authentication to exploit. However, exploitation required that the path APP_STORAGE_CERTIFICATES/.well-known/acme-challenge existed on the target system. According to Shodan.io data from December 2021, there were 562 servers running Appwrite that were potentially vulnerable (Dubell Blog).

Atténuation et solutions de contournement

The vulnerability was fixed in Appwrite version 0.12.2. Users should upgrade to this version or later to mitigate the issue. The fix involved correcting the path validation logic in the ACME-challenge endpoint (GitHub Release).

Ressources additionnelles


Source: Ce rapport a été généré à l’aide de l’IA

Apparenté PHP Vulnérabilités:

Identifiant CVE

Sévérité

Score

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

CVE-2026-107845CRITICAL9.3
  • PHP logoPHP
  • contao/comments-bundle
NonOuiOct 09, 2026
CVE-2026-107844MEDIUM5.3
  • PHP logoPHP
  • contao/core-bundle
NonOuiOct 09, 2026
CVE-2026-107851MEDIUM4.3
  • PHP logoPHP
  • contao/core-bundle
NonOuiOct 09, 2026
CVE-2026-107850MEDIUM4.3
  • PHP logoPHP
  • contao/core-bundle
NonOuiOct 09, 2026
CVE-2026-107848LOW3.5
  • PHP logoPHP
  • contao/core-bundle
NonOuiOct 09, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité dans le cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité pour évaluer votre niveau de risque et identifier les failles dans vos défenses.

Demander une évaluation

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités