CVE-2025-31131: Path Traversal allowing arbitrary read of files in Yeswiki

Published Apr 1, 2025
·
Updated

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 1. 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.css Similarly, contents of wakka.config.php can be read (which contains database password) using ..%2f..%2f..%2fwakka.config.php as 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.

Other sources

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.

MITRE

Affected Software

3 affected componentsFixes available
YesWiki YesWiki<4.5.2
composer/yeswiki/yeswiki<4.5.2
4.5.2
YesWiki YesWiki<4.5.2

Event History

Apr 1, 2025
CVE Published
via MITRE·02:56 PM
Data Sourced
via MITRE·02:56 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:31 PM
Apr 7, 2025
Exploit Published
12:00 AM
Known Exploited
05:47 PM

Frequently Asked Questions

1

What is the severity of CVE-2025-31131?

CVE-2025-31131 is classified as a medium severity vulnerability due to its potential for path traversal attacks.

2

How do I fix CVE-2025-31131?

To fix CVE-2025-31131, upgrade YesWiki to version 4.5.2 or later.

3

What type of attack does CVE-2025-31131 allow?

CVE-2025-31131 allows for path traversal attacks that enable unauthorized read access to server files.

4

Which versions of YesWiki are affected by CVE-2025-31131?

CVE-2025-31131 affects all versions of YesWiki prior to 4.5.2.

5

Is there a patch available for CVE-2025-31131?

Yes, a patch is available in YesWiki version 4.5.2 which addresses CVE-2025-31131.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203