Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocate exposed magic-api console
-
DeliverySend crafted resource-save request
-
ExploitInject code via saveFile endpoint
-
ExecutionFramework persists and evaluates script
-
ImpactExecute code on server host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires network reachability to the magic-api web management console, specifically the resource-save API (saveFile in MagicResourceController) of magic-api-core at version 2.2.2 or earlier. The supplied vector asserts PR:N, consistent with magic-api's design of shipping its console without authentication by default; the practical limiting factor is therefore whether that console is exposed to the attacker and left unauthenticated. In deployments where the console is restricted to internal networks or placed behind authentication/reverse-proxy controls, exploitation requires first obtaining that access. No specific user interaction is needed (UI:N). No fixed version is identified in the available evidence, as the project has not yet responded. |
| Impact | Signals are mixed and point to a real but conditional threat rather than a drop-everything emergency. The CVSS 4.0 vector supplied by VulDB (AV:N/AC:L/AT:N/PR:N/UI:N) describes a remote, low-complexity, unauthenticated trigger, yet pairs it with uniformly Low impacts (VC:L/VI:L/VA:L) and a resulting score of 6.9 - an internal inconsistency, because CWE-94 code injection in a server-side Java framework's resource-save API typically yields full code execution (High impact), not Low. Treat the 6.9 as a conservative VulDB floor and the real impact as potentially RCE-grade; verify with the project. The exploit-maturity metric is E:P (proof-of-concept), consistent with the input stating a PoC reference exists that is not verified as working exploit code. There is no CISA KEV listing and no EPSS value provided, so there is no evidence of active or widespread exploitation. The vuln.today decision label is 'this_month', not act_now/emergency, which aligns with a patchable-soon posture. The dominant risk driver is the PR:N claim combined with magic-api's design, where the management console historically ships without authentication - if an instance is network-exposed, an unauthenticated attacker could inject code. Net: a credible, likely-RCE flaw gated primarily by whether the magic-api console is reachable, not a confirmed mass-exploitation event. |
| Exploit ScenarioDerived | An attacker who can reach an exposed magic-api management console sends a crafted request to the saveFile endpoint of MagicResourceController, injecting attacker-controlled script/code that the framework persists and evaluates, achieving code execution on the server. A public PoC reference exists (GitHub issue #138) but is not verified as working exploit code, so weaponization effort is unknown. Low attack complexity (AC:L) and no required user interaction mean a reachable, unauthenticated console could be hit directly over the network. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
Unauthenticated code injection in the magic-api low-code framework (magic-api-core) through version 2.2.2 lets a remote attacker who can reach the web management console invoke the resource-save API and plant arbitrary code in a stored resource, which the platform then executes - the supplied vector is PR:N (unauthenticated) with high confidentiality, integrity and availability impact in our independent assessment. The practical limiting factor is exposure: exploitation requires network reachability to the console's saveFile endpoint (MagicResourceController) and that console being left without authentication or reverse-proxy controls, so internet-facing, unauthenticated deployments carry the most risk while console-restricted installations are largely shielded. A public PoC reference exists (upstream issue #138, where the project was notified and has not yet responded); it is not verified as working exploit code, no fixed release is identified in the available data, and the current priority label is this_month rather than an emergency.
RemediationAI
No vendor-released patch was identified at time of analysis: the project was informed through upstream issue https://github.com/ssssssss-team/magic-api/issues/138 and has not responded, and no fixed version is given in the available evidence (tracking is available via https://vuldb.com/vuln/445021 and https://vuldb.com/cve/CVE-2026-138103). Because the exploit path is the saveFile endpoint in MagicResourceController, the actionable compensating controls are exposure controls on that console: block the magic-api management console and its resource-save API from untrusted networks at the firewall or reverse proxy so only trusted administrative sources can reach it (trade-off: legitimate remote administration must be re-routed through a bastion or VPN), and place the console behind an authenticating reverse proxy or equivalent access control since the product ships it unauthenticated by default (trade-off: added authentication infrastructure and session management, and any embedded console calls must carry the new credentials). Where the management UI is not needed in a given deployment, removing or disabling the console/resource-save functionality reduces the attack surface entirely (trade-off: no runtime resource authoring through the web UI). Upgrading should be applied as soon as a fixed release is published, and any magic-api instance that has been internet-facing and unauthenticated should be treated as potentially compromised, with stored resources reviewed for injected code.
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
magic-api is a Java-based low-code/rapid-development framework that lets developers define APIs and scripts as stored "magic" resources, which the runtime compiles and executes. The affected component, magic-api-core, exposes a resource-save API implemented by saveFile in MagicResourceController.java; because saved resources become executable scripts, unvalidated or insufficiently restricted content accepted by that endpoint crosses the boundary from data into code, which is the CWE-94 (Improper Control of Generation of Code) root cause class. The CPE cpe:2.3:a:ssssssss-team:magic-api:*:*:*:*:*:*:*:* is version-agnostic in the provided feed, but the description bounds the affected range at up to and including 2.2.2. Per our assessment the underlying design ships the management console without authentication by default, which is why the vector asserts PR:N and UI:N - the real gating condition is whether the console and its saveFile endpoint are reachable by the attacker and left unauthenticated, not any credential or interaction requirement. The precise trigger mechanics beyond the saveFile manipulation are not described in the available sources.
Know when Java 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Remote low-complexity injection via the default-unauthenticated magic-api console (AV:N/AC:L/PR:N/UI:N); CWE-94 code execution on the server justifies C/I/A:H, higher than VulDB's Low impacts.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was detected in ssssssss-team magic-api up to 2.2.2. This issue affects the function saveFile of the file MagicResourceController.java of the component magic-api-core resource save API. The manipulation results in code injection. It is possible to launch the attack remotely. The exploit is now public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in magic-api Code Injection and SSRF Vulnerabilities
View all 3Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-137646
GHSA-m78x-hcrq-f2wv
NVD
CVE.org
EPSS
VulDB
Exploit-DB