{"id":"CVE-2026-52778","summary":"YesWiki has Unsafe eval() in Formula Calculator - Remote Code Execution (RCE) & Denial of Service (DoS)","details":"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.","aliases":["GHSA-px5m-h76g-p7p8"],"modified":"2026-07-08T08:13:45.765722025Z","published":"2026-06-08T18:24:21.671Z","database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52778.json","cwe_ids":["CWE-1333","CWE-94"]},"references":[{"type":"WEB","url":"https://github.com/YesWiki/yeswiki/releases/tag/v4.6.6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52778.json"},{"type":"ADVISORY","url":"https://github.com/YesWiki/yeswiki/security/advisories/GHSA-px5m-h76g-p7p8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52778"},{"type":"FIX","url":"https://github.com/YesWiki/yeswiki/commit/dd2bd8fb099de0d21504bda8a810693b3fcb8e52"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yeswiki/yeswiki","events":[{"introduced":"0"},{"fixed":"dd2bd8fb099de0d21504bda8a810693b3fcb8e52"},{"fixed":"fa81922f4103630911cbea98ead3c4b7bc786e19"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"4.6.6"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v4.6.5","v4.6.4","v4.6.3","v4.6.2","v4.6.0","v4.5.5","v4.5.4","v4.5.3","v4.5.2","v4.5.1","v4.4.3","v4.4.2","v4.4.1","v4.4.0","v4.3.1","v4.3.0","v4.2.2","v4.2.1","v4.2.0","v4.1.5","v4.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52778.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}