{"id":"CVE-2026-129873","kind":"vulnerability","aliases":["CVE-2026-129873"],"related":[],"title":"REBUILD: low-privilege users can escalate to administrator via file preview","description":"REBUILD 4.3.0 through 4.5.4 contains a privilege escalation vulnerability that allows low-privileged authenticated users to obtain a SYSTEM_USER token by requesting /commons/file-preview with an arbitrary src value. Attackers can read the leaked _csrfToken from the redirect Location header and send it as X-AuthToken to access the admin center and administrative APIs.","summary":"REBUILD 4.3.0 to 4.5.4: any logged-in user can request /commons/file-preview?src=<anything>. The 302 redirect URL carries a _csrfToken generated for SYSTEM_USER (no user is passed to the generator). Sent as the X-AuthToken header, the token gives SYSTEM_USER access to admin-center pages and APIs. A researcher PoC is public.","severity":"high","cvss":8.8,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"rebuild","fixed":["4.5.5"],"affected":">= 4.3.0, <= 4.5.4","ecosystem":"github"}],"ecosystems":[],"tags":["csrf-token","other","privilege-escalation","rebuild","self-hosted"],"not_affected_if":["version-outside-range"],"how_to_check":"- Check the REBUILD version (admin center, or the docker image tag getrebuild/rebuild:<tag>). 4.3.0 to 4.5.4 is affected per the researcher.\n- Search access logs for GET /commons/file-preview with a src that is not a record ID (e.g. /data/anything.txt), followed by requests carrying an X-AuthToken header and no session cookie, especially to /user/admin-verify or /admin/*.\n- Review admin and user changes made around those requests.","fix":"Upgrade to REBUILD 4.5.5 (released 2026-11-16, first release after the affected range). The release notes do not name this CVE, so treat the fix as unconfirmed until the maintainer says so.","status":"open","published_at":"2026-11-16T15:17:25+00:00","first_seen_at":"2026-11-16T15:37:53+00:00","triaged_at":"2026-11-16T15:40:02+00:00","updated_at":"2026-11-16T15:44:00+00:00","category":"other","confidence":0.7,"triage":{"at":"2026-11-16T15:40:02Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"network","title":"REBUILD: low-privilege users can escalate to administrator via file preview","impact":"high","summary":"REBUILD versions 4.3.0 through 4.5.4 let a logged-in low-privileged user request /commons/file-preview with an arbitrary src value and read a leaked CSRF token from the redirect Location header. The attacker then sends that token as X-AuthToken to reach the admin center and administrative APIs.","audience":"businesses","category":"other","nicknames":[],"who_cares":["rebuild","self-hosted"],"confidence":0.6,"fix_status":"unknown","needs_auth":"yes","worst_case":"attacker gains administrator access and administrative API control","analyst_note":"Find the fixed REBUILD version and vendor advisory; the NVD entry and VulnCheck advisory do not state a fix in the provided text.","how_to_check":"- Check the installed REBUILD version and see whether it falls in `4.3.0` through `4.5.4`\n- Look for the `/commons/file-preview` endpoint in web server or proxy logs with an arbitrary `src` parameter","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["version-outside-range"],"who_is_affected":"Teams running REBUILD in the affected range where low-privileged accounts exist. Exposure depends on users being able to log in; the sources do not state the fixed version or any setting that mitigates it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000728,"input_tokens":4616,"output_tokens":533,"severity_before":"high"},"analyst_status":"done","analyst_note":"Find the fixed REBUILD version and vendor advisory; the NVD entry and VulnCheck advisory do not state a fix in the provided text.","search":"'-129873':15A,18A '-2026':14A,17A '/commons/file-preview':42B,111C '302':45B '4.3.0':32B,88C '4.5.4':34B,90C 'access':74B,136C 'admin':77B,138C 'admin-cent':76B 'administr':9A,141C 'allow':97C 'api':81B,142C 'arbitrari':114C 'attack':117C 'authent':101C 'authtoken':67B,134C 'carri':48B 'center':78B,139C 'contain':91C 'csrf':21B 'csrf-token':20B 'csrftoken':50B,122C 'cve':13A,16A 'escal':7A,26B,94C 'file':11A 'generat':51B,61B 'give':71B 'header':68B,127C 'host':30B 'leak':121C 'locat':126C 'log':37B 'logged-in':36B 'low':3A,99C 'low-privileg':2A,98C 'obtain':104C 'page':79B 'pass':58B 'poc':84B 'preview':12A 'privileg':4A,25B,93C,100C 'privilege-escal':24B 'public':86B 'read':119C 'rebuild':1A,19A,27B,31B,87C 'redirect':46B,125C 'request':41B,110C 'research':83B 'self':29B 'self-host':28B 'send':129C 'sent':62B 'src':43B,115C 'system':53B,72B,106C 'token':22B,70B,108C 'url':47B 'user':5A,39B,54B,56B,73B,102C,107C 'valu':116C 'via':10A 'vulner':95C 'x':66B,133C 'x-authtoken':65B,132C","nicknames":[],"mitigations":[],"who_affected":"Teams running REBUILD in the affected range where low-privileged accounts exist. Exposure depends on users being able to log in; the sources do not state the fixed version or any setting that mitigates it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"none","audience":"businesses","plain_action":null,"pkeys":["rebuild"],"ptokens":["rebuild"],"labels":["csrftoken","high","other","privilegeescalation","rebuild","selfhosted"],"campaign_type":null,"search_a":"'-129873':15A,18A '-2026':14A,17A 'administr':9A 'cve':13A,16A 'escal':7A 'file':11A 'low':3A 'low-privileg':2A 'preview':12A 'privileg':4A 'rebuild':1A,19A 'user':5A 'via':10A","search_b":"'/commons/file-preview':42B '302':45B '4.3.0':32B '4.5.4':34B 'access':74B 'admin':77B 'admin-cent':76B 'api':81B 'authtoken':67B 'carri':48B 'center':78B 'csrf':21B 'csrf-token':20B 'csrftoken':50B 'escal':26B 'generat':51B,61B 'give':71B 'header':68B 'host':30B 'log':37B 'logged-in':36B 'page':79B 'pass':58B 'poc':84B 'privileg':25B 'privilege-escal':24B 'public':86B 'rebuild':27B,31B 'redirect':46B 'request':41B 'research':83B 'self':29B 'self-host':28B 'sent':62B 'src':43B 'system':53B,72B 'token':22B,70B 'url':47B 'user':39B,54B,56B,73B 'x':66B 'x-authtoken':65B","search_c":"'/commons/file-preview':111C '4.3.0':88C '4.5.4':90C 'access':136C 'admin':138C 'administr':141C 'allow':97C 'api':142C 'arbitrari':114C 'attack':117C 'authent':101C 'authtoken':134C 'center':139C 'contain':91C 'csrftoken':122C 'escal':94C 'header':127C 'leak':121C 'locat':126C 'low':99C 'low-privileg':98C 'obtain':104C 'privileg':93C,100C 'read':119C 'rebuild':87C 'redirect':125C 'request':110C 'send':129C 'src':115C 'system':106C 'token':108C 'user':102C,107C 'valu':116C 'vulner':95C 'x':133C 'x-authtoken':132C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T15:17:25+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":1,"sources":[{"source":"nvd","external_id":"CVE-2026-129873","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129873","severity":null,"published_at":"2026-11-16T15:17:25+00:00","modified_at":"2026-11-16T15:17:25+00:00","first_seen_at":"2026-11-16T15:37:53+00:00","fetched_at":"2026-11-16T15:37:53+00:00","note":null},{"source":"analyst","external_id":"CVE-2026-129873:4136","url":"https://vul.yulun.ac.cn/20261106/rebuild/","severity":null,"published_at":"2026-11-16T15:44:00+00:00","modified_at":"2026-11-16T15:44:00+00:00","first_seen_at":"2026-11-16T15:44:00+00:00","fetched_at":"2026-11-16T15:44:00+00:00","note":"Root cause read in researcher's report (Wu Yulun, with PoC script linked): FilePreviewer.getFileFullUrl calls generateCsrfToken without a user, so the token is SYSTEM_USER's; 302 Location leaks it; X-AuthToken then gives SYSTEM_USER admin access. Affected 4.3.0-4.5.4. Release 4.5.5 (2026-11-16, 3211f06) is the first after the range, but notes only say 'fix several known issues' and name no CVE; no vendor advisory found. Fix unconfirmed, nothing marked verified.","cites":["https://vul.yulun.ac.cn/20261106/rebuild/","https://github.com/getrebuild/rebuild/releases"]}],"documents":[{"id":170594,"url":"https://www.vulncheck.com/advisories/rebuild-4.3.0-through-4.5.4-privilege-escalation-via-commons-file-preview-csrf-token-leak","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"},{"id":170731,"url":"https://vul.yulun.ac.cn/20261106/rebuild/","title":"REBUILD Vulnerability Report (Wu Yulun)","kind":"advisory","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"poc","confidence":null,"note":null},{"id":170734,"url":"https://github.com/getrebuild/rebuild/releases","title":"getrebuild/rebuild releases (4.5.5, 4.5.4)","kind":"release","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"mentions","confidence":null,"note":null}],"disclosures":[],"exploit_sources":[{"type":"poc","url":"https://vul.yulun.ac.cn/20261106/rebuild/"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}