All vulnerabilities

Servers and applications

CVE-2026-104457

SQL injection in filtertags action via unescaped filterN parameter (backslash-escape breakout)

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

Description

The Bazar filtertags action concatenates unescaped filterN attributes into a raw SQL tags.value IN (...) clause. On MySQL with the default sql_mode (backslash-escapes enabled), a trailing-backslash token flips quote parity and lets an attacker inject a UNION subquery to exfiltrate arbitrary table data. On a default install (default_write_acl => '*') this is unauthenticated.

get_filtertags_parameters_recursive (tools/bazar/libs/tags.functions.php:99) quote-wraps each filterN token into $taglist, which is concatenated raw into tags.value IN (...) at tools/bazar/actions/filtertags.php:35. _convert($params['tags'], YW_CHARSET, true) is a passthrough on utf8mb4 (i18n.inc.php: if db_charset=='utf8mb4' return $text) - NOT an escape. There is no escaping/parameterization at the sink; LoadAll runs raw mysqli_query. Default sql_mode enables backslash-escapes, so a trailing \ on a token flips quote parity via the same backslash-escape technique.

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