CVE-2022-23435:
android-gif-drawable vulerable to denial of service due to unrestricted comment length
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54244%
CWE
Published
1/20/2022
Updated
1/13/2025
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
pl.droidsonroids.gif:android-gif-drawable | maven | < 1.2.24 | 1.2.24 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the getComment function in decoding.c, which handled comment parsing without enforcing a maximum length limit. The GitHub patch explicitly adds a COMMENT_LENGTH_MAX check in this function, and the CWE-770 (resource allocation without throttling) directly maps to this unbounded memory allocation behavior. The commit diff shows the vulnerable code flow: original implementation used 'len = Bytes[0]' and 'reallocarray(info->comment, len + offset + 1)' without validation, making it the clear attack vector.