All vulnerabilities

Servers and applications

CVE-2026-104456

Second-order SQL injection in AclService::updateRequestWithACL via unescaped username in read-ACL LIKE clause

Severity
High 7.6
Published
1 Sept 2026
Last changed
7 Oct 2026
Added to UpHeron
3 Nov 2026
Fixed in
4.6.7
Exploit chance
0.3% in the next 30 daysHigher than 22% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
SQL injection (CWE-89)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change some data · Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
Also known as
GHSA-6rw5-62xf-q5xp
Sources
Project advisories (GitHub)

Description

A self-registered, low-privilege user can achieve second-order (stored) SQL injection in YesWiki's ACL read-filter builder. The user chooses an account name containing a double-quote character; the ACL read-filter builder later concatenates that name RAW into a list LIKE "%%" clause, while the sibling owner branch in the same function IS escaped. Every non-admin ACL-filtered listing (bazar list, page-tag listing) then executes attacker-controlled SQL as a read oracle, and the injection also enables a read-ACL bypass (exposure of read-restricted pages).

AclService::updateRequestWithACL() (includes/services/AclService.php) builds a WHERE fragment for non-admins. At line 371 it emits:

where $acl derives from $userName = $user['name'] (line 328), reloaded RAW from the DB. The sibling owner branch at line 385 correctly applies dbService->escape(...) (owner = _utf8'...') — a clear escape-one-branch-not-the-other asymmetry.

From YesWiki/yeswiki's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
YesWikiServers and applications · github:yeswiki/yeswiki
  • Every version before 4.6.7

About YesWiki

Free wiki-style software for building online sharing and collaboration platforms

From Wikidata, CC0 1.0.
GitHub stars
139GitHub, 15 Nov 2026
Forks
75GitHub, 15 Nov 2026
Latest release
v4.7.2GitHub, 15 Nov 2026
Released
1 Nov 2026GitHub
License
AGPL-3.0GitHub
Written in
PHPWikidata
First released
2009Wikidata
First published on GitHub
9 Sept 2009GitHub

References