Security Vulnerability Report
中文
CVE-2026-33815 CVSS 9.8 CRITICAL

CVE-2026-33815

Published: 2026-04-07 16:16:25
Last Modified: 2026-05-21 19:58:03

Description

Memory-safety vulnerability in github.com/jackc/pgx/v5.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:* - VULNERABLE
jackc/pgx v5.x < 5.x.y (具体修复版本请参考官方公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
package main import ( "context" "fmt" "github.com/jackc/pgx/v5" ) // Proof of Concept for CVE-2026-33815 // This code demonstrates connecting to a potentially malicious server // that exploits the memory safety vulnerability in pgx/v5. func main() { // Attempt connection to a malicious PostgreSQL instance connString := "postgres://user:pass@malicious-server:5432/dbname" ctx := context.Background() conn, err := pgx.Connect(ctx, connString) if err != nil { fmt.Printf("Connection failed: %v\n", err) return } defer conn.Close(ctx) // Executing a query that triggers the vulnerable path var result int err = conn.QueryRow(ctx, "SELECT * FROM vulnerable_table").Scan(&result) if err != nil { fmt.Printf("Query execution failed: %v\n", err) } }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-33815", "sourceIdentifier": "[email protected]", "published": "2026-04-07T16:16:24.813", "lastModified": "2026-05-21T19:58:03.360", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Memory-safety vulnerability in github.com/jackc/pgx/v5."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:jackc:pgx:*:*:*:*:*:go:*:*", "matchCriteriaId": "81D42EBE-044D-46BF-B4CB-F3A92CF837C7"}]}]}], "references": [{"url": "https://pkg.go.dev/vuln/GO-2026-4771", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}