Skip to content

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

CriticalCVSS 9.8 EPSS 0.80%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total
Technology
PHP

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
yeswiki(Packagist) < 4.6.6; = 4.2.3; = v4.1.0; = v4.1.1 +28 more 4.6.6 Fixed
yeswiki = < 4.6.6 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
yeswiki(Packagist) < 4.6.6 4.6.6
yeswiki(Packagist) = 4.2.3 No fix listed
yeswiki(Packagist) = v4.1.0 No fix listed
yeswiki(Packagist) = v4.1.1 No fix listed
yeswiki(Packagist) = v4.1.2 No fix listed
yeswiki(Packagist) = v4.1.3 No fix listed
yeswiki(Packagist) = v4.1.4 No fix listed
yeswiki(Packagist) = v4.1.5 No fix listed
yeswiki(Packagist) = v4.2.0 No fix listed
yeswiki(Packagist) = v4.2.1 No fix listed
yeswiki(Packagist) = v4.2.2 No fix listed
yeswiki(Packagist) = v4.2.4 No fix listed
yeswiki(Packagist) = v4.3 No fix listed
yeswiki(Packagist) = v4.3.1 No fix listed
yeswiki(Packagist) = v4.4.0 No fix listed
yeswiki(Packagist) = v4.4.1 No fix listed
yeswiki(Packagist) = v4.4.2 No fix listed
yeswiki(Packagist) = v4.4.3 No fix listed
yeswiki(Packagist) = v4.4.4 No fix listed
yeswiki(Packagist) = v4.4.5 No fix listed
yeswiki(Packagist) = v4.5.0 No fix listed
yeswiki(Packagist) = v4.5.1 No fix listed
yeswiki(Packagist) = v4.5.2 No fix listed
yeswiki(Packagist) = v4.5.3 No fix listed
yeswiki(Packagist) = v4.5.4 No fix listed
Show 8 more
ProductAffected versionsFixed in
yeswiki(Packagist) = v4.5.5 No fix listed
yeswiki(Packagist) = v4.6.0 No fix listed
yeswiki(Packagist) = v4.6.1 No fix listed
yeswiki(Packagist) = v4.6.2 No fix listed
yeswiki(Packagist) = v4.6.3 No fix listed
yeswiki(Packagist) = v4.6.4 No fix listed
yeswiki(Packagist) = v4.6.5 No fix listed
yeswiki = < 4.6.6 No fix listed

References