{
  "affected": [
    {
      "database_specific": {
        "unresolved_ranges": [
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "42.1"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "13.2"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "7.0"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "8.0"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.7.5"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "12.04"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "14.04"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "15.10"
              }
            ]
          }
        ]
      }
    }
  ],
  "details": "Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file, which triggers a heap-based buffer overflow.",
  "id": "CVE-2016-3982",
  "modified": "2026-03-15T13:46:33.615612230Z",
  "published": "2016-04-13T16:59:24.397Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "http://lists.opensuse.org/opensuse-updates/2016-04/msg00061.html"
    },
    {
      "type": "ADVISORY",
      "url": "http://lists.opensuse.org/opensuse-updates/2016-04/msg00065.html"
    },
    {
      "type": "ADVISORY",
      "url": "http://www.debian.org/security/2016/dsa-3546"
    },
    {
      "type": "ADVISORY",
      "url": "http://www.ubuntu.com/usn/USN-2951-1"
    },
    {
      "type": "ADVISORY",
      "url": "https://security.gentoo.org/glsa/201608-01"
    },
    {
      "type": "REPORT",
      "url": "http://bugs.fi/media/afl/optipng/2/"
    },
    {
      "type": "FIX",
      "url": "https://sourceforge.net/p/optipng/bugs/57/"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}