CVE-2022-22931 Path traversal in Apache James 3.6.1

Medium 4.3 Published Updated

A path traversal flaw in Apache James allows authenticated users to access other users' data stores by bypassing directory validation checks.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-22931?

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.

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

Weakness: CWE-22

Which versions are affected by CVE-2022-22931?

2 open source packages ship an affected version, including org.apache.james:james-server. It affects 1 product.

PackageAffectedFixed in
org.apache.james:james-server MavenAll versions3.6.2
org.apache.james:james-server MavenAll versions3.6.2

Products include Apache James.

How do I fix CVE-2022-22931?

Upgrade org.apache.james:james-server to 3.6.2 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-22931 being exploited?

There is no known exploitation of CVE-2022-22931 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-v84g-cf5j-xjqx.

Is CVE-2022-22931 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free