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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.1 (NVD); no exploitation reported by the 5 checked sources; EPSS 4% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-01-04 · Modified: 2024-08-04
- Aliases: CGA-hfgv-qpg4-f984, CGA-qqqf-vjj5-vwhp, GHSA-c38m-7h53-g9v4
- Record: https://cvemate.com/vulnerability/CVE-2021-40525 · JSON: https://cvemate.com/vulnerability/CVE-2021-40525/json

## Description

```text
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.
```

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 3.828%, percentile 90.402%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache james: ≥ Apache James, ≤ 3.6.0
- apache james: \< 3.6.2
- chainguard keycloak (Chainguard): All versions (No fix recorded)
- wolfi keycloak (Wolfi): All versions (No fix recorded)
- org.apache.james james-server (Maven): \< 3.6.1

## References

- <https://www.openwall.com/lists/oss-security/2022/01/04/4>
- <http://www.openwall.com/lists/oss-security/2022/01/04/4>
- <http://www.openwall.com/lists/oss-security/2022/02/07/1>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-40525>
- <https://github.com/apache/james-project>

---

Data as of 2026-12-05T05:31:59.132Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
