Yeswiki
Path Traversal allowing arbitrary read of files in Yeswiki
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.5.2
Fixed in 4.5.2
Mitigation
Upgrade yeswiki to 4.5.2 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 23 h after publication; not in CISA KEV. First PoC: nuclei template: Yeswiki < 4.5.2 - Unauthenticated Path Traversal (nuclei template, 2 Apr 2025).
PoC repositories
Found on GitHub.3 PoCs · 2 pending
PoCs 3
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| MuhammadWaseem29/CVE-2025-31131 | 4 Apr 2025 +3 d | backfilled | 2 | PoC |
| gmh5225/Blackash-CVE-2025-31131 | 7 Jun 2025 +67 d | backfilled | 0 | PoC |
| alinaclark672377250/CVE-2025-31131 | 13 Nov 2026 +1.6 y | 14 Nov 2026 | 0 | PoC |
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| B1ack4sh/Blackash-CVE-2025-31131 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| nak000/CVE-2025-31131-RCE | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | YesWiki 4.5.1 - Unauthenticated Path Traversal | 7 Apr 2025 | 14 Nov 2026 |
| nuclei template | nuclei template: Yeswiki < 4.5.2 - Unauthenticated Path Traversal | 2 Apr 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 3 PoC reposGET /
- Query
UrkCEO/edit=theme=margotsquelette=../../../../../../../../etc/passwdstyle=margot.csssquelette=- Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7Accept: */*Accept-Language: en-US,en;q=0.9Priority: u=0, iSec-Ch-Ua: "Chromium";v="133", "Not(A:Brand";v="99"Sec-Ch-Ua-Mobile: ?0Sec-Ch-Ua-Platform: "Windows"Sec-Fetch-Dest: documentSec-Fetch-Mode: navigateSec-Fetch-Site: noneSec-Fetch-User: ?1Upgrade-Insecure-Requests: 1- PoC User-Agent
Mozilla/5.0Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36- Seen in
- 3 repos: MuhammadWaseem29/CVE-2025-31131, alinaclark672377250/CVE-2025-31131, gmh5225/Blackash-CVE-2025-31131
- Evidence
- MuhammadWaseem29/CVE-2025-31131/README.md:25 MuhammadWaseem29/CVE-2025-31131/exploit.py:45 alinaclark672377250/CVE-2025-31131/README.md:25 alinaclark672377250/CVE-2025-31131/exploit.py:45 gmh5225/Blackash-CVE-2025-31131/CVE-2025-31131.py:45 gmh5225/Blackash-CVE-2025-31131/README.md:24
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/\?(?:.*&)?UrkCEO/edit=.*theme=margot.*squelette=\.\./\.\./\.\./\.\./\.\./\.\./\.\./\.\./etc/passwd.*style=margot\.css.*squelette=
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-31131 YesWiki yeswiki exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"UrkCEO/edit="; http.uri; content:"theme=margot"; http.uri; content:"squelette=../../../../../../../../etc/passwd"; http.uri; content:"style=margot.css"; http.uri; content:"squelette="; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,image/avif,image/webp,image/apng,*/*|3b|q=0.8,application/signed-exchange|3b|v=b3|3b|q=0.7"; nocase; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.9"; nocase; http.header; content:"Priority: u=0, i"; nocase; http.header; content:"Sec-Ch-Ua: |22|Chromium|22||3b|v=|22|133|22|, |22|Not(A:Brand|22||3b|v=|22|99|22|"; nocase; http.header; content:"Sec-Ch-Ua-Mobile: ?0"; nocase; http.header; content:"Sec-Ch-Ua-Platform: |22|Windows|22|"; nocase; http.header; content:"Sec-Fetch-Dest: document"; nocase; http.header; content:"Sec-Fetch-Mode: navigate"; nocase; http.header; content:"Sec-Fetch-Site: none"; nocase; http.header; content:"Sec-Fetch-User: ?1"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2025-31131; classtype:web-application-attack; sid:9217574; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: YesWiki yeswiki exploit attempt (CVE-2025-31131)
id: gg-pocmon-cve-2025-31131-9217574
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-31131. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-31131
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-query|contains|all:
- 'UrkCEO/edit='
- 'theme=margot'
- 'squelette=../../../../../../../../etc/passwd'
- 'style=margot.css'
- 'squelette='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.31131