{"id":"CVE-2021-40525","published":"2022-01-04T08:55:25Z","modified":"2024-08-04T02:44:10Z","title":"Sieve file storage vulnerable to path traversal attacks","vendor":"Apache","product":"Apache James","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03828,"percentile":0.90338,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://www.openwall.com/lists/oss-security/2022/01/04/4","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/04/4","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/07/1","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":18.07}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache James","versions":[">= Apache James, <= 3.6.0"]}],"workarounds":{"items":["This could also be mitigated by ensuring manageSieve is disabled, which is the case by default."],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.james:james-server","vulnerableRanges":["<3.6.1"],"patched":["3.6.1"],"from":["GHSA-c38m-7h53-g9v4"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal weakness in the file storage used for Sieve scripts by the ManagedSieve implementation in Apache James. Its effect is that an attacker can read and write arbitrary files on the server, and the conditions required (such as network access or authentication) are not specified in the available data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:30Z"},"euvd":{"id":"EUVD-2022-0552","exploited":false,"provenance":"source"}}