CVE-2022-45787 Apache James MIME4J: Temporary File Information Disclosure in MIME4J TempFileStorageProvider

Medium 5.5 Published Updated

Local attackers can read sensitive data from temporary files due to lax permissions in the Apache James MIME4J library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-45787?

CVE-2022-45787 is a medium-severity vulnerability in Apache James MIME4J, published on 6 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Unproper laxist permissions on the temporary files used by MIME4J TempFileStorageProvider may lead to information disclosure to other local users. This issue affects Apache James MIME4J version 0.8.8 and prior versions.

We recommend users to upgrade to MIME4j version 0.8.9 or later.

Weakness: CWE-312

Which versions are affected by CVE-2022-45787?

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

PackageAffectedFixed in
org.apache.james:apache-mime4j-storage MavenAll versions0.8.9
org.apache.james:apache-mime4j-storage MavenAll versions0.8.9

Products include Apache James.

How do I fix CVE-2022-45787?

Upgrade org.apache.james:apache-mime4j-storage to 0.8.9 or later.

Is CVE-2022-45787 being exploited?

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

Sources

Also known as GHSA-q84x-3476-8ff2, OESA-2025-2296, OESA-2025-2343, OESA-2025-2344, OESA-2025-2345, OESA-2025-2346 and 1 more.

Is CVE-2022-45787 in your software?

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

Check your SBOMs for free