c2pa is vulnerable to Improper Input Validation
53
CVE Score
Medium
Improper Input Validation
Before the fix, the c2pa crate's BMFF merkle verification cast a chunk location deserialized from the file's C2PA merkle uuid box to u32 and added 1 without checking while indexing chunk_hash_map. Anyone who can supply a signed BMFF media file for verification could set that location to u32::MAX and trigger an integer overflow that panics in debug builds or wraps to a wrong chunk lookup, instead of a clean validation error. The fix uses a checked conversion and checked addition, rejecting such files with a hash-mismatch error.
Upgrade the c2pa crate to 0.90.16 or later.
You are affected if you are using a version that falls within the vulnerable range and verify BMFF media files whose C2PA merkle hash uuid box is supplied by the file's author.
0.23.0 - 0.90.15
Fixed in 0.90.16c2pa is vulnerable to Improper Input Validation in versions 0.23.0 - 0.90.15.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.