Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDiscover YesWiki Bazar form with CalcField
-
DeliveryCraft formula bypassing recursive regex validator
-
ExploitSubmit form entry over HTTP
-
ExecutionValidator passes payload into eval()
-
PersistPHP code executes as web server user
-
ImpactEstablish web shell or exfiltrate data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a YesWiki instance running a version prior to 4.6.6 with the Bazar module enabled and at least one Bazar form configured to include a CalcField (calculator field) that is reachable by the attacker; the attacker must submit a form entry, which triggers formatValuesBeforeSave on CalcField.php. CVSS marks PR:N and UI:N, so no authentication or victim interaction is required in the default model, but real-world exploitability is limited by site-specific ACLs - installations that restrict Bazar form submission to logged-in users effectively require authentication, and installations with no CalcField in any form are not exposed. No special platform or OS is required beyond a standard PHP runtime hosting YesWiki. |
| Impact | CVSS 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) is consistent with the code path: any visitor able to submit a Bazar form entry triggers formatValuesBeforeSave and reaches the vulnerable eval. Whether PR:N is realistic depends on the deployment - many YesWiki Bazar forms are open to anonymous contributors, but some installations require login to edit, which would effectively raise the privilege requirement. EPSS and KEV data were not provided in the input, and no public exploit identified at time of analysis, so this is not (yet) confirmed actively exploited; however, the patch commit publicly diffs the vulnerable regex and the eval() sink, which is sufficient for a competent attacker to derive a working payload. The dual impact (RCE plus ReDoS DoS on the same surface) and the trivial attack complexity make this a high-priority patch for any internet-exposed YesWiki instance with form submission enabled. |
| Exploit ScenarioDerived | An unauthenticated visitor browses to a YesWiki Bazar form that includes a calculator (CalcField) input, submits a crafted formula string designed to slip past the recursive regex validator while still being valid PHP (for example, abusing a tokenization edge case in the operator/function pattern), and triggers formatValuesBeforeSave which calls eval() on the attacker-controlled string - executing arbitrary PHP as the web server user. The same endpoint can alternatively be hit with a deeply nested parenthesized payload to drive the recursive PCRE into a stack overflow and crash the PHP worker, achieving DoS without needing a validator bypass. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Remote code execution in YesWiki prior to 4.6.6 allows unauthenticated attackers to inject arbitrary PHP via the Bazar CalcField formula evaluator, which sanitizes input with a recursive regex before passing it to eval(). The same flawed regex is also vulnerable to ReDoS/stack overflow, enabling denial of service against the server. No public exploit identified at time of analysis, but the commit diff in 4.6.6 fully documents the vulnerable code path, lowering the bar for exploit development.
RemediationAI
Vendor-released patch: upgrade YesWiki to version 4.6.6 or later, which rewrites CalcField.php to use a tokenizer and recursive-descent parser with an explicit function whitelist instead of eval(); see release https://github.com/YesWiki/yeswiki/releases/tag/v4.6.6 and the fix commit https://github.com/YesWiki/yeswiki/commit/dd2bd8fb099de0d21504bda8a810693b3fcb8e52. If immediate upgrade is not possible, audit Bazar forms and remove or disable any CalcField (calculator) fields - this loses the calculation feature in those forms but eliminates the vulnerable code path entirely; alternatively, restrict form-submission permissions to authenticated trusted users via Bazar/YesWiki ACLs to reduce exposure, accepting that any authenticated form contributor remains a viable attacker. Place the application behind a WAF rule that rejects form field bodies containing PHP function-call patterns (e.g. backticks, $, ;, dollar-variable syntax) as a stopgap, noting this will produce false positives on legitimate text fields and is bypassable.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
YesWiki is a PHP-based collaborative wiki platform. The Bazar module's CalcField (tools/bazar/fields/CalcField.php) lets form designers embed mathematical formulas that are computed at save time. Pre-patch, the code built a heavily recursive PCRE pattern (using subroutine reference (?1)) to validate that input looks like a math expression, then concatenated the raw formula string directly into eval("\$value = $formula;"). This is a textbook CWE-94 (Improper Control of Generation of Code / Code Injection) pattern: any character class or grouping bug in the validator becomes direct PHP execution. Recursive PCRE patterns of this shape are also a known ReDoS class - pathological nesting can exhaust PCRE's backtrack/recursion stack and crash the PHP worker. The fix replaces the eval pipeline with a hand-written tokenizer and recursive-descent parser limited to an ALLOWED_FUNCTIONS whitelist (sin, cos, sqrt, etc.), eliminating both eval and the catastrophic regex.
Know when Yeswiki gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
YesWiki prior to version 4.6.6 contains a critical vulnerability allowing unauthenticated remote code execution, enabling attackers to completely compromise any affected server. While no public exploit code has been identified at time of analysis, the attack vector is network-accessible and requires minimal user interaction, making organizational risk severe. Immediate system remediation is required.
Primary remediation: upgrade to YesWiki 4.6.6 or later. If immediate upgrade is not feasible: restrict network access to Bazar CalcField endpoints to internal/authenticated users only; disable the Bazar module if not operationally required; implement Web Application Firewall rules to detect PHP code injection patterns in formula evaluator inputs; monitor application logs and error rates for signs of exploitation attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
YesWiki is a wiki system written in PHP. Rated high severity (CVSS 8.6), this vulnerability is remotely exploitable, no
YesWiki is a wiki system written in PHP. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitable
YesWiki is a wiki system written in PHP. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable,
YesWiki is a wiki system written in PHP. Rated high severity (CVSS 7.6), this vulnerability is remotely exploitable, no
Unauthenticated server-side request forgery in YesWiki before 4.7.0 lets any remote visitor make the wiki server issue H
YesWiki is a wiki system written in PHP. Rated medium severity (CVSS 5.8), this vulnerability is remotely exploitable, n
YesWiki is a wiki system written in PHP. Rated medium severity (CVSS 6.3), this vulnerability is remotely exploitable, n
Cross Site Scripting vulnerability in YesWiki v.4.54 allows a remote attacker to execute arbitrary code via a crafted pa
YesWiki version <= cercopitheque beta 1 contains a PHP Object Injection vulnerability in Unserialising user entered para
Authorization bypass in YesWiki before 4.6.7 lets unauthenticated remote attackers call admin-only API routes when the i
Unauthenticated attackers can delete or overwrite federated entries in YesWiki instances before 4.6.7 that have Activity
Unauthenticated SQL injection in YesWiki's public Bazar entries search API allows a remote attacker to place a backtick-
EUVD-2026-35181
GHSA-px5m-h76g-p7p8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB