Skip to content

Add advisory for psd: panic via out-of-bounds slice on crafted PSD#2985

Draft
joszamama wants to merge 1 commit into
rustsec:mainfrom
joszamama:psd-panic
Draft

Add advisory for psd: panic via out-of-bounds slice on crafted PSD#2985
joszamama wants to merge 1 commit into
rustsec:mainfrom
joszamama:psd-panic

Conversation

@joszamama

@joszamama joszamama commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Affected crate(s)

  • psd (20,138 recent downloads per crates.io)

Links to upstream issue(s) or PR(s)

Severity

Denial-of-service via panic. Psd::from_bytes slices the image-data section using an unvalidated header length; a 54-byte crafted PSD triggers an out-of-bounds slice and panics in src/sections/mod.rs on psd 0.3.5. A caller parsing untrusted PSD input without catch_unwind has the thread (or process) torn down.

Checklist

  • Advisory filename(s) starts with RUSTSEC-0000-0000 as the ID
  • date field is set to the public disclosure date
  • Contains a concise and descriptive title after advisory metadata
  • Asked maintainer(s) if publishing an advisory is appropriate

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.

1 participant