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

CVE-2026-33816

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

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 (具体受影响版本范围请参考官方安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * PoC Concept for CVE-2026-33816 * This is a conceptual demonstration of triggering the memory safety issue. * Note: Actual trigger payload requires reverse engineering the specific patch. */ package main import ( "context" "fmt" "github.com/jackc/pgx/v5" "time" ) func main() { // Target configuration connStr := "postgres://user:pass@localhost:5432/dbname" ctx := context.Background() // Attempt connection conn, err := pgx.Connect(ctx, connStr) if err != nil { fmt.Printf("Connection failed: %v\n", err) return } defer conn.Close(ctx) // Simulate sending a crafted/malicious packet or query // that triggers the memory corruption in pgx v5. maliciousInput := "\x00\x01\x02..." // Placeholder for specific payload _, err = conn.Exec(ctx, maliciousInput) if err != nil { fmt.Printf("Exploitation attempt result: %v\n", err) } // If successful, the process may crash or result in RCE time.Sleep(1 * time.Second) }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-33816", "sourceIdentifier": "[email protected]", "published": "2026-04-07T16:16:24.920", "lastModified": "2026-05-21T19:58:43.390", "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:*:*", "versionEndExcluding": "5.9.0", "matchCriteriaId": "AA69804B-B8E3-4C7D-AD5D-3CB7616C6E4B"}]}]}], "references": [{"url": "https://pkg.go.dev/vuln/GO-2026-4772", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}