NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕
☕ Maven
Not in CISA KEV
MEDIUM severity

CVE-2022-45787 — apache-mime4j-storage

MEDIUMFix: apache/james-mime4j@021eb79

CVE-2022-45787 is a medium-severity (CVSS 5.5) CWE-312 vulnerability in org.apache.james:apache-mime4j-storage. A fix is available for org.apache.james:apache-mime4j-storage — see the affected versions and patch details below.

Apache James MIME4J vulnerable to information disclosure to local users

Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Nov 6, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2022-45787.

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs20th percentile — riskier than 20% of all scored CVEsHighest risk
0.00%0.26%0.52%0.78%0.0%0.3%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected
☕org.apache.james:apache-mime4j-storage

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.apache.james:apache-mime4j-storageall versions0.8.9org.apache.james:apache-mime4j-storage:0.8.9

Affected Products

1 product · 1 configurations
Application
jamesapache
< 0.8.9
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.james:apache-mime4j-storage, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.apache.james:apache-mime4j-storage to 0.8.9 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-45787 is resolved across your whole dependency graph.

  3. Workarounds

    Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate
ProductFixed inAdvisory
Red Hat build of Quarkus 2.13.8.Finalorg.apache.james/apache-mime4j-storage:0.8.9.redhat-00001RHSA-2023:3809
Red Hat JBoss Enterprise Application Platformorg.apache.james/apache-mime4j-core:0.8.9.redhat-00001RHSA-2023:1516
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8eap7-activemq-artemis-native-1:1.0.2-3.redhat_00004.1.el8eapRHSA-2023:1513
Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 9eap7-activemq-artemis-native-1:1.0.2-3.redhat_00004.1.el9eapRHSA-2023:1514
Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7eap7-activemq-artemis-native-1:1.0.2-3.redhat_00004.1.el7eapRHSA-2023:1512
Red Hat Single Sign-On 7apache-james-mime4jRHSA-2023:2713
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak-0:18.0.7-1.redhat_00001.1.el7ssoRHSA-2023:2705
Red Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak-0:18.0.7-1.redhat_00001.1.el8ssoRHSA-2023:2706

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2022-45787 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2022-45787: apache-mime4j — Fixed in 0.8.9