Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsUpgrade github.com/jackc/pgx/v5 to version 5.9.2 or higher.
github.com/jackc/pgx/v5 is a pure Go driver and toolkit for PostgreSQL
Affected versions of this package are vulnerable to SQL Injection when using the simple protocol with dollar quoted string literals. An attacker can execute arbitrary SQL commands by crafting input that is interpreted as a placeholder within a dollar quoted string literal.
Note:
This is only exploitable if the simple protocol is used, a dollar quoted string literal is present in the query, the string literal contains text interpreted as a placeholder outside of a string literal, and the value of that placeholder is attacker-controlled.
This vulnerability can be mitigated by avoiding the use of the simple protocol for queries that meet all the above conditions.
attackValue := `$tag$; drop table canary; --`
_, err = tx.Exec(ctx, `select $tag$ $1 $tag$, $1`, pgx.QueryExecModeSimpleProtocol, attackValue)