CVE-2025-31131
PHP vulnerability analysis and mitigation

Overview

YesWiki, a PHP-based wiki system, was found to contain a path traversal vulnerability (CVE-2025-31131) in version 4.5.1 and earlier. The vulnerability was discovered in the squelette parameter, which allowed unauthorized read access to arbitrary files on the server. This security issue was fixed in version 4.5.2 (GitHub Advisory).

Technical details

The vulnerability exists due to improper validation of the squelette parameter in file operations. An attacker could use path traversal sequences (using dot-dot-slash characters) to break out of the intended directory and access files elsewhere on the filesystem. The vulnerability has been assigned a CVSS v3.1 base score of 8.6 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N, indicating it can be exploited remotely without requiring privileges or user interaction (GitHub Advisory).

Impact

The vulnerability allows attackers to access sensitive files containing configuration data, passwords, database records, log data, source code, and program scripts and binaries. For example, attackers could access critical files like /etc/passwd and wakka.config.php, which contains database credentials, leading to a complete loss of confidentiality (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in YesWiki version 4.5.2. The patch implements proper input validation and path sanitization for the squelette parameter, preventing path traversal attempts (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management