-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
NumberFormatException
from SnakeYAML due to int overflow for corrupt YAML version
#406
Comments
@asomov Here's the last open OSS-Fuzz found problem; forgot to follow up on this earlier. I would create an issue at bitbucket but I think project/issues are still locked, so I hope this is enough information? I will check in Jackson-side reproduction next. |
@cowtowncoder I will create an issue and let you know the progress |
Excellent @asomov thank you! |
Fixed via #426 for 2.15(.3) |
@asomov With SnakeYAML 2.1, this was fixed for Jackson 2.x. But it looks like |
@cowtowncoder SnakeYAML Engine 2.7 released with the fix |
Verified: the fix works as expected. |
(note: found by OSS-Fuzz -> https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56902)
Looks like SnakeYAML's YAML directive handling assumes (not unreasonably) that the YAML version should be (or consist of) regular
int
s. But if input is crafted to have number bigger than 32-bitint
, there's aNumberFormatException
.Input OSS-Fuzz generated is:
The text was updated successfully, but these errors were encountered: