Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privileged access to server host
-
ExploitWrite crafted serialized payload to predictable temp file
-
ExecutionServer deserializes file on bean activation
-
ImpactExecute arbitrary code as server process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Secure temp file creation
|
| Exploitation Conditions | Two concrete prerequisites must both hold: (1) TomEE must be running with a NON-DEFAULT stateful session bean passivation strategy that writes passivated state to the shared system temporary directory using predictable filenames; and (2) the attacker must have a local account with write access to that shared temp directory. Exploitation is gated by these factors - it is not possible against a default configuration, is not remotely reachable (AV:L), and depends on the server actually passivating and later activating a stateful session bean so the poisoned file is deserialized. |
| Impact | This is a genuine but conditional local-privilege-escalation / code-execution risk rather than a mass-exploitation emergency. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 HIGH) is consistent with the description: a local, low-privileged attacker who can write to the shared system temporary directory can read or poison predictably named passivation files that Apache TomEE deserializes on bean activation, yielding C/I/A=High. The exploitation signals temper the raw score: EPSS is only 0.16% (5th percentile), there is no CISA KEV listing, and no public exploit code is identified in the provided references (only vendor/advisory links on lists.apache.org, NVD, and oss-security). The vuln.today decision label is 'this_week', which aligns with a patch-available HIGH local flaw that is not under active exploitation. Two limiting conditions materially lower real-world risk and should be stated plainly: the vulnerable behavior only applies when a NON-DEFAULT stateful session bean passivation strategy is configured, and the attacker must already have local write access to the shared temp directory - so this is not remotely reachable and not present in default installations. Net: prioritize for scheduled patching (this week) on TomEE hosts using custom passivation, but it is not a drop-everything internet-facing RCE. |
| Exploit ScenarioDerived | On a TomEE server configured with a non-default stateful session bean passivation strategy, a local user with write access to the shared system temp directory plants or overwrites a predictably named passivation file containing a malicious serialized object. When the server passivates and then re-activates the bean it deserializes the attacker-supplied data, potentially executing arbitrary code as the server process; the same predictable naming also lets the attacker read legitimate passivated session state. No public exploit code is identified at time of analysis, and exploitation requires prior local access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 16, 2026
Local code execution in Apache TomEE occurs when a non-default stateful session bean passivation strategy writes passivated bean state into the shared system temporary directory under predictable filenames, reusing files already present there, and deserializes that content on activation. A local attacker holding an account with write access to that shared temp directory can read other users' passivated session state or plant crafted data that the server deserializes, achieving code execution as the TomEE process (CVSS 7.8, AV:L/PR:L). Fixed versions 10.3.0 and 11.0.0-M2 are available from the vendor; EPSS is 0.16% (5th percentile) and no public exploit has been identified at time of analysis, with exploitation gated on the non-default passivation configuration plus a passivation/activation cycle actually occurring.
Earlier versions of this analysis (1)
Local attackers with write access to the shared system temporary directory can read passivated stateful session bean state or plant data that Apache TomEE later deserializes during bean activation, potentially executing code as the server process, but only when a non-default stateful session bean passivation strategy is configured; default deployments are described as unaffected. The affected range spans TomEE 7.0.0-M1 to <10.0.0-M1, 10.0.0-M1 to <10.3.0, 4.0.0-beta-1 through 4.7.5, and 11.0.0-M1 to <11.0.0-M2, with vendor fixes in 10.3.0 and 11.0.0-M2. No public exploit identified at time of analysis.
RemediationAI
Upgrade to Apache TomEE 10.3.0 or 11.0.0-M2, the versions in which the passivation file handling is fixed; older branches (4.x, 7.x through 10.0.0-M1, and 11.0.0-M1) should move to one of those fixed releases per the vendor advisory at https://lists.apache.org/thread/kbpc7t241483pnxo2sccrhyp6pjkwbq2. If upgrading cannot be completed immediately, the two prerequisites for exploitation can be removed as compensating controls with known trade-offs: revert stateful session bean passivation to the container's default strategy or point the custom strategy at a directory that is private to the TomEE service account instead of the shared system temp directory (this changes deployment configuration and may affect operational assumptions built around the custom strategy or the shared location), and tighten filesystem permissions on the system temporary directory so that only the TomEE service account and trusted administrative users can write to it (a system-wide change that can disrupt other applications or users that legitimately rely on that directory). Applying the vendor patch remains the complete fix and removes the need for either workaround.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is an insecure temporary file issue (CWE-377) inside the EJB container's stateful session bean passivation path. In Jakarta EE / EJB, the container passivates an idle stateful session bean by serializing its conversational state to storage and later deserializes it when the bean is activated again. TomEE's non-default passivation strategies place those serialized blobs in the shared system temporary directory using filenames that an attacker can predict, and the code reuses a file that already exists at that path rather than creating a fresh one exclusively. That combination lets any local principal with write permission on the shared temp directory pre-create or replace the file that will be read back: the attacker can exfiltrate another tenant's or user's serialized session state, or substitute a payload that the container deserializes during activation, which is the step that can escalate to arbitrary code execution in the server's security context. Java deserialization of attacker-influenced bytes is the impact amplifier here, but the trigger is the predictable-path, reuse-existing-file handling of passivation storage, not a flaw in the deserializer itself. The CVSS vector (AV:L, AC:L, PR:L, UI:N) confirms the local, low-privilege access requirement and the absence of user interaction; it does not describe a remote or unauthenticated path.
Know when Apache Tomee gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Requires a local low-privileged account with write access to the shared temp directory, so AV:L and PR:L; untrusted deserialization yields code execution as the server process, giving C/I/A High.
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
3DescriptionCVE.org
When a non-default stateful session bean passivation strategy is configured, passivated bean state is written to predictably named files in the shared system temporary directory, reusing files that already exist there, and is deserialized on activation. A local attacker who can write to that directory can read passivated session state or supply data that the server deserializes, potentially leading to code execution as the server process. Users are recommended to upgrade to version 10.3.0 or 11.0.0-M2, which fix the issue.
Executive ViewAI
Apache TomEE contains a high-severity local code execution vulnerability (CVE-2026-111241) that arises only under a non-default session bean passivation configuration. An attacker with a low-privileged account on the same host could potentially read other users' session data or execute code as the TomEE process, but exploitation requires both that specific configuration and a passivation/activation cycle to occur. Given the EPSS of 0.2% and no public exploit identified at time of analysis, the risk is limited to deployments matching the vulnerable setup, yet any code execution on a server warrants management attention to avoid escalation of privileges.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Apache Tomee
View allAuthentication bypass in Apache TomEE lets remote unauthenticated attackers reach EJB-based JAX-WS endpoints that are co
Authorization bypass in Apache TomEE's MicroProfile JWT role-based access control allows remote callers to reach JAX-RS
Apache TomEE's Jakarta Security LDAP identity store can treat an empty password as a successful credential when the back
Apache TomEE deployments running on JDK 21 or later skip EJB method authorization checks, so unauthenticated remote call
Default installations of Apache TomEE that have no users defined in the default user database can silently create an adm
Incorrect authorization in Apache TomEE means an authenticated caller whose user name happens to match an existing role
Apache TomEE's optional SSH administration service can grant full administrative shell access to any user who authentica
Apache TomEE deployments that publish an EJB-backed JAX-WS endpoint inside an existing web application can expose web se
Apache TomEE can silently fail to enforce configured authentication and transport-security settings when EJBs are expose
Information disclosure in Apache TomEE can expose protected resources, application configuration, and class files when t
Path traversal in Apache TomEE lets unauthenticated remote attackers who can reach the remote EJB service cause stateful
Unauthenticated remote file disclosure affects Apache TomEE deployments that run the embedded OpenEJB HTTP server, which
EUVD-2026-121253
GHSA-98vr-xhpf-mpjq
NVD
CVE.org
EPSS
VulDB
Exploit-DB