Skip to main content
Mallory
Critical

Unsafe eval() execution in YesWiki Bazar CalcField.php

IdentifiersCVE-2026-52778CWE-94· Improper Control of Generation of…

CVE-2026-52778 affects YesWiki, a PHP-based wiki system, in versions prior to 4.6.6. The vulnerability is in the Bazar form field calculator component, specifically CalcField.php, where user-supplied mathematical formulas are filtered using a complex recursive regular expression and then passed to PHP's eval() function. This design is unsafe for two reasons documented in the advisory: the recursive regex can be abused to trigger excessive backtracking or stack overflow conditions, causing Regular Expression Denial of Service, and the overall architecture relies on regex-based sanitization before eval(), so any bypass of that logic can directly result in arbitrary PHP code execution. The issue was fixed in YesWiki 4.6.6.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can cause full compromise of the affected application due to arbitrary PHP code execution, with resulting impacts to confidentiality, integrity, and availability. Separately, crafted input can trigger ReDoS or stack overflow conditions in the recursive regular expression processing, potentially crashing the server or making the application unavailable. The provided context indicates CVSS v3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible, reduce exposure of the Bazar form field calculator functionality, especially any paths that allow untrusted users to submit or modify calculator formulas. Restrict access to affected YesWiki instances, disable or avoid use of the vulnerable calculator feature where feasible, and monitor for anomalous requests that submit deeply nested or malicious formula expressions. Because the root issue is use of regex sanitization before eval(), mitigation is only partial until the patched version is deployed.

Remediation

Patch, then assume compromise.

Upgrade YesWiki to version 4.6.6 or later, which patches the vulnerable behavior in the Bazar calculator component. Apply the vendor fix associated with the referenced patch commit dd2bd8fb099de0d21504bda8a810693b3fcb8e52 and use the patched 4.6.6 release.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity5

Community discussion across Reddit, Mastodon, and other social sources.