Skip to main content

Bucket MediaWiki extension CVE-2025-61766

MEDIUM
Uncontrolled Recursion (CWE-674)
2025-10-06 security-advisories@github.com
6.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to wiki with edit rights
  2. Delivery
    Submit bucket query using '!=' comparator
  3. Exploit
    Trigger infinite recursion in MemberOfExpression
  4. Execution
    Exhaust PHP call stack / memory
  5. Impact
    Denial 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 != (not-equal) comparator - this exact comparator is the trigger, per the description and the fix in MemberOfExpression.php. Exploitation is limited by needing an account with rights to create or edit content that executes bucket queries (CVSS PR:L); it does not affect wikis without the extension, wikis on 1.0.0 or later, or queries that avoid the != operator. No user interaction beyond the attacker's own query is required, and no special non-default configuration is needed once the extension is enabled.

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 != comparator triggers uncontrolled recursion (CWE-674), exhausting PHP's call stack and/or memory for a denial of service. The signals are internally consistent and point to low real-world urgency: EPSS is 0.38% (29th percentile), there is no CISA KEV listing, and no public exploit code is identified at time of analysis - so this is not a confirmed active threat. The low-privilege requirement (PR:L, an authenticated/editing user) and the fact that impact is confined to availability (C:N/I:N) further reduce priority. No SSVC decision data was supplied in the input. Net assessment: a legitimate but non-urgent, DoS-only issue that should be patched on a normal maintenance cadence rather than treated as an emergency; its already-niche footprint lowers priority further.

Exploit ScenarioDerived

An authenticated user on a wiki running the Bucket extension authors or edits a page containing a bucket query that uses the != comparator. When the query is parsed, MemberOfExpression recursively re-wraps itself without ever changing the operator, causing infinite recursion that crashes the PHP worker via stack-limit exhaustion or runaway memory use. No public proof-of-concept is identified at time of analysis, but the single-line root cause is visible in the public fix commit, making the trigger condition trivial to reconstruct.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

Vendor (github) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

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.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

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

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Rare
obscure, niche MediaWiki extension with tiny deployment footprint (Weird Gloop wikis)
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2014-1610 MEDIUM POC
6.0 Jan 30

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

CVE-2015-8009 CRITICAL POC
9.8 Jul 25

The MWOAuthDataStore::lookup_token function in Extension:OAuth for MediaWiki 1.25.x before 1.25.3, 1.24.x before 1.24.4,

CVE-2023-37303 CRITICAL POC
9.8 Jun 30

An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. Rated critical severity (CVSS 9.8), thi

CVE-2022-29906 CRITICAL POC
9.8 Apr 29

The admin API module in the QuizGame extension for MediaWiki through 1.37.2 (before 665e33a68f6fa1167df99c0aa18ed0157cdf

CVE-2022-29904 CRITICAL POC
9.8 Apr 29

The SemanticDrilldown extension for MediaWiki through 1.37.2 (before e688bdba6434591b5dff689a45e4d53459954773) allows SQ

CVE-2022-28206 CRITICAL POC
9.8 Mar 30

An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2022-28205 CRITICAL POC
9.8 Mar 30

An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2021-36128 CRITICAL POC
9.8 Jul 02

An issue was discovered in the CentralAuth extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this

CVE-2021-36126 CRITICAL POC
9.8 Jul 02

An issue was discovered in the AbuseFilter extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this

CVE-2017-8809 CRITICAL
9.8 Nov 15

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

CVE-2024-47849 HIGH POC
8.8 Oct 05

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foun

CVE-2021-36132 HIGH POC
8.8 Jul 02

An issue was discovered in the FileImporter extension in MediaWiki through 1.36. Rated high severity (CVSS 8.8), this vu

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