Skip to content

Add advisory for ithmb-core < 1.9.5 (progressive-JPEG OOM + PhotoDB infinite loop) - #3113

Closed
B67687 wants to merge 1 commit into
rustsec:mainfrom
B67687:ithmb-core-dos-2026
Closed

Add advisory for ithmb-core < 1.9.5 (progressive-JPEG OOM + PhotoDB infinite loop)#3113
B67687 wants to merge 1 commit into
rustsec:mainfrom
B67687:ithmb-core-dos-2026

Conversation

@B67687

@B67687 B67687 commented Aug 6, 2026

Copy link
Copy Markdown

Advisory

New advisory for ithmb-core (published by B67687/Ithmb-Codec): two denial-of-service vulnerabilities reachable from untrusted input, fixed in 1.9.5.

  1. CWE-400: crafted progressive JPEG (SOF2 65535x65535) triggers ~8 GiB coefficient allocation before any size check → deterministic SIGABRT. Root cause is in jpeg_decoder 0.3.2 (allocates during first SOS, before its buffer-limit check at EOI); fix is a read_info() pre-flight rejection using a w*h*11 byte budget.
  2. CWE-835: crafted PhotoDB container with mhii total_len==0 makes the chunk walker spin at 100% CPU forever; fix is a child_end <= pos bail-out.

Both were found via security research with working PoCs (166-byte and 24-byte fixtures). Filed by the crate author.

Note

All crates.io versions prior to 1.9.5 were permanently deleted from the registry, so the practical exposure is limited to existing lockfiles and vendored copies — but cargo audit should still flag them.

Copilot AI lite review requested due to automatic review settings August 6, 2026 02:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new RustSec advisory entry for ithmb-core describing two untrusted-input denial-of-service issues fixed in >= 1.9.5 (progressive JPEG-triggered OOM and a PhotoDB chunk-walker infinite loop).

Changes:

  • Introduces a new advisory markdown file for ithmb-core with TOML front matter and detailed vulnerability write-up.
  • Documents triggers, impact, and fixes for the two reported DoS vulnerabilities.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

package = "ithmb-core"
date = "2026-08-06"
url = "https://github.com/B67687/Ithmb-Codec"
categories = ["denial-of-service", "memory-exposure"]
@djc djc closed this Aug 6, 2026
@djc

djc commented Aug 6, 2026

Copy link
Copy Markdown
Member

You didn't use the pull request template, and this crate doesn't seem to be listed on crates.io at all.

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.

3 participants