CVE-2019-11932: Android gif drawable Android-gif-drawable Double Free Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-x534-j49x-mqvj
CVSS 8.8
CWE-415
Published
Advisory Summary

CVE-2019-11932 is a HIGH (CVSS 8.8) android-gif-drawable double free vulnerability vulnerability (CWE-415: Double Free) affecting Android gif drawable libraries in the Maven ecosystem. The issue involves android-gif-drawable double free vulnerability. Remediation is available by upgrading affected packages to version 1.2.18.

CVE-2019-11932 at a Glance

CVE Identifier CVE-2019-11932
GHSA Identifier GHSA-x534-j49x-mqvj
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-415: Double Free
Affected Product Android gif drawable
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.8

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:R/S:U/C:H/I:H/A:H).

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

How to Fix CVE-2019-11932

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.18
<dependency>
    <groupId>pl.droidsonroids.gif</groupId>
    <artifactId>android-gif-drawable</artifactId>
    <version>1.2.18</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-2019-11932, 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.18), 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-415: Double Free, where the product calls free() twice on the same memory address. 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

A double free vulnerability in the DDGifSlurp function in decoding.c in the android-gif-drawable library before version 1.2.18, as used in WhatsApp for Android before version 2.19.244 and many other Android applications, allows remote attackers to execute arbitrary code or cause a denial of service when the library is used to parse a specially crafted GIF image.

CVE-2019-11932 Affected Android gif drawable Versions

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

References

Frequently Asked Questions

What is CVE-2019-11932?
CVE-2019-11932 is a security vulnerability in Android gif drawable involving android-gif-drawable Double Free vulnerability under CWE-415: Double Free.
Which Android gif drawable versions are affected?
Affected versions include releases prior to 1.2.18 across affected packages: pl.droidsonroids.gif:android-gif-drawable.
What version fixes CVE-2019-11932?
Upgrading to 1.2.18 (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.18. Upgrade your dependency to 1.2.18 or later.
What is the CVSS score of CVE-2019-11932?
CVE-2019-11932 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-11932?
CVE-2019-11932 is classified under CWE-415: Double Free (The product calls free() twice on the same memory address.).
How can I check Maven dependencies for CVE-2019-11932?
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-x534-j49x-mqvj",
  "modified" : "2025-01-13T15:21:40Z",
  "published" : "2022-05-24T16:57:50Z",
  "aliases" : [ "CVE-2019-11932" ],
  "summary" : "android-gif-drawable Double Free vulnerability",
  "details" : "A double free vulnerability in the DDGifSlurp function in decoding.c in the android-gif-drawable library before version 1.2.18, as used in WhatsApp for Android before version 2.19.244 and many other Android applications, allows remote attackers to execute arbitrary code or cause a denial of service when the library is used to parse a specially crafted GIF image.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "pl.droidsonroids.gif:android-gif-drawable"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.18"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11932"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/koral--/android-gif-drawable/pull/673"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/koral--/android-gif-drawable/pull/673/commits/4944c92761e0a14f04868cbcf4f4e86fd4b7a4a9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/koral--/android-gif-drawable/commit/cc5b4f8e43463995a84efd594f89a21f906c2d20"
  }, {
    "type" : "WEB",
    "url" : "https://awakened1712.github.io/hacking/hacking-whatsapp-gif-rce"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/wdormann/874198c1bd29c7dd2157d9fc1d858263"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/koral--/android-gif-drawable"
  }, {
    "type" : "WEB",
    "url" : "https://www.facebook.com/security/advisories/cve-2019-11932"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/154867/Whatsapp-2.19.216-Remote-Code-Execution.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/158306/WhatsApp-android-gif-drawable-Double-Free.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/fulldisclosure/2019/Nov/27"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-415" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-13T15:21:40Z",
    "nvd_published_at" : "2019-10-03T22:15:00Z"
  }
}