CVE-2026-52778
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedYesWiki 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceYesWiki versions prior to 4.6.6 contain an unsafe execution vulnerability in the Bazar form field calculator (CalcField.php). The application uses a complex recursive regular expression to sanitize user-defined mathematical formulas before passing them to PHP's eval() function. This approach is fundamentally flawed—it is vulnerable to ReDoS/Stack Overflow attacks that can crash the server, and any bypass of the sanitization logic enables arbitrary PHP code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Locate the YesWiki installation directoryIdentify the web-accessible directory where YesWiki is installed. Common paths include /var/www/html/, /home/*/public_html/, or check your web server configuration.Affected if The installation directory contains YesWiki files.
-
Identify the installed YesWiki versionCheck for a version indicator in the root directory - look for a version.php, index.php, or a hidden .git directory that may contain version information. Many YesWiki installations include a tools/备/info.json or similar version file.Affected if The installed version is prior to 4.6.6 (or cannot be determined to be 4.6.6 or later).
-
Locate CalcField.php in the installationSearch for the file CalcField.php within the YesWiki installation. Common paths include tools/bazar/fields/ or tools/ if it exists.Affected if CalcField.php exists in the installation.
-
Verify the vulnerable eval() pattern in CalcField.phpOpen CalcField.php and search for the presence of eval() function calls used to execute mathematical formulas. Look for code that passes user-controlled input to eval() after regex sanitization.Affected if CalcField.php contains eval() used to execute sanitized mathematical formulas (indicating the unsafe pattern described).
-
Determine if Bazar form calculator is accessibleCheck if Bazar form functionality is enabled and accessible on the YesWiki site. This typically involves checking if the Bazar tool is installed and if form fields with calculator capabilities can be created or accessed.Affected if Bazar form field calculator functionality is enabled and accessible to users.
If the installed YesWiki version is below 4.6.6, CalcField.php with unsafe eval() exists, and Bazar calculator functionality is accessible, the environment is affected by this vulnerability.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade YesWiki to version 4.6.6 or later to patch the unsafe eval() vulnerability. Until patched, restrict access to Bazar form functionality and monitor for unusual server behavior or ReDoS attack patterns.
YesWiki version 4.6.6
- 1. Back up your current YesWiki installation including all files, database, and configuration.
- 2. Check your current YesWiki version (typically in the wiki or a version file).
- 3. If running a version prior to 4.6.6, download YesWiki version 4.6.6 from the official repository or release channel.
- 4. Replace the existing YesWiki files with the new version 4.6.6 files, preserving your configuration and data files.
- 5. Clear any caches if your installation uses caching.
- 6. Verify the upgrade by checking that CalcField.php has been updated and the vulnerable code is removed.
- 7. Test that Bazar form field calculator functionality works correctly with the patch applied.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-52778 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-52778 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data