{"id":"CVE-2026-32759","published":"2026-03-19T23:31:51Z","modified":"2026-06-09T11:51:17Z","title":"File Browser TUS Negative Upload-Length Fires Post-Upload Hooks Prematurely","vendor":"filebrowser","product":"filebrowser","tier":"tail","description":{"text":"File Browser is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory. In versions on the 2.x branch prior to 2.33.8, the TUS resumable upload handler parses the Upload-Length header as a signed 64-bit integer without validating that the value is non-negative, allowing an authenticated user to supply a negative value that instantly satisfies the upload completion condition upon the first PATCH request. This causes the server to fire after_upload exec hooks with empty or partial files, enabling an attacker to repeatedly trigger any configured hook with arbitrary filenames and zero bytes written. The impact ranges from DoS through expensive processing hooks, to command injection amplification when combined with malicious filenames, to abuse of upload-driven workflows like S3 ingestion or database inserts. Even without exec hooks enabled, the negative Upload-Length creates inconsistent cache entries where files are marked complete but contain no data. All deployments using the TUS upload endpoint (/api/tus) are affected, with the enableExec flag escalating the impact from cache inconsistency to remote command execution. This feature has been disabled by default for all installations from v2.33.8 onwards, including for existent installations. To exploit this vulnerability, the instance administrator must turn on a feature and ignore all the warnings about known vulnerabilities.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02098,"percentile":0.82143,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/filebrowser/filebrowser/security/advisories/GHSA-ffx7-75gc-jg7c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/filebrowser/filebrowser/issues/5199","tags":["x_refsource_MISC"]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":16.43},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"filebrowser","affectedVersions":[{"vendor":"filebrowser","product":"filebrowser","versions":["< 2.33.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-20T16:47:43.694106Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/filebrowser/filebrowser/v2","vulnerableRanges":["<2.33.8","all versions"],"patched":["2.33.8"],"from":["GHSA-ffx7-75gc-jg7c","GO-2026-4713"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/filebrowser/filebrowser","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-4713"],"provenance":"source"}],"summary":{"text":"File Browser's TUS resumable upload handler (/api/tus) in the 2.x branch before 2.33.8 parses the Upload-Length header as a signed 64-bit integer without rejecting negative values. An authenticated user can exploit this by sending a negative length, which marks the upload complete on the first PATCH request and can trigger after_upload hooks with empty or partial files, though the attack requires an administrator to have enabled the exec feature and the instance to be running a vulnerable version.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:35Z"},"euvd":{"id":"EUVD-2026-13408","exploited":false,"provenance":"source"}}