{"id":"CVE-2026-52778","published":"2026-06-08T18:24:21Z","modified":"2026-06-09T15:56:22Z","title":"YesWiki has Unsafe eval() in Formula Calculator - Remote Code Execution (RCE) & Denial of Service (DoS)","vendor":"YesWiki","product":"yeswiki","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00941,"percentile":0.59379,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/YesWiki/yeswiki/security/advisories/GHSA-px5m-h76g-p7p8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/YesWiki/yeswiki/commit/dd2bd8fb099de0d21504bda8a810693b3fcb8e52","tags":["x_refsource_MISC"]},{"url":"https://github.com/YesWiki/yeswiki/releases/tag/v4.6.6","tags":["x_refsource_MISC"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":11.88},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"yeswiki","affectedVersions":[{"vendor":"YesWiki","product":"yeswiki","versions":["< 4.6.6"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-06-09T15:54:35.483833Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"yeswiki/yeswiki","vulnerableRanges":["<4.6.6"],"patched":["4.6.6"],"from":["GHSA-px5m-h76g-p7p8"],"provenance":"source"}],"summary":{"text":"The Bazar form field calculator (CalcField.php) in YesWiki, a PHP wiki system, passes user-defined mathematical formulas to PHP's eval() after sanitizing them with a complex recursive regular expression, and that sanitization is flawed. An unauthenticated remote attacker with network access and no user interaction needed can submit a crafted formula to trigger either a regex-based denial of service that crashes the server or a logic bypass that executes arbitrary PHP code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:26Z"},"euvd":{"id":"EUVD-2026-35181","exploited":false,"provenance":"source"}}