Skip to main content

YesWiki CVE-2026-52778

| EUVDEUVD-2026-35181 CRITICAL
Code Injection (CWE-94)
2026-06-08 GitHub_M GHSA-px5m-h76g-p7p8
9.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Discover YesWiki Bazar form with CalcField
  2. Delivery
    Craft formula bypassing recursive regex validator
  3. Exploit
    Submit form entry over HTTP
  4. Execution
    Validator passes payload into eval()
  5. Persist
    PHP code executes as web server user
  6. Impact
    Establish 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

yeswiki < 4.6.6

Affected Packages

composer yeswiki/yeswiki fix: 4.6.6
euvd yeswiki fix: 4.6.6

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

Vendor (GitHub_M) PRIMARY 9.8 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

1
Patch available
Jun 08, 2026 - 20:01 EUVD

DescriptionCVE.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.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.1%
Top 83% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

CVE-2025-31131 HIGH POC
8.6 Apr 01

YesWiki is a wiki system written in PHP. Rated high severity (CVSS 8.6), this vulnerability is remotely exploitable, no

CVE-2025-46348 CRITICAL POC
10.0 Apr 29

YesWiki is a wiki system written in PHP. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitable

CVE-2024-51478 CRITICAL POC
9.1 Oct 31

YesWiki is a wiki system written in PHP. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable,

CVE-2025-46349 HIGH POC
7.6 Apr 29

YesWiki is a wiki system written in PHP. Rated high severity (CVSS 7.6), this vulnerability is remotely exploitable, no

CVE-2026-116205 MEDIUM POC
6.9 Oct 25

Unauthenticated server-side request forgery in YesWiki before 4.7.0 lets any remote visitor make the wiki server issue H

CVE-2025-46347 MEDIUM POC
5.8 Apr 29

YesWiki is a wiki system written in PHP. Rated medium severity (CVSS 5.8), this vulnerability is remotely exploitable, n

CVE-2025-46346 MEDIUM POC
6.3 Apr 29

YesWiki is a wiki system written in PHP. Rated medium severity (CVSS 6.3), this vulnerability is remotely exploitable, n

CVE-2025-52277 MEDIUM POC
6.1 Sep 09

Cross Site Scripting vulnerability in YesWiki v.4.54 allows a remote attacker to execute arbitrary code via a crafted pa

CVE-2018-1000641 CRITICAL
9.8 Aug 20

YesWiki version <= cercopitheque beta 1 contains a PHP Object Injection vulnerability in Unserialising user entered para

CVE-2026-104467 CRITICAL
9.2 Oct 02

Authorization bypass in YesWiki before 4.6.7 lets unauthenticated remote attackers call admin-only API routes when the i

CVE-2026-104445 HIGH
8.8 Oct 02

Unauthenticated attackers can delete or overwrite federated entries in YesWiki instances before 4.6.7 that have Activity

CVE-2026-116207 HIGH
8.8 Oct 25

Unauthenticated SQL injection in YesWiki's public Bazar entries search API allows a remote attacker to place a backtick-

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy