Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade gopkg.in/yaml.v3 to version 3.0.1 or higher.
gopkg.in/yaml.v3 is a YAML support package for the Go language.
Affected versions of this package are vulnerable to NULL Pointer Dereference when parsing #\n-\n-\n0 via the parserc.go parser.
package main
import (
"gopkg.in/yaml.v3"
)
func main() {
var t interface{}
yaml.Unmarshal([]byte("#\n-\n-\n0"), &t)
}