CVE-2021-40525Sieve file storage vulnerable to path traversal attacks
- 9.1CriticalCVSS base score
- 3.8%Exploitation in 30 daysEPSS · top 9.7% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By apache
- 4 months later
· 4 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Critical9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 3.8% · top 9.7% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.1.
Affected products
Apache Software Foundation · Apache James
- affected Apache James – ≤ 3.6.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.james:james-serverGHSA-c38m-7h53-g9v4 (opens in a new tab)
What to do
Workaround: This could also be mitigated by ensuring manageSieve is disabled, which is the case by default.
References
References3
- https://www.openwall.com/lists/oss-security/2022/01/04/4 (opens in a new tab)x_refsource_MISCx_transferred
- [oss-security] 20220104 CVE-2021-40525: Apache James: Sieve file storage vulnerable to path traversal attacks (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [oss-security] 20220207 CVE-2022-22931: Path traversal in Apache James (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-0552 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-c38m-7h53-g9v4 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-40525)Record last updated .