GO-2024-2605

Source
https://pkg.go.dev/vuln/GO-2024-2605
Import Source
https://vuln.go.dev/ID/GO-2024-2605.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2024-2605
Aliases
Published
2024-03-11T20:08:05Z
Modified
2024-10-15T05:42:09.664241Z
Summary
SQL injection in github.com/jackc/pgx/v4
Details

SQL injection is possible when the database uses the non-default simple protocol, a minus sign directly precedes a numeric placeholder followed by a string placeholder on the same line, and both parameter values are user-controlled.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2024-2605"
}
References
Credits
    • paul-gerste-sonarsource

Affected packages

Go / github.com/jackc/pgx

Package

Name
github.com/jackc/pgx
View open source insights on deps.dev
Purl
pkg:golang/github.com/jackc/pgx

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/jackc/pgx/internal/sanitize",
            "symbols": [
                "Query.Sanitize",
                "SanitizeSQL"
            ]
        }
    ]
}

Go / github.com/jackc/pgx/v4

Package

Name
github.com/jackc/pgx/v4
View open source insights on deps.dev
Purl
pkg:golang/github.com/jackc/pgx/v4

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.18.2

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/jackc/pgx/v4/internal/sanitize",
            "symbols": [
                "Query.Sanitize",
                "SanitizeSQL"
            ]
        }
    ]
}