{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.james:james-server. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-22931 in the wild and no public exploit code.","fix":"Upgrade org.apache.james:james-server to 3.6.2 or later.","what":"CVE-2022-22931 is a medium-severity path traversal vulnerability in Apache James, published on 7 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-22931 and fix it if it is affected.\n\nWhat it is: CVE-2022-22931 is a medium-severity path traversal vulnerability in Apache James, published on 7 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-22931 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.james:james-server (Maven): affected all versions; fixed in 3.6.2\n- org.apache.james:james-server (Maven): affected all versions; fixed in 3.6.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-22931/ (Markdown: https://insights.sbomify.com/CVE-2022-22931/index.md)","id":"CVE-2022-22931","markdown":"https://insights.sbomify.com/CVE-2022-22931/index.md","name":"CVE-2022-22931","record":{"aliases":["GHSA-v84g-cf5j-xjqx"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache James mail server","requires_auth":"low_privilege","summary":"A path traversal flaw in Apache James allows authenticated users to access other users' data stores by bypassing directory validation checks.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"james","vendor":"apache"}],"cvss":{"score":4.3,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Fix of CVE-2021-40525 do not prepend delimiters upon valid directory validations. Affected implementations include: - maildir mailbox store - Sieve file repository This enables a user to access other users data stores (limited to user names being prefixed by the value of the username being used).","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-17","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-17T13:34:17Z","kind":"github_poc","ref":"https://github.com/shoucheng3/asf__james-project_CVE-2022-22931_3-6-0","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Path traversal in Apache James 3.6.1","id":"CVE-2022-22931","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":2,"n_references":2,"next":{"headline":"Path traversal flaws","id":"CVE-2022-22932"},"packages":[{"ecosystem":"Maven","fixed":["3.6.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.james:james-server","purl":null,"source":"GHSA-v84g-cf5j-xjqx"},{"ecosystem":"Maven","fixed":["3.6.2"],"introduced":["0"],"last_affected":[],"package":"org.apache.james:james-server","purl":"pkg:maven/org.apache.james/james-server","source":"GHSA-v84g-cf5j-xjqx"}],"prev":{"headline":"RCE in Mingsoft MCMS","id":"CVE-2022-22930"},"products":["Apache James"],"published":"2022-02-07","related":[{"cvss_score":9.8,"headline":"Apache James server: Privilege escalation via JMX pre-authentication deserialisation","id":"CVE-2023-51518","kev_date_added":null,"published":"2024-02-27"},{"cvss_score":9.8,"headline":"Vulnerability that affects org.apache.pdfbox:pdfbox","id":"CVE-2019-0228","kev_date_added":null,"published":"2019-04-17"},{"cvss_score":9.1,"headline":"Sieve file storage vulnerable to path traversal attacks","id":"CVE-2021-40525","kev_date_added":null,"published":"2022-01-04"},{"cvss_score":7.8,"headline":"Apache James server: Privilege escalation through unauthenticated JMX","id":"CVE-2023-26269","kev_date_added":null,"published":"2023-04-03"},{"cvss_score":7.8,"headline":"Denial of service in n/a","id":"CVE-2006-2806","kev_date_added":null,"published":"2006-06-05"},{"cvss_score":7.5,"headline":"STARTTLS command injection in Apache JAMES","id":"CVE-2022-28220","kev_date_added":null,"published":"2022-09-08"},{"cvss_score":7.5,"headline":"Apache James IMAP vulnerable to a ReDoS","id":"CVE-2021-40110","kev_date_added":null,"published":"2022-01-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Apache Software Foundation"]},"summary":"A path traversal flaw in Apache James allows authenticated users to access other users' data stores by bypassing directory validation checks.","url":"https://insights.sbomify.com/CVE-2022-22931/"}