CVE-2026-15512: pig-mesh Pig code injection in pig-codegen

CVE-2026-15512 · Severity: medium · CVSS 6.3 · Published 2026-07-13

pig-mesh Pig is a microservice development platform. A security vulnerability in its code generation component allows an attacker with basic user privileges to execute malicious commands on the server. This could lead to a full system takeover, unauthorized data access, or disruption of the development environment.

Technologies: Pig-Mesh Pig. Vendors: Pig-Mesh.

Quick answers

Is CVE-2026-15512 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-15512 being exploited in the wild.
How severe is CVE-2026-15512?
Medium severity, with a CVSS score of 6.3, published 13 July 2026.
Which products and versions are affected?
Pig-Mesh Pig up to 3.9.2.
Is there a fix for CVE-2026-15512?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-15512 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-15512?
Check whether you run Pig-Mesh Pig at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A Server-Side Template Injection (SSTI) vulnerability exists in the pig-codegen module of pig-mesh Pig versions up to 3.9.2. The vulnerability is located in the GeneratorServiceImpl.java file, where the application uses the Apache Velocity template engine to render user-defined templates without proper sanitization or sandbox isolation. An attacker with low privileges can submit a malicious payload (e.g., using Java reflection via $math.getClass().forName('java.lang.Runtime')) through the template management API. When the template is subsequently previewed or processed by the VelocityKit utility, the injected code is executed, leading to Remote Code Execution (RCE). The vendor has not yet released a patch.

Affected products

  • pig-mesh Pig up to 3.9.2

Timeline

  • 2026-07-13: advisory: NVD publication date
  • 2026-07-12: disclosed: Initial disclosure by VulDB and public exploit availability

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.