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

Report Integer Overflow in imageproc #1742

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions crates/imageproc/RUSTSEC-0000-0000.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "imageproc"
date = "2023-08-08"
url = "https://github.com/image-rs/imageproc/issues/537"
categories = ["memory-corruption"]

[versions]
patched = []
```

# Integer Overflow Occurs in imageproc::contrast::adaptive_threshold.

The vulnerability in this library stems from the improper handling of certain values when parsing a PNG image, particularly within the function adaptive_threshold(). This function may miscalculate an integer, leading to an integer overflow. If an attacker crafts a PNG with specific metadata that triggers an overflow, the library could be compromised