p PatchFirst

CVE-2026-103025

CVE-2026-103025 · bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc" chunks

CVSS 8.7 · High · EPSS 0.6% · Public exploit · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-bep-imagemeta"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

bep/imagemeta is a Go library for reading EXIF, IPTC and XMP image meta data from JPEG, TIFF, PNG, and WebP files. Prior to 0.17.3, imagemeta.Decode could exhaust memory when parsing PNG zTXt chunks whose keyword is "Raw profile type iptc": the declared chunk length can drive an allocation far larger than the input file, and the embedded zlib stream is decompressed without an output limit. The advisory reports a 42-byte input causing a 256 MB allocation and a 127 KB input inflating to 460 MB. The oversized-allocation path's memory effect depends on platform overcommit and configured GOMEMLIMIT or cgroup limits, while the decompression path reliably creates resident memory. Applications that decode untrusted PNGs with IPTC metadata processing can therefore suffer denial of service through memory exhaustion. This issue is fixed in 0.17.3.

Published
Updated

Stack: system

Affected products and versions

  • imagemeta

    Versions
    • < 0.17.3: Affected

    No fix published

  • golang-github-bep-imagemeta Debian 14

    Versions
    • 0.12.0+dfsg-1
    • 0.14.0+dfsg-1
    • 0.17.0+dfsg-1
    • 0.17.1+dfsg-1
    • 0.17.2+dfsg-1
    Affected ranges
    • ECOSYSTEM: < 1.0.1+dfsg-1

    Update to 1.0.1+dfsg-1

  • golang-github-bep-imagemeta Ubuntu 26.10

    Versions
    • 0.14.0+dfsg-1
    • 0.17.2+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-bep-imagemeta Ubuntu 26.04 LTS

    Versions
    • 0.14.0+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →