{
  "id": "CVE-2026-13708",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-13708",
  "published_at": "2026-07-06T12:04:10.659Z",
  "title": "Imager::File::JPEG versions before 1.003 for Perl leak heap memory when reading a JPEG with repeated APP13 markers in i_readjpeg_wiol",
  "vendor": "TONYC",
  "product": "Imager::File::JPEG",
  "cvss": {
    "score": 7.5,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Imager::File::JPEG versions before 1.003 for Perl leak heap memory when reading a JPEG with repeated APP13 markers in i_readjpeg_wiol.\n\ni_readjpeg_wiol walks the marker list libjpeg returns and, for each APP13 marker, allocates a new buffer with *iptc_itext = mymalloc(...) and overwrites the previous pointer without freeing it. Only the final payload is later turned into a Perl scalar and freed, so a JPEG with N such markers leaks the first N-1 payloads on every read.\n\nIn a long-lived process, such as an upload or thumbnailing service, repeated reads accumulate these leaks and exhaust available memory, a denial of service.\n\nThe same handler ships bundled in the Imager distribution, where versions before 1.032 are affected and the fix ships in 1.032.",
  "cwe": "CWE-401",
  "cvss_by_source": {
    "cisa-adp": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "TONYC",
        "product": "Imager::File::JPEG",
        "ranges": [
          "\u003c 1.003"
        ],
        "fixed_in": [
          "1.003"
        ]
      }
    ],
    "solutions": [
      "Upgrade to Imager::File::JPEG 1.003 or later, or to Imager 1.032 or later if the bundled copy is in use."
    ],
    "upgrade": [
      "Upgrade Imager::File::JPEG to 1.003 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/tonycoz/imager/commit/9f1c485ca3ee15dc261549e11afb356866552c3a.patch"
      },
      {
        "kind": "Release notes",
        "url": "https://metacpan.org/release/TONYC/Imager-File-JPEG-1.003/source/Changes"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
