Miggo Logo

CVE-2014-125064: gosqljson SQL Injection vulnerability

9.8

CVSS Score
3.1

Basic Information

EPSS Score
-
Published
1/7/2023
Updated
2/9/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/elgs/gosqljsongo< 0.0.0-20220916234230-750f26ee23c70.0.0-20220916234230-750f26ee23c7

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

  1. The vulnerability description explicitly names these three functions as affected.
  2. The commit diff shows SQL injection protection (SqlSafe) was added to all three functions.
  3. The Go vulnerability report (GO-2023-1494) lists these exact symbols as affected.
  4. Pre-patch code passed user-controlled sqlStatement directly to database drivers without proper parameterized queries or escaping.
  5. The patch adds input sanitization specifically to these functions, indicating they were the injection vectors.
  6. While the CVE was rejected by NVD, the maintainer's own security patch and GitHub advisory confirm the vulnerability.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

* vuln*r**ility, w*i** w*s *l*ssi*i** *s *riti**l, **s ***n *oun* in *l*s *osqljson. T*is issu* *****ts t** *un*tion `Qu*ry**To*rr*y/Qu*ry**ToM*p/*x****` o* t** *il* `*osqljson.*o`. T** m*nipul*tion o* t** *r*um*nt sqlSt*t*m*nt l***s to sql inj**tion

Reasoning

*. T** vuln*r**ility **s*ription *xpli*itly n*m*s t**s* t*r** *un*tions *s *****t**. *. T** *ommit *i** s*ows SQL inj**tion prot**tion (SqlS***) w*s ***** to *ll t*r** *un*tions. *. T** *o vuln*r**ility r*port (*O-****-****) lists t**s* *x**t sym*ols