Apache James MIME4J: Temporary File Information Disclosure in MIME4J TempFileStorageProvider
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 11 fixed, 13 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-312.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache James MIME4J | up to 0.8.8 | — | No fix listed | CNA |
| — | org.apache.james:apache-mime4j-storage (Maven) | before 0.8.9 | 0.8.9 | Patch available | GHSA-q84x-3476-8ff2 |
- Apache James MIME4J VendorApache Affected up to 0.8.8 Fixed in — No fix listed CNA
- org.apache.james:apache-mime4j-storage (Maven) Vendor— Affected before 0.8.9 Fixed in 0.8.9 Patch available GHSA-q84x-3476-8ff2
Remediation
- Fix · GHSA-q84x-3476-8ff2 org.apache.james:apache-mime4j-storage (Maven) Fixed in 0.8.9 Advisory →
Red Hat 11 advisories
- RHSA-2023:3809 Released 2023-06-29 · Red Hat rating ModerateRed Hat build of Quarkus 2.13.8 release and security update
- Red Hat build of Quarkus 2.13.8.Final com.graphql-java.graphql-java-19.4.0.redhat-00001.jar, io.quarkus.quarkus-grpc-2.13.8.Final-redhat-00004.jar, io.quarkus.quarkus-oidc-2.13.8.Final-redhat-00004.jar +3
- RHSA-2023:3815 Released 2023-06-27 · Red Hat rating ImportantService Registry (container images) release and security update [2.4.3 GA]
- RHINT Service Registry 2.4.3 GA
- RHSA-2023:2710 Released 2023-05-10 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.3 for OpenShift image security update
- Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
Show 8 more Red Hat advisories
- RHSA-2023:2713 Released 2023-05-10 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.3 security update
- Red Hat Single Sign-On 7
- RHSA-2023:2706 Released 2023-05-10 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.3 security update on RHEL 8
- Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.7-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server-18.0.7-1.redhat_00001.1.el8sso
- RHSA-2023:2707 Released 2023-05-10 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.3 security update on RHEL 9
- Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.7-1.redhat_00001.1.el9sso, rh-sso7-keycloak-server-18.0.7-1.redhat_00001.1.el9sso
- RHSA-2023:2705 Released 2023-05-10 · Red Hat rating ModerateRed Hat Single Sign-On 7.6.3 security update on RHEL 7
- Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.7-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server-18.0.7-1.redhat_00001.1.el7sso
- RHSA-2023:1516 Released 2023-03-29 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.4.10 security update
- Red Hat JBoss Enterprise Application Platform com.h2database.h2-1.4.197.redhat-00004.jar, io.netty.netty-codec-haproxy-4.1.86.Final-redhat-00001.jar, io.undertow.undertow-core-2.2.23.SP2-redhat-00001.jar +3
- RHSA-2023:1512 Released 2023-03-29 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.4.10 on RHEL 7 security update
- Red Hat JBoss EAP 7.4 for RHEL 7 Server eap7-activemq-artemis-native-1:1.0.2-3.redhat_00004.1.el7eap, eap7-apache-mime4j-0.8.9-1.redhat_00001.1.el7eap, eap7-artemis-native-1:1.0.2-4.redhat_00004.1.el7eap +47
- RHSA-2023:1513 Released 2023-03-29 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.4.10 on RHEL 8 security update
- Red Hat JBoss EAP 7.4 for RHEL 8 eap7-activemq-artemis-native-1:1.0.2-3.redhat_00004.1.el8eap, eap7-apache-mime4j-0.8.9-1.redhat_00001.1.el8eap, eap7-artemis-native-1:1.0.2-4.redhat_00004.1.el8eap +47
- RHSA-2023:1514 Released 2023-03-29 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.4.10 on RHEL 9 security update
- Red Hat JBoss EAP 7.4 for RHEL 9 eap7-activemq-artemis-native-1:1.0.2-3.redhat_00004.1.el9eap, eap7-apache-mime4j-0.8.9-1.redhat_00001.1.el9eap, eap7-artemis-native-1:1.0.2-4.redhat_00004.1.el9eap +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Decision Manager 7 | Affected | No fix planned: Out of support scope |
| Red Hat Fuse 7 | Affected | No fix planned: Out of support scope |
| Red Hat Integration Camel K 1 | Affected | No fix yet: Fix deferred |
| Red Hat Integration Camel Quarkus 1 | Affected | No fix planned: Will not fix |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Data Virtualization 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Enterprise Application Platform 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix yet |
| Red Hat JBoss Fuse 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse Service Works 6 | Affected | No fix planned: Out of support scope |
| Red Hat Process Automation 7 | Affected | No fix planned: Out of support scope |
| Red Hat Satellite 6 | Affected | No fix planned: Out of support scope |
| Red Hat build of Apache Camel for Spring Boot 3 | Affected | No fix yet: Fix deferred |
| Middleware Containers for OpenShift | Fixed | RHSA-2023:2710 |
| RHINT Service Registry 2.4.3 GA | Fixed | RHSA-2023:3815 |
| Red Hat JBoss EAP 7.4 for RHEL 7 Server | Fixed | RHSA-2023:1512 |
| Red Hat JBoss EAP 7.4 for RHEL 8 | Fixed | RHSA-2023:1513 |
| Red Hat JBoss EAP 7.4 for RHEL 9 | Fixed | RHSA-2023:1514 |
| Red Hat JBoss Enterprise Application Platform | Fixed | RHSA-2023:1516 |
| Red Hat Single Sign-On 7 | Fixed | RHSA-2023:2713 |
| Red Hat Single Sign-On 7.6 for RHEL 7 Server | Fixed | RHSA-2023:2705 |
| Red Hat Single Sign-On 7.6 for RHEL 8 | Fixed | RHSA-2023:2706 |
| Red Hat Single Sign-On 7.6 for RHEL 9 | Fixed | RHSA-2023:2707 |
| Red Hat build of Quarkus 2.13.8.Final | Fixed | RHSA-2023:3809 |
Not affected: 7 products
- Logging Subsystem for Red Hat OpenShift
- Migration Toolkit for Applications 6
- Migration Toolkit for Runtimes
- Red Hat Data Grid 8
- Red Hat JBoss Enterprise Application Platform
- Red Hat OpenShift Application Runtimes
- Red Hat build of Quarkus 2.13.8.Final
Timeline
- 2026-10-02 Threatist record created from CVE-2022-45787
- 2026-10-03 Alias added: GHSA-q84x-3476-8ff2
References
Advisory 2
More Apache James vulnerabilities
- TI-2019-00201 XML external entity injection in Apache PDFBox CVSS 3.1CRITICAL 9.8
- TI-2023-28170 Apache James server: Privilege escalation via JMX pre-authentication deserialisation CVSS 3.1CRITICAL 9.8
- TI-2021-17565 Sieve file storage vulnerable to path traversal attacks CVSS 3.1CRITICAL 9.1
- TI-2006-02714 The SMTP server in Apache Java Mail Enterprise Server (aka Apache James) 2.2.0 allows… CVSS 2.0HIGH 7.8
- TI-2021-17305 Apache James IMAP vulnerable to a ReDoS CVSS 3.1HIGH 7.5
- TI-2023-11431 Apache James server: Privilege escalation through unauthenticated JMX CVSS 3.1HIGH 7.8
Sources
- CVE-2022-45787 · CVE Program
- CVE-2022-45787 · NVD
- FIRST EPSS
- GHSA-q84x-3476-8ff2 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-45787 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences