{"schemaVersion":3,"id":"CVE-2021-40525","aliases":["CGA-hfgv-qpg4-f984","CGA-qqqf-vjj5-vwhp","GHSA-c38m-7h53-g9v4"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-01-04T08:55:25.000Z","modified":"2024-08-04T02:44:10.863Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.4,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03706,"percentile":0.8962,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.03706},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03706,"percentile":0.8962}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03706,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03706,"percentile":0.8962}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"apache software foundation","product":"apache james","name":"Apache James","label":"apache james","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ Apache James, ≤ 3.6.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ Apache James, ≤ 3.6.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_james"},{"vendor":"apache","product":"james","name":"james","label":"james","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.6.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.2","eol":null,"hubHref":"/vendor/apache/james"},{"vendor":"chainguard","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/keycloak","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/keycloak","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"org.apache.james","product":"james-server","name":"org.apache.james:james-server","label":"james-server","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.apache.james/james-server","purlType":"maven","versions":[{"text":"< 3.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.1","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.openwall.com/lists/oss-security/2022/01/04/4","label":"www.openwall.com/lists/oss-security/2022/01/04/4","hostname":"www.openwall.com","tags":["X Refsource MISC","Advisory","WEB","Mailing List","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/01/04/4","label":"www.openwall.com/lists/oss-security/2022/01/04/4","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Advisory","WEB","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/07/1","label":"www.openwall.com/lists/oss-security/2022/02/07/1","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Advisory","WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40525","label":"nvd.nist.gov/vuln/detail/CVE-2021-40525","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/apache/james-project","label":"github.com/apache/james-project","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-724P-XWPJ-HP66","CGA-X4FC-9JHQ-C97V"]},"timeline":[{"kind":"published","date":"2022-01-04T08:55:25.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:44:10.863Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T15:47:16.275Z","stale":false,"partial":false}}