SQL Injection Affecting github.com/gentoo/soko/pkg/app/handler/packages package, versions <1.0.2


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
0.49% (77th percentile)

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-GITHUBCOMGENTOOSOKOPKGAPPHANDLERPACKAGES-3365676
  • published21 Mar 2023
  • disclosed20 Mar 2023
  • creditthomas-chauchefoin-sonarsource

Introduced: 20 Mar 2023

CVE-2023-28424  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade github.com/gentoo/soko/pkg/app/handler/packages to version 1.0.2 or higher.

Overview

github.com/gentoo/soko/pkg/app/handler/packages is a gentoo package manager

Affected versions of this package are vulnerable to SQL Injection via the q parameter used by the package search handlers Search and SearchFeed. Attackers can execute arbitrary SQL queries on https://packages.gentoo.org/ and execute code in the PostgreSQL container.

References

CVSS Scores

version 3.1