Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2022-28948: gopkg.in/yaml.v2 #78

Closed
sousandrei opened this issue May 30, 2022 · 5 comments
Closed

CVE-2022-28948: gopkg.in/yaml.v2 #78

sousandrei opened this issue May 30, 2022 · 5 comments

Comments

@sousandrei
Copy link

🐛 Bug Report

An issue in the Unmarshal function in Go-Yaml v3 causes the program to crash when attempting to deserialize invalid input.

We should bump the usages on this repo

The problem is that some assumptions of v2 do not hold on v3, like MapSlices and UnmarshallStrict, how to proceed?

@thediveo
Copy link

thediveo commented May 31, 2022

I find the CVE rather misleading, as considers all versions >=(!!!)3 to be safe, so the deserialization problem can't be in v3 but rather in v2? But then, not the first slightly messed-up CVE.

EDIT: see go-yaml/yaml#666 (comment) ... Github did mess this up also. It's a v3 issue, not a v2 issue.

I've seen another behavioral change in yaml.v3, where map keys at least in some cases are now string instead of interface{}. yaml.v3 seems to be designed to be a unit test tester...

@thediveo
Copy link

Well, you can't beat the issue number of go-yaml/yaml#666 for the problem underlying the CVE.

@thediveo
Copy link

thediveo commented Jun 1, 2022

Github CVE was updated and fixed, see also github/advisory-database#350

@sousandrei
Copy link
Author

That does indeed fix it :D
Thanks @thediveo

@liggitt
Copy link

liggitt commented Jun 13, 2022

my read is that this is a v3 issue, not a v2 issue, so this repo is not currently impacted

/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants