8.6high
Path Traversal allowing arbitrary read of files in Yeswiki
- Severity
- 8.6high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 5.58% (higher than 93% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-w34w-fvp3-68xm
Description
YesWiki is a wiki system written in PHP. The squelette parameter is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server. This vulnerability is fixed in 4.5.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| YesWiki yeswiki | < 4.5.2, before 4.5.2 | CVE List, NVD |
| yeswiki/yeswiki (Packagist) | before 4.5.2 | GitHub Advisory Database |
All scores
| GitHub_M | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
YesWiki is a wiki system written in PHP. The squelette parameter is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server. This vulnerability is fixed in 4.5.2.
GitHub Advisory Database
Summary
The squelette parameter is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server. The payload ../../../../../../etc/passwd was submitted in the squelette parameter. The requested file was returned in the application's response.
Details
File path traversal vulnerabilities arise when user-controllable data is used within a filesystem operation in an unsafe manner. Typically, a user-supplied filename is appended to a directory prefix in order to read or write the contents of a file. If vulnerable, an attacker can supply path traversal sequences (using dot-dot-slash characters) to break out of the intended directory and read or write files elsewhere on the filesystem.
PoC
-
Access the below URL to see the contents of
/etc/passwd: URL with payload:https://yeswiki.net/?UrkCEO/edit&theme=margot&squelette=..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd&style=margot.cssSimilarly, contents of
wakka.config.phpcan be read (which contains database password) using..%2f..%2f..%2fwakka.config.phpas payload. Thus showing the severity of this issue.
Impact
This is a very serious vulnerability, allowing an attacker to access sensitive files containing configuration data, passwords, database records, log data, source code, and program scripts and binaries. Thus, leading to complete loss of confidentiality.
NVD (es)
YesWiki es un sistema wiki escrito en PHP. El parámetro squelette es vulnerable a ataques de Path Traversal, lo que permite el acceso de lectura a archivos arbitrarios en el servidor. Esta vulnerabilidad se corrigió en la versión 4.5.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-31131 changed 2025-04-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w34w-fvp3-68xm changed 2025-04-01 | CC-BY-4.0 |
| NVD | CVE-2025-31131 changed 2026-06-17 | Public domain |