kamadak-exif is an exif parsing library written in pure Rust. In kamadak-exif version 0.5.2, there is an infinite loop in parsing crafted PNG files. Specifically, reader::read_from_container can cause an infinite loop when a crafted PNG file is given. This is fixed in version 0.5.3. No workaround is available. Applications that do not pass files with the PNG signature to Reader::read_from_container are not affected.
The product does not properly control the allocation and maintenance of a limited resource.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Kamadak-exif | Kamadak-exif_project | 0.5.2 (including) | 0.5.2 (including) |
Rust-kamadak-exif | Ubuntu | focal | * |
Rust-kamadak-exif | Ubuntu | groovy | * |
Rust-kamadak-exif | Ubuntu | hirsute | * |
Rust-kamadak-exif | Ubuntu | impish | * |
Rust-kamadak-exif | Ubuntu | kinetic | * |
Rust-kamadak-exif | Ubuntu | lunar | * |
Rust-kamadak-exif | Ubuntu | mantic | * |
Rust-kamadak-exif | Ubuntu | oracular | * |
Rust-kamadak-exif | Ubuntu | trusty | * |
Mitigation of resource exhaustion attacks requires that the target system either:
The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.
The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.