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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2023-01-06T09:31:40.118Z
- Modified: 2026-06-17T05:10:43.813Z
- Also known as: GHSA-q84x-3476-8ff2
- Weaknesses: CWE-200, CWE-312
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

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

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache James MIME4J: up to 0.8.8
- org.apache.james:apache-mime4j-storage (Maven): before 0.8.9
- apache james: before 0.8.9

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://lists.apache.org/thread/26s8p9stl1z261c4qw15bsq03tt7t0rj> (mailing-list, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-45787> (advisory)
- <https://github.com/apache/james-mime4j/commit/021eb79ba312fe5a7f99fa867ee5350aa5533069> (web)
- <https://github.com/apache/james-mime4j> (package)
- <https://github.com/apache/james-mime4j/blob/master/CHANGELOG.md#089---2022-12-30> (web)
- <https://issues.apache.org/jira/browse/MIME4J-322> (web)

## Sources

- CVE List: [CVE-2022-45787](https://www.cve.org/CVERecord?id=CVE-2022-45787), CVE Terms of Use, modified 2025-04-09
- GitHub Advisory Database: [GHSA-q84x-3476-8ff2](https://github.com/advisories/GHSA-q84x-3476-8ff2), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-45787](https://nvd.nist.gov/vuln/detail/CVE-2022-45787), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-45787 · Whole record: https://cve.day/CVE-2022-45787.json · Rebuilt by cve.day 2026-11-25T22:58:18.063Z
