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

Protection against denial-of-service from malicious or highly-compressed images #195

Closed
coobird opened this issue Apr 29, 2022 · 1 comment

Comments

@coobird
Copy link
Owner

coobird commented Apr 29, 2022

Highly-compressed images in the form of large PNGs or malicious PNG decompression bombs could lead to OutOfMemoryErrors.

While I haven't researched whether decompression bombs can actually happen with the default PNG reader bundled with Java, if such things can happen, then a countermeasure against them would be nice to incorporate in Thumbnailator.

References:

@coobird coobird changed the title Protection from malicious or highly-compressed images Protection against denial-of-service from malicious or highly-compressed images Apr 29, 2022
@coobird
Copy link
Owner Author

coobird commented Apr 30, 2022

Duplicate of #105.

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

No branches or pull requests

1 participant