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

fix check idx index #57

Merged
merged 1 commit into from
May 25, 2018
Merged

fix check idx index #57

merged 1 commit into from
May 25, 2018

Conversation

wgliang
Copy link
Contributor

@wgliang wgliang commented May 25, 2018

There happened a panic error in kubernetes seem because it.

kubernetes/kubernetes#64291

@liggitt
Copy link
Contributor

liggitt commented May 25, 2018

thanks, definitely needs a testcase (or several, exercising the conditions that could panic before)

@alvaroaleman
Copy link

Oh, I just happened to write a PR for this as well, didn't notice yours :)

Your checks are more complete thought, maybe you just wanna copy over the test from my PR (#58 ) and I will close it?

@wgliang
Copy link
Contributor Author

wgliang commented May 25, 2018

Ok, thank you. I will copy it.

@wgliang
Copy link
Contributor Author

wgliang commented May 25, 2018

@evanphx
Please merge it as soon as possible, then I will update the package in kubernetes.
Thanks very much.

@evanphx evanphx merged commit 94e38aa into evanphx:master May 25, 2018
@evanphx
Copy link
Owner

evanphx commented May 25, 2018

Thanks so much both of you!

@hashier
Copy link

hashier commented May 29, 2021

NVD https://nvd.nist.gov/vuln/detail/CVE-2018-14632 links here for a CVE. Is this a bug on NVD or is CVE-2018-14632 related to this commit?

Edit:
I guess yes: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-14632

@alvaroaleman
Copy link

@hashier this fixed a bug that resulted in a panic for faulty json patches that specified an out of bounds index. Both Kubernetes and Openshift use this lib which meant it was possible to cause a DOS through an invalid patch (still requires access to the cluster in order to even be able to submit patches). Kube updated this dependency in May 2018 through kubernetes/kubernetes#64355 and I presume Openshift did it around the same timeframe.

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

Successfully merging this pull request may close these issues.

5 participants