PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2026-35604: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-35604 is an incorrect authorization vulnerability in File Browser, a web-based file management interface, that allows unauthenticated users to access share links even after the share owner's permissions have been revoked by an administrator. The vulnerability affects all versions of github.com/filebrowser/filebrowser/v2 prior to 2.63.1 (confirmed against v2.62.2, commit 860c19d). It was published on April 4, 2026, by researcher kodareef5 via GitHub Security Advisory GHSA-v9w4-gm2x-6rvf, and assigned CVE-2026-35604 on April 7, 2026. The CVSS v3.1 base score is 8.1 (High) and the CVSS v4.0 base score is 8.2 (High) (Github Advisory).

Technical details

The root cause is CWE-863 (Incorrect Authorization): the public share download handler (withHashFile in http/public.go) verifies that the share link and associated user exist, but does not re-validate whether the share owner still holds the required Share and Download permissions at access time. In contrast, the share creation handler (withPermShare in http/share.go) correctly enforces these permissions. This means that once a share link is created, it persists as a valid, unauthenticated access path regardless of subsequent permission revocations by an admin. The attack requires no authentication and only requires possession of a previously issued share link hash, which may have been distributed to external parties (Github Advisory, Fix PR).

Impact

Successful exploitation allows any unauthenticated user with knowledge of a share link to download files from the File Browser instance, even after an administrator has explicitly revoked the share owner's permissions. This creates a false sense of security for administrators who believe that revoking permissions terminates all active sharing. The confidentiality impact is high, as sensitive files within the shared scope remain exposed; integrity and availability are not directly impacted by this vulnerability. The vulnerability is classified in the same class as the previously disclosed GHSA-68j5-4m99-w9w9 (Github Advisory).

Exploitability

A complete, runtime-verified proof-of-concept (PoC) using curl commands is publicly available in the GitHub Security Advisory, demonstrating the full exploit flow against v2.62.2. The EPSS score is approximately 0.069% (21st percentile), indicating a low but non-zero probability of exploitation in the wild within 30 days. There is no current evidence of active in-the-wild exploitation, no known threat actor attribution, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Github Advisory).

Exploitation steps

  1. Reconnaissance: Identify a publicly accessible File Browser instance running a version prior to 2.63.1. Instances are often self-hosted and may be discoverable via Shodan or Censys by searching for the File Browser web interface.
  2. Obtain a share link: Acquire a previously distributed share link hash (e.g., from email, chat, or public postings). The hash is the short token appended to the public download URL (e.g., fB4Qwtsn).
  3. Attempt unauthenticated access: Send an unauthenticated HTTP GET request to the public download endpoint using the known hash:
    curl http://<target>:<port>/api/public/dl/<hash>
  4. Receive file content: If the share owner's permissions have been revoked but the instance is unpatched, the server returns the file content with HTTP 200 OK, bypassing the intended access control.
  5. Iterate over known hashes: If multiple share links were previously distributed, repeat step 3 for each known hash to enumerate accessible files (Github Advisory).

Indicators of compromise

  • Network: Unauthenticated HTTP GET requests to /api/public/dl/<hash> endpoints returning HTTP 200 from IP addresses not associated with legitimate share recipients; unusual volume of requests to public download endpoints.
  • Logs: File Browser access logs showing successful (200 OK) responses to /api/public/dl/ paths from external or unexpected IP addresses, particularly after a user's permissions were administratively revoked.
  • Application State: Active share links in the database associated with users whose share and download permissions are set to false; discrepancy between user permission state and existing share link records.

Mitigation and workarounds

Upgrade File Browser to version 2.63.1 or later, which adds permission re-validation in the withHashFile handler to check the share owner's current Share and Download permissions before serving any public share request (Github Advisory, Fix PR). As an immediate workaround prior to patching, administrators should manually delete or expire all existing share links created by users whose permissions have been revoked, as simply revoking permissions does not invalidate pre-existing links. Periodic audits of active share links against current user permission states are recommended as an ongoing operational control.

Community reactions

The vulnerability was responsibly disclosed by researcher kodareef5, who also submitted the fix as PR #5888, which was promptly reviewed and merged by maintainer hacdias on April 4, 2026 — the same day as disclosure. The NixOS security tracker (NixOS/nixpkgs#507904) flagged the issue for packaging updates shortly after disclosure. No significant broader media coverage or notable social media discussion has been identified beyond standard CVE tracking feeds (Github Advisory, Fix PR).

Additional resources

  • Github Advisory — GitHub Advisory Database entry for CVE-2026-35604
  • Security Advisory — Full advisory with PoC details in the filebrowser repository
  • Fix PR — Pull request implementing the permission re-validation fix

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-95634HIGH8.6
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-95633HIGH7.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-95632HIGH7.5
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-48378MEDIUM5.3
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026
CVE-2026-48377MEDIUM5.3
  • NixOS logoNixOS
  • c2patool
NoYesOct 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management