Skip to content
Threat Feed
high advisory

Apache TomEE: Stateful session bean insecure temporary file handling (CVE-2026-111241)

A vulnerability in Apache TomEE allows a local attacker to perform path hijacking in a shared temporary directory to intercept or influence deserialized stateful session bean data, potentially leading to arbitrary code execution.

CVE search metadata

CVE search record: CVE-2026-111241. Severity: high. CVSS: 7.8. EPSS: 0.16%. KEV: no. Product: Apache TomEE, Apache TomEE (10.0.0-M1 to <10.3.0), Apache TomEE (11.0.0-M1 to <11.0.0-M2), Apache TomEE (7.0.0-M1 to <10.0.0-M1). Brief: Apache TomEE: Stateful session bean insecure temporary file handling (CVE-2026-111241). Brief link: https://feed.craftedsignal.io/briefs/2026-11-tomee-deserialization-cve-2026-111241/

Triage facts

Revision 1
Applicability
Apache TomEE, Apache TomEE (10.0.0-M1 to <10.3.0) +2
Evidence
Unknown
Severity
High
Action
Elevated
Sources
2 public sources
Freshness
Revision 1Nov 16, 16:19 UTC
Vulnerabilities
1 CVE
Source quality
A1Roughly even chance

Overview

Apache TomEE contains a security flaw in its stateful session bean passivation mechanism (CVE-2026-111241). When a non-default passivation strategy is configured, the application writes passivated bean state to predictable filenames within the shared system temporary directory. This mechanism reuses existing files, allowing a local attacker with write access to the temporary directory to perform path hijacking. The attacker can read sensitive session state or replace the file with malicious serialized data, which is then deserialized by the server upon activation. This can result in remote code execution under the privileges of the server process.

Impact

Successful exploitation allows a local attacker to read potentially sensitive session data or achieve remote code execution as the user running the Apache TomEE server process. The CVSS v3.1 base score is 7.8.

Recommendation

Users should upgrade to the following fixed versions to address this vulnerability:

  • Apache TomEE 10.3.0
  • Apache TomEE 11.0.0-M2

If upgrading is not immediately possible, restrict access to the system temporary directory used by the application to prevent unauthorized write access by local users.

Threat Hunt

Identify applications writing serialized data to shared temporary directories (e.g., /tmp or C:\Windows\Temp) where Apache TomEE is deployed.

medium medium confidence hunt now

Data: Endpoint file creation logs, Process monitoring logs

Mitigations

Upgrade Apache TomEE to version 10.3.0 or 11.0.0-M2

immediate