# YesWiki has Unsafe eval() in its Formula Calculato, Leading to Remote Code Execution & Denial of Service

Critical severity, published 2026-07-09. Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Canonical URL: https://buzzphp.com/security/ghsa-px5m-h76g-p7p8 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical (CVSS 9.8) |
| Published | 2026-07-09 |
| Updated | 2026-07-09 |
| CVE | [CVE-2026-52778](https://nvd.nist.gov/vuln/detail/CVE-2026-52778) |
| GHSA | [GHSA-px5m-h76g-p7p8](https://github.com/advisories/GHSA-px5m-h76g-p7p8) |
| Weakness | CWE-94, CWE-1333 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| yeswiki/yeswiki | < 4.6.6 | 4.6.6 |

## What to do

Update yeswiki/yeswiki to 4.6.6 or later: composer update yeswiki/yeswiki.

Check which version you run with `composer show yeswiki/yeswiki`, and every affected package with `composer audit`.

## About this advisory

Summary

An unsafe execution vulnerability exists in the Bazar form field calculator (CalcField.php) of YesWiki. The application attempts to sanitize user-defined mathematical formulas using a complex recursive regular expression before passing them to the PHP eval() function. This implementation is inherently flawed: it is vulnerable to Regular Expression Denial of Service (ReDoS / Stack Overflow) which can crash the server, and it creates a high-risk architecture where any logic bypass directly results in arbitrary PHP code execution.

Details



## Links

- [GHSA-px5m-h76g-p7p8 on GitHub](https://github.com/advisories/GHSA-px5m-h76g-p7p8)
- [CVE-2026-52778 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-52778)
- [All Composer security advisories](https://buzzphp.com/security)
