Skip to main content

magic-api CVE-2026-138103

| EUVDEUVD-2026-137646 MEDIUM
Code Injection (CWE-94)
2026-11-29 VulDB GHSA-m78x-hcrq-f2wv
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Locate exposed magic-api console
  2. Delivery
    Send crafted resource-save request
  3. Exploit
    Inject code via saveFile endpoint
  4. Execution
    Framework persists and evaluates script
  5. Impact
    Execute 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Magic-Api 2.2.0
Magic-Api 2.2.2
Magic-Api 2.2.1

Affected Packages

euvd magic_api no fix

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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Nov 29, 2026 - 02:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Nov 29, 2026 - 01:45 cve.org
MEDIUM 6.9

DescriptionCVE.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

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Low
niche open-source Java low-code API framework, limited global enterprise footprint
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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 3

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

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

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy