NULL Pointer Dereference Affecting package, versions <3.0.1

  • Exploit Maturity

    Proof of concept

  • Attack Complexity


  • Availability


Do your applications use this vulnerable package?

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 applications
  • snyk-id


  • published

    17 Jul 2022

  • disclosed

    27 May 2022

  • credit

    Bradley Kemp

Introduced: 27 May 2022

CWE-476 Open this link in a new tab

How to fix?

Upgrade to version 3.0.1 or higher.

Overview 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 (

func main() {
    var t interface{}
    yaml.Unmarshal([]byte("#\n-\n-\n0"), &t)