Vulnerabilities in pkg:maven/pl.droidsonroids.gif/android-gif-drawable

PACKAGE
Advisory Identifier: GHSA-3mm4-w7v6-4rhv
Advisory Summary

CVE-2022-23435 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Android gif drawable libraries in the Maven ecosystem. The issue involves android-gif-drawable vulerable to denial of service due to unrestricted comment length. Remediation is available by upgrading affected packages to version 1.2.24.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/pl.droidsonroids.gif/android-gif-drawable

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/pl.droidsonroids.gif/android-gif-drawable. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3mm4-w7v6-4rhv CVE-2022-23435 HIGH android-gif-drawable vulerable to denial of service due to unrestricted comment length
GHSA-x534-j49x-mqvj CVE-2019-11932 HIGH android-gif-drawable Double Free vulnerability

CVE-2022-23435 at a Glance

CVE Identifier CVE-2022-23435
GHSA Identifier GHSA-3mm4-w7v6-4rhv
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Android gif drawable
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-23435

To remediate this vulnerability, upgrade all affected Android gif drawable dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pl.droidsonroids.gif:android-gif-drawable fixed: 1.2.24
<dependency>
    <groupId>pl.droidsonroids.gif</groupId>
    <artifactId>android-gif-drawable</artifactId>
    <version>1.2.24</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=pl.droidsonroids.gif

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2022-23435, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=pl.droidsonroids.gif

Analyze the terminal output to locate any version of Android gif drawable in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.24), your application is affected.

Note: The mvn dependency:tree -Dincludes=pl.droidsonroids.gif command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Android gif drawable, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

decoding.c in android-gif-drawable before 1.2.24 does not limit the maximum length of a comment, leading to denial of service.

CVE-2022-23435 Affected Android gif drawable Versions

1 component(s)
Fixed Versions:
1.2.24
Product / Package Ecosystem Affected Versions Fixed Version
pl.droidsonroids.gif:android-gif-drawable
Maven
< 1.2.24
1.2.24

References

Frequently Asked Questions

What is CVE-2022-23435?
CVE-2022-23435 is a security vulnerability in Android gif drawable involving android-gif-drawable vulerable to denial of service due to unrestricted comment length under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Android gif drawable versions are affected?
Affected versions include releases prior to 1.2.24 across affected packages: pl.droidsonroids.gif:android-gif-drawable.
What version fixes CVE-2022-23435?
Upgrading to 1.2.24 (or the latest patched release for your respective branch) resolves the vulnerability.
Is android-gif-drawable affected?
Yes, pl.droidsonroids.gif:android-gif-drawable is affected in releases prior to 1.2.24. Upgrade your dependency to 1.2.24 or later.
What is the CVSS score of CVE-2022-23435?
CVE-2022-23435 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-23435?
CVE-2022-23435 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Maven dependencies for CVE-2022-23435?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=pl.droidsonroids.gif'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3mm4-w7v6-4rhv",
  "modified" : "2025-01-13T15:22:57Z",
  "published" : "2022-01-20T00:01:54Z",
  "aliases" : [ "CVE-2022-23435" ],
  "summary" : "android-gif-drawable vulerable to denial of service due to unrestricted comment length",
  "details" : "decoding.c in android-gif-drawable before 1.2.24 does not limit the maximum length of a comment, leading to denial of service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "pl.droidsonroids.gif:android-gif-drawable"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.24"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23435"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/koral--/android-gif-drawable/issues/792#issuecomment-1048850678"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/koral--/android-gif-drawable/commit/9f0f0c89e6fa38548163771feeb4bde84b828887"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/koral--/android-gif-drawable"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/koral--/android-gif-drawable/compare/v1.2.23...v1.2.24"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-13T15:22:57Z",
    "nvd_published_at" : "2022-01-19T01:15:00Z"
  }
}