SQL Injection Affecting github.com/jinzhu/gorm package, versions <0.2.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMJINZHUGORM-543633
  • published29 Jan 2020
  • disclosed21 Jun 2019
  • creditRahmat Wahyu Hadi

Introduced: 21 Jun 2019

CVE NOT AVAILABLE CWE-89  (opens in a new tab)

How to fix?

Upgrade github.com/jinzhu/gorm to version 0.2.0 or higher.

Overview

github.com/jinzhu/gorm is an ORM library for Golang. Note - this library has been moved to https://github.com/go-gorm/gorm

Affected versions of this package are vulnerable to SQL Injection in First and Find arguments.

CVSS Base Scores

version 3.1