{"id":"CVE-2026-115997","kind":"vulnerability","aliases":["CVE-2026-115997"],"related":[],"title":"pig-mesh pig: SQL injection through ascs/descs sort arguments","description":"A flaw has been found in pig-mesh pig up to 4.1.0. This impacts the function orderItem.getColumn of the file pig-common/pig-common-data/src/main/java/com/pig4cloud/pig/common/data/resolver/SqlFilterArgumentResolver.java. Executing a manipulation of the argument ascs/descs can lead to sql injection. The attack may be launched remotely. The exploit has been published and may be used. Upgrading to version 4.1.1 will fix this issue. This patch is called 9b6311161e346d7626c81d993044072fed2dca07. It is suggested to upgrade the affected component. The vendor was contacted early about this disclosure.","summary":"pig-mesh pig up to 4.1.0 has an SQL injection flaw in the sort-argument resolver (SqlFilterArgumentResolver, orderItem.getColumn), where manipulated ascs/descs parameters are not sanitised. A remote attacker can alter database queries, which can expose or modify stored data.","severity":"medium","cvss":6.5,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["java","package","pig-mesh","self-hosted","spring"],"not_affected_if":["version-4.1.1-or-later"],"how_to_check":"- Check the pig version in the project's pom.xml or build file; versions up to and including `4.1.0` are affected.\n- Look for use of `pig-common-data` and the `SqlFilterArgumentResolver` class in the dependency tree.","fix":"- Upgrade pig to `4.1.1`, which carries patch `9b6311161e346d7626c81d993044072fed2dca07`.","status":"open","published_at":"2026-10-25T00:16:45+00:00","first_seen_at":"2026-10-25T00:21:09+00:00","triaged_at":"2026-10-25T03:47:04+00:00","updated_at":"2026-10-25T03:47:04+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-25T03:47:04Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade pig to `4.1.1`, which carries patch `9b6311161e346d7626c81d993044072fed2dca07`.","reach":"internet","title":"pig-mesh pig: SQL injection through ascs/descs sort arguments","impact":"medium","summary":"pig-mesh pig up to 4.1.0 has an SQL injection flaw in the sort-argument resolver (SqlFilterArgumentResolver, orderItem.getColumn), where manipulated ascs/descs parameters are not sanitised. A remote attacker can alter database queries, which can expose or modify stored data.","category":"package","nicknames":[],"who_cares":["java","spring","pig-mesh","self-hosted"],"confidence":0.6,"needs_auth":"unknown","worst_case":"Attacker reads or alters database contents via injected SQL","analyst_note":"","how_to_check":"- Check the pig version in the project's pom.xml or build file; versions up to and including `4.1.0` are affected.\n- Look for use of `pig-common-data` and the `SqlFilterArgumentResolver` class in the dependency tree.","needs_analyst":false,"not_affected_if":["version-4.1.1-or-later"],"who_is_affected":"Applications built on pig-mesh pig up to 4.1.0 that use the pig-common-data sort resolver and accept ascs/descs parameters from requests are exposed. Systems not using pig, or running 4.1.1 or later, can skip it.","user_interaction":"no","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000617,"input_tokens":3432,"output_tokens":548,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-115997':13A,16A '-2026':12A,15A '/pig-common-data/src/main/java/com/pig4cloud/pig/common/data/resolver/sqlfilterargumentresolver.java':91C '4.1.0':32B,79C '4.1.1':122C '9b6311161e346d7626c81d993044072fed2dca07':131C 'affect':138C 'alter':57B 'argument':10A,42B,97C 'ascs/descs':8A,48B,98C 'attack':55B,105C 'call':130C 'common':90C 'compon':139C 'contact':143C 'cve':11A,14A 'data':66B 'databas':58B 'disclosur':147C 'earli':144C 'execut':92C 'exploit':111C 'expos':62B 'file':87C 'fix':124C 'flaw':37B,68C 'found':71C 'function':83C 'host':24B 'impact':81C 'inject':6A,36B,103C 'issu':126C 'java':17B 'launch':108C 'lead':100C 'manipul':47B,94C 'may':106C,116C 'mesh':3A,21B,28B,75C 'modifi':64B 'orderitem.getcolumn':45B,84C 'packag':18B 'paramet':49B 'patch':128C 'pig':2A,4A,20B,27B,29B,74C,76C,89C 'pig-common':88C 'pig-mesh':1A,19B,26B,73C 'publish':114C 'queri':59B 'remot':54B,109C 'resolv':43B 'sanitis':52B 'self':23B 'self-host':22B 'sort':9A,41B 'sort-argu':40B 'spring':25B 'sql':5A,35B,102C 'sqlfilterargumentresolv':44B 'store':65B 'suggest':134C 'upgrad':119C,136C 'use':118C 'vendor':141C 'version':121C","nicknames":[],"mitigations":[],"who_affected":"Applications built on pig-mesh pig up to 4.1.0 that use the pig-common-data sort resolver and accept ascs/descs parameters from requests are exposed. Systems not using pig, or running 4.1.1 or later, can skip it.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-25T00:16:45+00:00","kev":null,"cvss_vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"cna@vuldb.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-115997","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115997","severity":null,"published_at":"2026-10-25T00:16:45+00:00","modified_at":"2026-10-25T00:16:46+00:00","first_seen_at":"2026-10-25T00:21:09+00:00","fetched_at":"2026-10-25T00:21:09+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}