{"id":"CVE-2026-104189","kind":"vulnerability","aliases":["CVE-2026-104189"],"related":[],"title":"Nextcloud 3D Viewer: password-protected shares readable by token alone","description":"The 3D Viewer for Nextcloud is a comprehensive 3D model viewer application for Nextcloud that supports multiple 3D file formats. In versions 1.7.9 through 3.3.1, the app's public file endpoint performed no share authorization. Anyone who knows a share token could read the shared file's contents even when the link share was protected by a password. `PublicFileController` extended `OCP\\AppFramework\\Controller` and marked its routes `#[PublicPage]`. Nextcloud only enforces share passwords through `PublicShareMiddleware`, which returns early for any controller that is not an `OCP\\AppFramework\\PublicShareController` instance — so no password, expiry, or share-type check ran for these routes. `ShareFileService::loadLinkShare()` compounded this by treating any token that `getShareByToken()` matched as authorised. A share token is the part of the URL that people paste into chats, emails, and tickets. Password protection exists precisely for the case where holding the token should not by itself grant access, and that guarantee did not hold. Requests to `GET /ocs/v2.php/apps/threedviewer/public/file/{token}/{fileId}` returned `200` with the full file body for password-protected shares, with no password and no session. Nextcloud's own share page correctly redirected such requests to the password prompt. Scope is limited to files in the formats this app handles (STL, GLB/glTF, OBJ, STEP, IFC, and the other supported 3D types). Non-3D files in the same share are unaffected. Expired shares returned `500` rather than leaking contents. This issue is fixed in 3.3.2. `PublicFileController` now extends `PublicShareController` and implements `isValidToken()`, `isPasswordProtected()`, and `getPasswordHash()`, delegating password and token validation to the framework and gaining brute-force throttling. `ShareFileService::findValidLinkShare()` additionally rejects share types other than link and email, rejects expired shares, and treats a `ShareNotFound` from the share manager as \"no share\" instead of letting it surface as a 500. As a workaround, disable the 3D Viewer app (`occ app:disable threedviewer`), or avoid relying on passwords to protect link shares that contain 3D model files, until you can upgrade.","summary":"The 3D Viewer app for Nextcloud exposes a public file endpoint that skips share authorization, so anyone holding a share token can download 3D model files even when the share is password-protected. An attacker gets the full contents of those files with no password and no session.","severity":"high","cvss":7.5,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["3d-viewer","nextcloud","package","self-hosted"],"not_affected_if":["app-not-installed","no-3d-files-in-shares","version-3.3.2-or-later"],"how_to_check":"- Run `occ app:list` on the Nextcloud server and look for `threedviewer` with a version between `1.7.9` and `3.3.1`\n- Check whether the app is installed and enabled at all with `occ app:info threedviewer`","fix":"- Upgrade the 3D Viewer for Nextcloud app to `3.3.2` or later\n- Until upgraded, disable the app with `occ app:disable threedviewer`, or stop relying on passwords to protect link shares that contain 3D model files","status":"open","published_at":"2026-10-27T16:17:28+00:00","first_seen_at":"2026-10-27T16:33:06+00:00","triaged_at":"2026-10-27T16:34:15+00:00","updated_at":"2026-10-27T16:34:15+00:00","category":"package","confidence":0.9,"triage":{"at":"2026-10-27T16:34:15Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade the 3D Viewer for Nextcloud app to `3.3.2` or later\n- Until upgraded, disable the app with `occ app:disable threedviewer`, or stop relying on passwords to protect link shares that contain 3D model files","reach":"internet","title":"Nextcloud 3D Viewer: password-protected shares readable by token alone","impact":"medium","summary":"The 3D Viewer app for Nextcloud exposes a public file endpoint that skips share authorization, so anyone holding a share token can download 3D model files even when the share is password-protected. An attacker gets the full contents of those files with no password and no session.","category":"package","nicknames":[],"who_cares":["nextcloud","self-hosted","3d-viewer"],"confidence":0.9,"needs_auth":"no","worst_case":"Attacker reads password-protected 3D model files using only a share token","analyst_note":"","how_to_check":"- Run `occ app:list` on the Nextcloud server and look for `threedviewer` with a version between `1.7.9` and `3.3.1`\n- Check whether the app is installed and enabled at all with `occ app:info threedviewer`","needs_analyst":false,"not_affected_if":["app-not-installed","version-3.3.2-or-later","no-3d-files-in-shares"],"who_is_affected":"Nextcloud servers with the 3D Viewer app installed in versions 1.7.9 through 3.3.1 and with link shares that contain 3D files (STL, GLB/glTF, OBJ, STEP, IFC and other supported formats). Non-3D files in the same share are not exposed, and expired shares return an error rather than contents. Servers without the app, or with it at 3.3.2 or later, can skip this.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000714,"input_tokens":3983,"output_tokens":632,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-104189':14A,17A '-2026':13A,16A '/ocs/v2.php/apps/threedviewer/public/file':233C '1.7.9':97C '200':237C '3.3.1':99C '3.3.2':312C '3d':2A,19B,27B,49B,76C,83C,92C,287C,291C,375C,393C '3d-viewer':18B '500':302C,369C 'access':223C 'addit':339C 'alon':11A 'anyon':42B,110C 'app':29B,101C,276C,377C,379C 'appframework':136C,161C 'applic':86C 'attack':61B 'author':40B,109C 'authoris':189C 'avoid':383C 'bodi':242C 'brute':334C 'brute-forc':333C 'case':213C 'chat':203C 'check':172C 'compound':179C 'comprehens':82C 'contain':392C 'content':65B,122C,306C 'control':137C,155C 'correct':259C 'could':116C 'cve':12A,15A 'deleg':323C 'disabl':373C,380C 'download':48B 'earli':152C 'email':204C,347C 'endpoint':36B,105C 'enforc':145C 'even':52B,123C 'exist':209C 'expir':299C,349C 'expiri':167C 'expos':32B 'extend':134C,315C 'file':35B,51B,68B,93C,104C,120C,241C,271C,292C,395C 'fileid':235C 'findvalidlinkshar':338C 'fix':310C 'forc':335C 'format':94C,274C 'framework':330C 'full':64B,240C 'gain':332C 'get':62B,232C 'getpasswordhash':322C 'getsharebytoken':186C 'glb/gltf':279C 'grant':222C 'guarante':226C 'handl':277C 'hold':43B,215C,229C 'host':25B 'ifc':282C 'implement':318C 'instanc':163C 'instead':362C 'ispasswordprotect':320C 'issu':308C 'isvalidtoken':319C 'know':112C 'leak':305C 'let':364C 'limit':269C 'link':126C,345C,389C 'loadlinkshar':178C 'manag':358C 'mark':139C 'match':187C 'model':50B,84C,394C 'multipl':91C 'nextcloud':1A,21B,31B,79C,88C,143C,254C 'non':290C 'non-3d':289C 'obj':280C 'occ':378C 'ocp':135C,160C 'packag':22B 'page':258C 'part':195C 'password':5A,58B,71B,132C,147C,166C,207C,245C,250C,265C,324C,386C 'password-protect':4A,57B,244C 'past':201C 'peopl':200C 'perform':106C 'precis':210C 'prompt':266C 'protect':6A,59B,129C,208C,246C,388C 'public':34B,103C 'publicfilecontrol':133C,313C 'publicpag':142C 'publicsharecontrol':162C,316C 'publicsharemiddlewar':149C 'ran':173C 'rather':303C 'read':117C 'readabl':8A 'redirect':260C 'reject':340C,348C 'reli':384C 'request':230C,262C 'return':151C,236C,301C 'rout':141C,176C 'scope':267C 'self':24B 'self-host':23B 'session':74B,253C 'share':7A,39B,45B,55B,108C,114C,119C,127C,146C,170C,191C,247C,257C,296C,300C,341C,350C,357C,361C,390C 'share-typ':169C 'sharefileservic':177C,337C 'sharenotfound':354C 'skip':38B 'step':281C 'stl':278C 'support':90C,286C 'surfac':366C 'threedview':381C 'throttl':336C 'ticket':206C 'token':10A,46B,115C,184C,192C,217C,234C,326C 'treat':182C,352C 'type':171C,288C,342C 'unaffect':298C 'upgrad':399C 'url':198C 'valid':327C 'version':96C 'viewer':3A,20B,28B,77C,85C,376C 'workaround':372C","nicknames":[],"mitigations":[],"who_affected":"Nextcloud servers with the 3D Viewer app installed in versions 1.7.9 through 3.3.1 and with link shares that contain 3D files (STL, GLB/glTF, OBJ, STEP, IFC and other supported formats). Non-3D files in the same share are not exposed, and expired shares return an error rather than contents. Servers without the app, or with it at 3.3.2 or later, can skip this.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-27T16:17:28+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-104189","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104189","severity":null,"published_at":"2026-10-27T16:17:28+00:00","modified_at":"2026-10-27T16:17:28+00:00","first_seen_at":"2026-10-27T16:33:06+00:00","fetched_at":"2026-10-27T16:33:06+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}