Vulnerability DatabaseRUSTSEC-2021-0143

RUSTSEC-2021-0143
Rust vulnerability analysis and mitigation

Overview

RUSTSEC-2021-0143 is a vulnerability in the exif-rs crate that could cause an infinite loop when reading PNG files. The issue was discovered in version 0.5.2 and fixed in version 0.5.3 of the crate (GitHub Commit).

Technical details

The vulnerability was caused by a missing check for empty buffers in the discard_exact() function when reading PNG files. This could lead to an infinite loop condition when processing certain PNG files. The fix involved adding an explicit check for empty buffers and returning an UnexpectedEOF error in such cases (GitHub Commit).

Impact

When exploited, this vulnerability could cause applications using the affected versions of exif-rs to enter an infinite loop while processing PNG files, potentially leading to resource exhaustion and denial of service conditions.

Exploitability

The vulnerability can be triggered by providing a specially crafted PNG file to applications using the affected versions of the exif-rs crate.

Mitigation and workarounds

Users should upgrade to exif-rs version 0.5.3 or later which contains the fix for this vulnerability. The fix adds proper error handling for unexpected EOF conditions during buffer reading operations (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-54788HIGH7.5
  • Rust logoRust
  • datadog-opentelemetry
NoYesAug 28, 2026
RUSTSEC-2026-0278HIGH7.3
  • Rust logoRust
  • zbus_polkit
NoYesAug 31, 2026
GHSA-2vh6-hw4j-32wwMEDIUM6.5
  • Rust logoRust
  • gix-packetline
NoYesAug 28, 2026
CVE-2026-53600MEDIUM6.3
  • Rust logoRust
  • zed
NoYesSep 02, 2026
RUSTSEC-2026-0272NONEN/A
  • Rust logoRust
  • stack_dst
NoYesAug 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management