Skip to main content

YesWiki CVE-2026-46670

| EUVDEUVD-2026-56150 CRITICAL
SQL Injection (CWE-89)
2026-05-22 https://github.com/YesWiki/yeswiki GHSA-jwvv-qr7q-cv8j
9.8
CVSS 3.1 · Vendor: https://github.com/YesWiki/yeswiki
View

Attack ChainAIDerived

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

  1. Recon
    Identify exposed YesWiki instance
  2. Delivery
    Craft POST to /?BazaR&vue=formulaire with SQL in imported-form key
  3. Exploit
    FormManager::create concatenates into INSERT
  4. Install
    MySQL evaluates injected expression
  5. C2
    Read result via /?api/forms
  6. Execute
    Iterate to dump yeswiki_users password hashes
  7. Impact
    Crack hashes offline for account takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

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

Exploitation Conditions

No special conditions - remote unauthenticated exploitation against default configurations of YesWiki 4.6.1, 4.6.2, or doryphore-dev (any version < 4.6.4); the vulnerable Bazar form-import endpoint /?BazaR&vue=formulaire is reachable without login on a stock install and no user interaction is required. The only practical limiting factors are network reachability of the YesWiki instance and that the backend must be a MySQL-compatible database supporting ASCII/SUBSTRING/HEX functions (which is YesWiki's standard configuration), plus the public /?api/forms endpoint must be accessible to read back the inferential output (the default).

Impact

All signals point to high real-world risk: CVSS 9.8 with vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H indicates remote, unauthenticated, low-complexity exploitation against default installs with full CIA impact, and a working Python PoC is already published in the upstream GHSA advisory. EPSS and CISA KEV status are not provided in the input, so widespread opportunistic exploitation cannot yet be confirmed; however, YesWiki is internet-exposed by design and the exfiltration of yeswiki_users.password hashes enables follow-on credential cracking and account takeover. This should be treated as a high-priority patch item for any internet-facing YesWiki deployment rather than a theoretical issue, given the trivial reachability and published exploit.

Exploit ScenarioDerived

An unauthenticated attacker on the internet sends a single crafted POST request to /?BazaR&vue=formulaire with a malicious imported-form key whose name contains a SQL expression such as 7791000+ASCII(SUBSTRING((SELECT HEX(CONCAT(email,0x3a,password)) FROM yeswiki_users LIMIT 1),1,1)). The server evaluates the expression inside the INSERT and stores the resulting integer as bn_id_nature, which the attacker retrieves via the public /?api/forms endpoint and subtracts the known base to recover each character; iterating yields full email/password-hash dumps. A working Python PoC (yeswiki_sqli_poc.py) is published in the GHSA advisory and automates the full extraction.

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

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

Alert me

AnalysisAIv1 – May 23, 2026

Unauthenticated SQL injection in YesWiki's Bazar form-import path allows any remote visitor to inject arbitrary SQL into an INSERT statement and exfiltrate the entire database, including yeswiki_users.password hashes. Affects YesWiki 4.6.1, 4.6.2, and the doryphore-dev branch prior to 4.6.4. Publicly available exploit code exists (a working Python PoC is published in the GHSA advisory), though no public exploit identified in CISA KEV at time of analysis.

RemediationAI

Upgrade YesWiki to version 4.6.4 or later, which contains the upstream fix per GHSA-jwvv-qr7q-cv8j (https://github.com/YesWiki/yeswiki/security/advisories/GHSA-jwvv-qr7q-cv8j); composer users should run composer update yeswiki/yeswiki to pull >=4.6.4. If immediate patching is not possible, restrict network access to the YesWiki instance (for example, place it behind authentication at the reverse-proxy or VPN layer) and block POST requests to /?BazaR&vue=formulaire at a WAF, accepting that this will disable legitimate form-import functionality for unauthenticated users. After patching, rotate all yeswiki_users credentials and force password resets, since password hashes may already have been exfiltrated and are subject to offline cracking.

Affected VersionsENISA

yeswiki < 4.6.4

Affected Packages

composer yeswiki/yeswiki fix: 4.6.4
euvd yeswiki fix: 4.6.4

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 provides structured form/data management. The vulnerability is a classic CWE-89 SQL Injection caused by unquoted string concatenation of the user-controlled bn_id_nature parameter into an INSERT VALUES clause inside FormManager::create() (tools/bazar/services/FormManager.php line 258, analyzed against commit 1f485c0). Because the value is concatenated as a numeric expression rather than bound as a parameter, MySQL evaluates injected sub-expressions like ASCII(SUBSTRING((SELECT HEX(...)),1,1)) server-side and stores the resulting integer in the bn_id_nature column, enabling a boolean/inferential exfiltration channel readable via the public /?api/forms endpoint. The affected package per CPE is pkg:composer/yeswiki/yeswiki.

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.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (https://github.com/YesWiki/yeswiki) · only source for this CVE.

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

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

DescriptionCVE.org

Summary

An unauthenticated SQL injection in the Bazar form-import path (FormManager::create()) allows any unauthenticated visitor of a default YesWiki install to inject arbitrary SQL into an INSERT statement and read the full database, including yeswiki_users.password hashes. Present in 4.6.1 / 4.6.2 / current doryphore-dev; analyzed against upstream commit 1f485c049db030b94c047ec219e63534ac81142e.

Details

Sink is at FormManager::create() (function at L232), unquoted concatenation of bn_id_nature into the INSERT VALUES list at https://github.com/YesWiki/yeswiki/blob/1f485c049db030b94c047ec219e63534ac81142e/tools/bazar/services/FormManager.php#L258

Reachability is unauthenticated.

PoC

  1. Clone the repo (test was done on 1f485c049db030b94c047ec219e63534ac81142e)
  2. Bring up the service using docker: cd docker && docker compose build && docker compose up
  3. Go to https://localhost:8085
  4. Go through the installation
  5. Run the POC:

yeswiki_sqli_poc.py

<img width="672" height="54" alt="image" src="https://github.com/user-attachments/assets/fc9a9adf-7d09-442b-bcc1-8edf1bdcf0a1" />

Impact

Sql injection. An attacker can dump the whole db, including usernames, emails, and hashed passwords.

More details

Sample http request (copied from burp):

POST /?BazaR&vue=formulaire HTTP/1.1
Accept-Encoding: gzip, deflate, br
Content-Length: 353
Host: localhost:8085
User-Agent: Python-urllib/3.13
Content-Type: application/x-www-form-urlencoded
Connection: keep-alive

imported-form%5B7791000%2BASCII%28SUBSTRING%28%28SELECT%2F%2A%2A%2FHEX%28CONCAT%28email%2C0x3a%2Cpassword%29%29%2F%2A%2A%2FFROM%2F%2A%2A%2Fyeswiki_users%2F%2A%2A%2FLIMIT%2F%2A%2A%2F1%29%2C1%2C1%29%29%5D=%7B%22bn_label_nature%22%3A+%22zz_poc_7790000_1%22%2C+%22bn_template%22%3A+%22%22%2C+%22bn_description%22%3A+%22%22%2C+%22bn_condition%22%3A+%22%22%7D
POC internals:

The PoC uses an expression like: 7330000 + ASCII(SUBSTRING((SELECT HEX(VERSION())), 1, 1))

Breakdown SELECT HEX(VERSION()) or whatever the statement is (the poc file dumps 1 username and password) This gets the database version and hex-encodes it. Example:

VERSION()      = 9.7.0
HEX(VERSION()) = 392E372E30

Then: SUBSTRING((SELECT HEX(VERSION())), 1, 1) takes one character from that hex string. For position 1, this returns 3, then: ASCII(...) converts that character to its ASCII code: ASCII('3') = 51 Then: 7330000 + 51 produces 7330051 So the full vulnerable insert becomes roughly:

INSERT INTO yeswiki_nature (..., bn_id_nature, ...)
VALUES (7330000 + ASCII(SUBSTRING((SELECT HEX(VERSION())), 1, 1)), "fr-FR", ...);

MySQL evaluates the expression before storing it, so the inserted row has: bn_id_nature = 7330051 The PoC reads that ID from /?api/forms, subtracts 7330000, gets 51, converts 51 back to '3', and repeats for the next character.

Executive ViewAI

Why It Matters

YesWiki versions 4.6.1 and 4.6.2 contain a critical unauthenticated SQL injection vulnerability in the form-import function that allows any internet-connected attacker to exfiltrate the entire database, including user password hashes, without authentication. No vendor patch is currently available, exposing all affected installations to immediate compromise. Organizations running these versions face material risk of complete data breach and credential theft.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy Web Application Firewall rules to block requests to form-import path; (2) restrict network access to YesWiki instances via IP whitelisting or VPN requirement; (3) disable form-import feature if operationally feasible; (4) implement detailed access logging and monitor for SQL injection patterns; (5) prepare credential rotation and breach notification procedures.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
5 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.0%
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
Yes
Human Impact
Very High

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

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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