# CVE-2021-43820: Permissions check bypass in Seafile

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.99%, higher than 63% of CVEs (2026-12-01)
- Published: 2021-12-14T18:55:10.000Z
- Modified: 2026-06-17T04:11:30.490Z
- Weaknesses: CWE-639
- Assigned by: GitHub_M

## Description

Seafile is an open source cloud storage system. A sync token is used in Seafile file syncing protocol to authorize access to library data. To improve performance, the token is cached in memory in seaf-server. Upon receiving a token from sync client or SeaDrive client, the server checks whether the token exist in the cache. However, if the token exists in cache, the server doesn't check whether it's associated with the specific library in the URL. This vulnerability makes it possible to use any valid sync token to access data from any **known** library. Note that the attacker has to first find out the ID of a library which it has no access to. The library ID is a random UUID, which is not possible to be guessed. There are no workarounds for this issue.

(As written by CVE List.)

## Affected

- haiwen seafile-server: Community Edition < 8.0.8; Pro Edition < 8.0.15
- seafile seafile_server: before 8.0.8; before 8.0.15; from 9.0.0 before 9.0.2

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/haiwen/seafile-server/security/advisories/GHSA-m3wc-jv6r-hvv8> (third-party-advisory)
- <https://github.com/haiwen/seafile-server/pull/520> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-43820](https://www.cve.org/CVERecord?id=CVE-2021-43820), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-43820](https://nvd.nist.gov/vuln/detail/CVE-2021-43820), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43820 · Whole record: https://cve.day/CVE-2021-43820.json · Rebuilt by cve.day 2026-11-25T22:24:36.242Z
