---
id: "CVE-2026-129873"
page: "https://infrastack.ai/live/CVE-2026-129873"
kind: "vulnerability"
aliases: ["CVE-2026-129873"]
title: "REBUILD: low-privilege users can escalate to administrator via file preview"
severity: "high"
cvss: 8.8
epss: null
exploited: false
status: "open"
category: "other"
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"]
published_at: "2026-11-16T15:17:25+00:00"
first_seen_at: "2026-11-16T15:37:53+00:00"
updated_at: "2026-11-16T15:44:00+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129873", "first_seen_at": "2026-11-16T15:37:53+00:00"}, {"source": "analyst", "url": "https://github.com/getrebuild/rebuild/releases", "first_seen_at": "2026-11-16T15:44:00+00:00", "cites": ["https://github.com/getrebuild/rebuild/releases", "https://vul.yulun.ac.cn/20261106/rebuild/"]}]
exploit_sources: [{"type": "poc", "url": "https://vul.yulun.ac.cn/20261106/rebuild/"}]
---

# REBUILD: low-privilege users can escalate to administrator via file preview

Link for people: https://infrastack.ai/live/CVE-2026-129873 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- github:rebuild affected >= 4.3.0, <= 4.5.4 fixed 4.5.5

## 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.
- 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/*.
- 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.

## Timeline

- 2026-11-16T15:37:53+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129873
- 2026-11-16T15:44:00+00:00 analyst https://github.com/getrebuild/rebuild/releases — 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.

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/rebuild-4.3.0-through-4.5.4-privilege-escalation-via-commons-file-preview-csrf-token-leak
- [mentions] getrebuild/rebuild releases (4.5.5, 4.5.4) https://github.com/getrebuild/rebuild/releases
- [poc] REBUILD Vulnerability Report (Wu Yulun) https://vul.yulun.ac.cn/20261106/rebuild/

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
