NULL Pointer Dereference The advisory has been revoked - it doesn't affect any version of package github.com/go-yaml/yaml  (opens in a new tab)


Threat Intelligence

Exploit Maturity
Proof of concept

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 Learn

Learn about NULL Pointer Dereference vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOYAMLYAML-2952712
  • published17 Jul 2022
  • disclosed27 May 2022
  • creditBradley Kemp

Introduced: 27 May 2022

CVE NOT AVAILABLE CWE-476  (opens in a new tab)

How to fix?

Upgrade github.com/go-yaml/yaml to version 3.0.1 or higher.

Amendment

This was deemed not a vulnerability.

Overview

github.com/go-yaml/yaml 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.

PoC

package main

import (
    "gopkg.in/yaml.v3"
)

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