Summary
Summary
The file access permissions for files uploaded to or created from File Browser are never explicitly set by the application.
The same is true for the database used by File Browser. On standard servers where the umask configuration has not been hardened before, this makes all the stated files readable by any operating system account.
Impact
The default permissions for new files on a standard Linux system are 0644, making them world-readable.
That means that at least the following parties have full read access to all files managed by the Filebrowser from all scopes, as well as its database (including the password hashes stored in there):
- All OS accounts on the server
- All other applications running on the same server
- Any Filebrowser user with Command Execution privileges having access to a command that allows reading a file's content
Vulnerability Description
On a Linux system, the file access permissions of new files are designated by the system wide umask setting, unless they are configured manually.
Most distributions set this value to 022 by default which gives every account on the system read permissions on the file.
$ umask
022
$ touch foo
$ ls -l foo
-rw-r--r-- 1 sba sba 0 31. Mär 15:08 foo
Proof of Concept
Upload or create a file in the Filebrowser GUI and list the directory contents from a shell:
$ ls -l /srv/filebrowser/testdir
total 12
-rw-r--r-- 1 sba sba 7703 Mar 25 16:07 dummy1.pdf
-rw-r--r-- 1 sba sba 3 Mar 25 15:46 testfile.txt
The same can be validated for Docker based deployments within the container:
$ docker exec -it e0f075082a2c ls /srv/testdir -l
total 12
-rw-r--r-- 1 1000 1000 7703 Mar 25 15:07 dummy1.pdf
-rw-r--r-- 1 1000 1000 3 Mar 25 14:46 testfile.txt
Furthermore, the database used by the Filebrowser application is readable by any account:
$ ls -l /srv/filebrowser/filebrowser.db
-rw-rw-r-- 1 sba sba 65536 Mar 25 09:58 /srv/filebrowser/filebrowser.db
Recommended Countermeasures
Since the system's umask configuration cannot be controlled by the Filebrowser, the application needs to set the permissions of all new files manually upon creation.
No permissions should be given to the other category.
Implementing this won't fix the permissions for active instances after an update, so site administrators will need to fix the permissions manually:
$ chmod o-rwx -R /srv/filebrowser/datadir
Timeline
2025-03-25Identified the vulnerability in version 2.32.02025-04-11Contacted the project2025-04-18Vulnerability disclosed to the project2025-06-25Uploaded advisories to the project's GitHub repository2025-06-26CVE ID assigned by GitHub2025-06-26Fix released with version 2.33.7
References
- CWE-276: Incorrect Default Permissions
- What is Umask and How To Setup Default umask Under Linux?
- Original Advisory
Credits
- Mathias Tausig (SBA Research)
Impact
CVE-2025-52900 has a CVSS score of 5.5 (Medium). The vector is requires local access, low privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (2.33.7); upgrading removes the vulnerable code path.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Remediation advice
Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.
Frequently Asked Questions
- What is CVE-2025-52900? CVE-2025-52900 is a medium-severity security vulnerability in github.com/filebrowser/filebrowser/v2 (go), affecting versions < 2.33.7. It is fixed in 2.33.7.
- How severe is CVE-2025-52900? CVE-2025-52900 has a CVSS score of 5.5 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which packages are affected by CVE-2025-52900?
github.com/filebrowser/filebrowser/v2(go) (versions < 2.33.7)github.com/filebrowser/filebrowser(go) (versions <= 1.11.0)
- Is there a fix for CVE-2025-52900? Yes. CVE-2025-52900 is fixed in 2.33.7. Upgrade to this version or later.
- Is CVE-2025-52900 exploitable, and should I be worried? Whether CVE-2025-52900 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether CVE-2025-52900 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix CVE-2025-52900? Upgrade
github.com/filebrowser/filebrowser/v2to 2.33.7 or later.