Bucket MediaWiki extension CVE-2025-61766
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to wiki with edit rights
-
DeliverySubmit bucket query using '!=' comparator
-
ExploitTrigger infinite recursion in MemberOfExpression
-
ExecutionExhaust PHP call stack / memory
-
ImpactDenial of service on wiki backend
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Requires the Bucket MediaWiki extension at a version prior to 1.0.0 to be installed and the ability to submit a bucket query that uses the |
| Impact | This is a moderate-risk availability-only vulnerability (CVSS 6.5, vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) in the Bucket MediaWiki extension, where an authenticated user who submits a bucket query using the |
| Exploit ScenarioDerived | An authenticated user on a wiki running the Bucket extension authors or edits a page containing a bucket query that uses the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 09, 2026
Denial of service in the Bucket MediaWiki extension before 1.0.0 allows an authenticated user to exhaust PHP's call stack and/or memory by submitting a bucket query that uses the != (not-equal) comparator, triggering uncontrolled recursion (CWE-674) in the extension's MemberOfExpression class. The vulnerability is availability-only - CVSS 6.5 with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - and only affects wikis where the extension is enabled and the attacker holds an account with rights to create or edit content that executes bucket queries; version 1.0.0 and later are not affected. No public exploit code has been identified at time of analysis and EPSS is low (0.38%, 29th percentile), so this is a moderate-risk availability flaw rather than an actively exploited one.
RemediationAI
Vendor-released patch: 1.0.0 - upgrade the Bucket MediaWiki extension to version 1.0.0 or later; the fix is the commit 6f4a71d531cb802cdb991d2a4ca7bf8fb691defd, which re-creates the MemberOfExpression with = before applying NotExpression so toSql() no longer recurses. The vendor advisory at https://github.com/weirdgloop/mediawiki-extensions-Bucket/security/advisories/GHSA-r9f2-4jh3-659j should be consulted for the official upgrade guidance. If upgrading immediately is not possible, compensating controls are limited: because the trigger is the != comparator itself and there is no configuration switch to disable that single operator, the practical options are to temporarily disable the Bucket extension (removing its structured-data/query functionality for all users, an availability trade-off on the wiki itself) or to restrict the right to create or edit pages that embed bucket queries to highly trusted users (which narrows the PR:L attack surface but does not eliminate the flaw for those users). Monitoring wiki error logs for PHP stack-depth or memory-exhaustion errors coming from Bucket's expression classes can provide early warning, but it does not prevent the denial of service once a != query is submitted.
Affected ProductsAI
The affected component is the Bucket MediaWiki extension (repository weirdgloop/mediawiki-extensions-Bucket) at all versions prior to 1.0.0, distributed as a MediaWiki extension and evaluated within a MediaWiki installation. Wikis without the Bucket extension, and wikis running Bucket 1.0.0 or later, are not affected. The vulnerability is reachable only from a bucket query that uses the != (not-equal) comparator; queries that avoid that operator, or environments where untrusted users cannot create or edit content that executes bucket queries, are not exposed. The vendor advisory is GHSA-r9f2-4jh3-659j at https://github.com/weirdgloop/mediawiki-extensions-Bucket/security/advisories/GHSA-r9f2-4jh3-659j, with source references to https://github.com/weirdgloop/mediawiki-extensions-Bucket/blob/ad704120a1660b5929fb5825db1cf85c9c77acf4/includes/Expression/MemberOfExpression.php#L34 and the fixing commit https://github.com/weirdgloop/mediawiki-extensions-Bucket/commit/6f4a71d531cb802cdb991d2a4ca7bf8fb691defd.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Bucket is a MediaWiki extension that stores and retrieves structured data on wiki articles and evaluates query expressions against that data. Its expression layer, including the includes/Expression/MemberOfExpression.php class, builds SQL for field comparisons such as = and !=. In versions prior to 1.0.0, the != handling path wrapped the same MemberOfExpression instance inside a NotExpression and then called toSql() on it, so the negated expression re-entered the identical != branch indefinitely; because PHP has no tail-call elimination and a bounded call stack, each recursion level also consumes memory. That is the direct root cause mapped to CWE-674 (Uncontrolled Recursion). The upstream fix (commit 6f4a71d531cb802cdb991d2a4ca7bf8fb691defd, linked from the source reference MemberOfExpression.php#L34) reconstructs the expression with the plain = operator before wrapping it in NotExpression, so toSql() terminates. Exploitation requires only that the Bucket extension be installed at a pre-1.0.0 version and that a user with PR:L-level rights can submit a query containing the != comparator; no user interaction beyond the attacker's own query is needed, and no non-default configuration is required once the extension is enabled. The CVE lacks published CPE strings, but the affected artifact is the weirdgloop/mediawiki-extensions-Bucket repository prior to release 1.0.0.
Know when Mediawiki 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
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Network-reachable query requiring an authenticated editing user (PR:L) and no interaction; availability-only impact from recursion-driven crash, with no confidentiality or integrity effect.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
Bucket is a MediaWiki extension to store and retrieve structured data on articles. Prior to version 1.0.0, infinite recursion can occur if a user queries a bucket using the != comparator. This will result in PHP's call stack limit exceeding, and/or increased memory consumption, potentially leading to a denial of service. Version 1.0.0 contains a patch for the issue.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5, and 1.19.x before 1.19.11, when DjVu or PDF file upload support is
The MWOAuthDataStore::lookup_token function in Extension:OAuth for MediaWiki 1.25.x before 1.25.3, 1.24.x before 1.24.4,
An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. Rated critical severity (CVSS 9.8), thi
The admin API module in the QuizGame extension for MediaWiki through 1.37.2 (before 665e33a68f6fa1167df99c0aa18ed0157cdf
The SemanticDrilldown extension for MediaWiki through 1.37.2 (before e688bdba6434591b5dff689a45e4d53459954773) allows SQ
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely
An issue was discovered in the CentralAuth extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
An issue was discovered in the AbuseFilter extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this
api.php in MediaWiki before 1.27.4, 1.28.x before 1.28.3, and 1.29.x before 1.29.2 has a Reflected File Download vulnera
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foun
An issue was discovered in the FileImporter extension in MediaWiki through 1.36. Rated high severity (CVSS 8.8), this vu
NVD
CVE.org
EPSS
GitHub
Exploit-DB