# CVE-2026-115997: pig-mesh pig SQL injection in pagination sorting

Source: https://junglewise.ai/threats/cve-2026-115997-a-flaw-has-been-found-in-pig-mesh-pig-up-to-4-1-0-this-impacts  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-25. Updated: 2026-10-25  
License: CC BY 4.0 with a link back

CVE-2026-115997 · Severity: medium · CVSS 6.3 · Published 2026-10-25

Pig is an RBAC permission management system built on Spring Cloud and OAuth2. A SQL injection vulnerability in the pagination sorting function allows attackers to manipulate database queries by injecting malicious code through sort parameters, potentially leading to unauthorized data access or modification.

Technologies: [Pig-Mesh Pig](https://junglewise.ai/threats/technologies/pig). Vendors: [Pig-Mesh](https://junglewise.ai/threats/vendors/pig-mesh).

## Quick answers

**Is CVE-2026-115997 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-115997 being exploited in the wild.

**How severe is CVE-2026-115997?** Medium severity, with a CVSS score of 6.3, published 25 October 2026.

**Which products and versions are affected?** Pig-Mesh Pig up to 4.1.0.

**Is there a fix for CVE-2026-115997?** Yes: fixed in 4.1.1. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-115997 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-115997?** 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.

## How to fix

- Fixed in 4.1.1

## Technical details

A SQL injection flaw exists in the orderItem.getColumn function of SqlFilterArgumentResolver.java where the ascs/descs (sort order) parameters are not properly validated before being used in SQL queries. An attacker can craft malicious sort parameters to inject arbitrary SQL code, exploiting this via network requests without authentication. The fix restricts pagination sorting to column identifiers only.

## Affected products

- pig-mesh pig up to 4.1.0

## Timeline

- 2026-10-25: disclosed
- 2026-10-25: patched: Patch 9b6311161e346d7626c81d993044072fed2dca07

## References

- [https://github.com/pig-mesh/pig/](https://github.com/pig-mesh/pig/)
- [https://github.com/pig-mesh/pig/commit/9b6311161e346d7626c81d993044072fed2dca07](https://github.com/pig-mesh/pig/commit/9b6311161e346d7626c81d993044072fed2dca07)

## Related threats

- [Pig RBAC authorization bypass in SysClientController](https://junglewise.ai/threats/cve-2026-125377-pig-before-4-1-2-contains-a-missing-authorization-vulnerability)
- [pig missing authorization in SysUserController.user](https://junglewise.ai/threats/cve-2026-111343-pig-through-4-1-1-contains-a-missing-authorization-vulnerability)
- [pig authentication bypass in password reset endpoint](https://junglewise.ai/threats/cve-2026-91995-pig-authentication-bypass-in-password-reset-endpoint)
- [pig-mesh Pig code injection in pig-codegen](https://junglewise.ai/threats/cve-2026-15512-pig-mesh-pig-code-injection-in-pig-codegen)
