# CVE-2021-40525: Sieve file storage vulnerable to path traversal attacks

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/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): 3.83%, higher than 90% of CVEs (2026-12-01)
- Published: 2022-01-04T08:55:25.000Z
- Modified: 2026-09-10T03:49:10.907Z
- Also known as: GHSA-c38m-7h53-g9v4
- Weaknesses: CWE-22
- Assigned by: apache

## Description

Apache James ManagedSieve implementation alongside with the file storage for sieve scripts is vulnerable to path traversal, allowing reading and writing any file. This vulnerability had been patched in Apache James 3.6.1 and higher. We recommend the upgrade. Distributed and Cassandra based products are also not impacted.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache James: from Apache James up to 3.6.0
- org.apache.james:james-server (Maven): before 3.6.1
- apache james: before 3.6.2

## Every score

- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:P/A:N`

## References

- <https://www.openwall.com/lists/oss-security/2022/01/04/4> (mailing-list, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/01/04/4> (mailing-list, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/02/07/1> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-40525> (advisory)
- <https://github.com/apache/james-project> (package)

## Sources

- CVE List: [CVE-2021-40525](https://www.cve.org/CVERecord?id=CVE-2021-40525), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-c38m-7h53-g9v4](https://github.com/advisories/GHSA-c38m-7h53-g9v4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-40525](https://nvd.nist.gov/vuln/detail/CVE-2021-40525), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-40525 · Whole record: https://cve.day/CVE-2021-40525.json · Rebuilt by cve.day 2026-11-25T22:58:06.394Z
