Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. kanidmd_lib
  4. ›
  5. GHSA-84jc-3hj2-hwc7

GHSA-84jc-3hj2-hwc7: kanidmd_lib: Image upload validators run before authorization; PNG validator panics on malformed input

May 6, 2026

The POST /v1/domain/_image and POST /v1/oauth2/{rs_name}/_image handlers call validate_image() on the uploaded body before the ACL check that restricts image upload to admins. Any bug in an image validator is therefore reachable by an unauthenticated remote client rather than being admin-gated.

One such bug exists today: png_has_trailer() panics on inputs shorter than 8 bytes, or whose first chunk-length field is near u32::MAX.

On a default build this has no server-wide impact. The panic unwinds only the requester’s own tokio task; the server process survives, no shared state is poisoned, and other connections are unaffected. This was reported privately rather than as a public issue because (a) the project previously treated an admin-triggered thread crash of identical impact as security-relevant (e51d0dee4), and this is reachable by a broader population; and (b) a downstream build with panic = "abort" would upgrade it to an unauthenticated process-crash DoS.

References

  • github.com/advisories/GHSA-84jc-3hj2-hwc7
  • github.com/kanidm/kanidm
  • github.com/kanidm/kanidm/security/advisories/GHSA-84jc-3hj2-hwc7

Code Behaviors & Features

Detect and mitigate GHSA-84jc-3hj2-hwc7 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.9.3

Fixed versions

  • 1.9.3

Solution

Upgrade to version 1.9.3 or above.

Impact 5.8 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound
  • CWE-20: Improper Input Validation
  • CWE-696: Incorrect Behavior Order

Source file

cargo/kanidmd_lib/GHSA-84jc-3hj2-hwc7.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:18:58 +0000.