Skip to main content

pig-mesh Pig EUVDEUVD-2026-43253

| CVE-2026-15512 LOW
Code Injection (CWE-94)
2026-07-12 VulDB GHSA-5qr2-jcjw-v3xc
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege credentials
  2. Delivery
    Authenticate to pig-mesh Pig application
  3. Exploit
    Craft malicious code generation request
  4. Execution
    Submit payload to GeneratorServiceImpl endpoint
  5. Persist
    Server executes injected code server-side
  6. Impact
    Achieve arbitrary remote code execution

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 an authenticated session with at minimum low-privilege credentials on the pig-mesh Pig application - unauthenticated exploitation is not possible per the PR:L rating in the CVSS 4.0 vector. The vulnerable attack surface is specifically the pig-codegen code generation functionality exposed through GeneratorServiceImpl; deployments that do not include or expose this module are not affected. No user interaction beyond the attacker's own crafted request is required (UI:N), and no additional attack complexity or specialized conditions are specified (AC:L, AT:N). The primary limiting factors are: (1) the requirement for at least one valid low-privilege credential, limiting mass exploitation against systems with strong credential hygiene; and (2) the pig-codegen module must be deployed and reachable - it may not be present in all pig-mesh Pig installations. The vendor's non-response means it is unknown whether the default installation includes pig-codegen enabled by default.

Impact

The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with impact metrics VC:L/VI:L/VA:L yields a base score of 5.3, which appears to understate real-world severity given the RCE tag and CWE-94 classification - code injection vulnerabilities routinely enable full server compromise. This discrepancy between the CVSS impact assessment (Low across all pillars) and the RCE characterization is a notable inconsistency that has not been independently resolved by a vendor advisory. The CVSS E:P modifier confirms a proof-of-concept exploit is available, which materially increases exploitation likelihood. No EPSS score was provided in the input. The vulnerability is not currently listed in the CISA KEV catalog, indicating no confirmed active exploitation at time of analysis. The combination of a public exploit, no patch, and vendor non-response represents a meaningful real-world risk to organizations running pig-codegen in internet-accessible or multi-tenant environments, despite the moderate CVSS score.

Exploit ScenarioDerived

An attacker with a low-privilege account on a pig-mesh Pig deployment navigates to the pig-codegen code generation interface and submits a crafted HTTP request to the GeneratorServiceImpl endpoint containing a malicious template or scripting payload embedded in the code generation parameters. The server processes the payload without adequate sanitization, resulting in arbitrary Java code execution under the application server's runtime context. The publicly available proof-of-concept at https://github.com/sombra0316/CVE-2026/blob/main/pig-mesh/SSIT.md provides a ready-made exploitation template, lowering the attacker skill barrier significantly.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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 – Jul 13, 2026

Remote code injection in pig-mesh Pig's pig-codegen module through version 3.9.2 allows low-privileged authenticated attackers to execute arbitrary code server-side via the GeneratorServiceImpl component, reachable over the network. A publicly available proof-of-concept exploit exists at GitHub (sombra0316/CVE-2026), elevating the urgency for defenders. No vendor patch has been released, and the vendor did not respond to responsible disclosure, leaving affected deployments without an official remediation path.

RemediationAI

No vendor-released patch identified at time of analysis - the vendor did not respond to disclosure, and no fixed version number has been confirmed. As compensating controls: restrict access to the pig-codegen code generation endpoints exclusively to trusted administrative users at the application or API gateway layer, since the vulnerability requires at minimum low-privilege authenticated access (PR:L). If code generation functionality is not used in production, disable or remove the pig-codegen module entirely from the deployment - this eliminates the attack surface with no functional trade-off for non-users. Apply network-layer controls (firewall rules, VPN-gated access) to prevent internet-facing exposure of the GeneratorServiceImpl endpoint. Monitor application logs for anomalous or unexpected code generation requests as a detection measure. Track the VulDB entry at https://vuldb.com/vuln/377841 and the project repository for any future patch release.

Affected VersionsENISA

Pig 3.9.2
Pig 3.9.1
Pig 3.9.0

Affected Packages

euvd pig 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

pig-mesh Pig is an open-source Java-based microservice rapid development framework (pig4cloud/pig) commonly used in enterprise application development, particularly within Chinese developer communities. The vulnerable component, pig-codegen, is a code generation module that processes user-supplied input through GeneratorServiceImpl.java to produce source code from templates. CWE-94 (Improper Control of Generation of Code) describes the root cause: unsanitized or insufficiently controlled user input is passed into a code generation or template rendering pipeline - in Java frameworks this typically manifests as Server-Side Template Injection (SSTI) via engines such as Velocity or FreeMarker, or misuse of javax.script.ScriptEngine APIs. The CPE cpe:2.3:a:pig-mesh:pig:*:*:*:*:*:*:*:* covers all versions up to the reported ceiling of 3.9.2. The affected file path (pig-master\pig-visual\pig-codegen\src\main\java\com\pig4cloud\pig\codegen\service\impl\GeneratorServiceImpl.java) directly implicates the service-layer implementation of code generation logic.

Know when Pig 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 2.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 8.8 HIGH

Code injection enabling RCE justifies C:H/I:H/A:H; PR:L reflects authenticated access required per CVSS 4.0 source vector; AV:N and AC:L confirmed by the source vector with no additional attack requirements.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/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
Low
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
Severity Changed
Jul 13, 2026 - 00:22 NVD
MEDIUM LOW
CVSS changed
Jul 13, 2026 - 00:22 NVD
5.3 (MEDIUM) 2.1 (LOW)

DescriptionCVE.org

A vulnerability was identified in pig-mesh Pig up to 3.9.2. Affected by this issue is some unknown functionality of the file \pig-master\pig-visual\pig-codegen\src\main\java\com\pig4cloud\pig\codegen\service\impl\GeneratorServiceImpl.java of the component pig-codegen. Such manipulation leads to code injection. It is possible to launch the attack remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
open-source Chinese enterprise Java microservice framework, limited global production footprint
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
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.

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