CVE-2025-14388
JSON

9.8critical

PhastPress <= 3.7 - Unauthenticated Arbitrary File Read via Null Byte Injection

Severity
9.8critical CVSS:3.1 by Wordfence
Exploit likelihood
0.52% (higher than 45% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Wordfence

Description

The PhastPress plugin for WordPress is vulnerable to Unauthenticated Arbitrary File Read via null byte injection in all versions up to, and including, 3.7. This is due to a discrepancy between the extension validation in `getExtensionForURL()` which operates on URL-decoded paths, and `appendNormalized()` which strips everything after a null byte before constructing the filesystem path. This makes it possible for unauthenticated attackers to read arbitrary files from the webroot, including wp-config.php, by appending a double URL-encoded null byte (%2500) followed by an allowed extension (.txt) to the file path.

Affected

Product or packageVersionsReported by
kiboit PhastPressup to 3.7CVE List

Classification

CWE-158

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

The PhastPress plugin for WordPress is vulnerable to Unauthenticated Arbitrary File Read via null byte injection in all versions up to, and including, 3.7. This is due to a discrepancy between the extension validation in `getExtensionForURL()` which operates on URL-decoded paths, and `appendNormalized()` which strips everything after a null byte before constructing the filesystem path. This makes it possible for unauthenticated attackers to read arbitrary files from the webroot, including wp-config.php, by appending a double URL-encoded null byte (%2500) followed by an allowed extension (.txt) to the file path.

NVD (es)

El plugin PhastPress para WordPress es vulnerable a Lectura arbitraria de archivos sin autenticación mediante inyección de byte nulo en todas las versiones hasta la versión 3.7 incluida. Esto se debe a una discrepancia entre la validación de la extensión en getExtensionForURL() que opera sobre rutas decodificadas de URL, y appendNormalized() que elimina todo lo que sigue a un byte nulo antes de construir la ruta del sistema de archivos. Esto permite a atacantes no autenticados leer archivos arbitrarios desde la raíz web, incluido wp-config.PHP, añadiendo un byte nulo doblemente codificado en URL (%2500) seguido de una extensión permitida (.txt) a la ruta del archivo.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-14388 changed 2026-04-08CVE Terms of Use
NVDCVE-2025-14388 changed 2026-10-19Public domain