# CVE-2026-52778: YesWiki has Unsafe eval() in Formula Calculator - Remote Code Execution (RCE) & Denial of Service (DoS)

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-08T18:24:21.671Z
- Modified: 2026-10-06T22:10:00.247Z
- Also known as: GHSA-px5m-h76g-p7p8
- Weaknesses: CWE-94, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

YesWiki is a wiki system written in PHP. Prior to version 4.6.6, 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. Version 4.6.6 patches the issue.

(As written by CVE List.)

## Affected

- YesWiki yeswiki: < 4.6.6
- yeswiki/yeswiki (Packagist): before 4.6.6

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/YesWiki/yeswiki/security/advisories/GHSA-px5m-h76g-p7p8> (exploit, web)
- <https://github.com/YesWiki/yeswiki/commit/dd2bd8fb099de0d21504bda8a810693b3fcb8e52> (web)
- <https://github.com/YesWiki/yeswiki/releases/tag/v4.6.6> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52778> (advisory)
- <https://github.com/YesWiki/yeswiki> (package)

## Sources

- CVE List: [CVE-2026-52778](https://www.cve.org/CVERecord?id=CVE-2026-52778), CVE Terms of Use, modified 2026-06-09
- GitHub Advisory Database: [GHSA-px5m-h76g-p7p8](https://github.com/advisories/GHSA-px5m-h76g-p7p8), CC-BY-4.0, modified 2026-07-09
- NVD: [CVE-2026-52778](https://nvd.nist.gov/vuln/detail/CVE-2026-52778), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2026-52778 · Whole record: https://cve.day/CVE-2026-52778.json · Rebuilt by cve.day 2026-11-25T22:59:24.024Z
