SQL Injection Affecting github.com/camptocamp/terraboard/db package, versions <2.2.0


0.0
critical

Snyk CVSS

    Attack Complexity Low
    Scope Changed
    Confidentiality High
    Integrity High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 12.35% (95th percentile)
Expand this section
NVD
8.8 high

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 ID SNYK-GOLANG-GITHUBCOMCAMPTOCAMPTERRABOARDDB-2847921
  • published 25 May 2022
  • disclosed 25 May 2022
  • credit AFKL

How to fix?

Upgrade github.com/camptocamp/terraboard/db to version 2.2.0 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection via the api/search/attribute endpoint, due to missing sanitization of the tf_version and lineage_value parameters of the db.SearchAttribute method.