Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-103025 — Proof-of-concept and lab for CVE-2026-103025: unbounded zlib inflation in bep/imagemeta PNG zTXt iptc decoding causes memory-exhaustion DoS, with differential vuln/fixed harness. | Kitploit
Tools/GitHubGitHub/googlesky/cve-2026-103025
Web Vulnerability ScannersVulnerability AnalysisExploitationFuzzingPapers & Research
GitHubgooglesky/cve-2026-103025

CVE-2026-103025

Proof-of-concept and lab for CVE-2026-103025: unbounded zlib inflation in bep/imagemeta PNG zTXt iptc decoding causes memory-exhaustion DoS, with differential vuln/fixed harness.

View Repository
4 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    905
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    881
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    673
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    454
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    402
  • 6

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    397

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-103025 — bep/imagemeta: unbounded allocation decoding PNG zTXt iptc profiles (decompression bomb DoS)

License: MIT Research status: validated

CVECVE-2026-103025
Componentbep/imagemeta — PNG zTXt "Raw profile type iptc" path (imagedecoder_png.go)
Affected< 0.17.3
Fixed in0.17.3 — genuine vendor fix, commit 2289fdf8
CWECWE-770 (Allocation of Resources Without Limits), CWE-409 (Improper Handling of Highly Compressed Data)
ImpactMemory-exhaustion denial of service against any application decoding untrusted PNGs: a 65 KB file allocates ~471 MB; larger bombs scale linearly
VectorFile format — a crafted PNG supplied to imagemeta.Decode
Triggera zTXt chunk named Raw profile type iptc whose zlib stream expands far beyond the input size

Two paths were unbounded: the declared chunk length drove a make via readBytesVolatile (bypassing the maxBufSize guard that only covered bufferedReader), and the embedded zlib stream was inflated with an unbounded io.ReadAll. The fix moves the bound into every size-bearing read and caps the inflated output:

// v0.17.3, decompressZTXt()
p, err := io.ReadAll(io.LimitReader(z, maxBufSize+1))
if len(p) > maxBufSize {
    return nil, fmt.Errorf("uncompressed zTXt size exceeds max %d", maxBufSize)
}

1. Root cause

maxBufSize (10 MiB) protected only the buffered reader, not the volatile allocation driven by the attacker-declared chunk length, and not the zlib inflation. A small compressed stream can therefore expand to hundreds of megabytes of genuinely resident memory before any later validation runs. The fix applies the bound at the read layer and caps inflation, so both paths inherit the limit.

2. Reproduction environment

serviceimagerole
img-vulncve-2026-103025:vulnimagemeta v0.17.2
img-fixedcve-2026-103025:fixedimagemeta v0.17.3 (vendor fix)
poccve-2026-103025-poc:localstdlib-only Python driver

A Go harness crafts a minimal PNG (IHDR + zTXt iptc bomb + IEND), calls the real imagemeta.Decode, and reports the runtime.MemStats.TotalAlloc delta. A Python service runs that harness as a child and exposes the measured allocation and error.

3. Running the environment

./run-lab.sh build     # builds both tags with Go 1.25
./run-lab.sh up        # cve103025lab network: img-vuln / img-fixed
./run-lab.sh sweep     # check / exploit / probe / mitigation on both sides
./run-lab.sh down

4. The PoC

poc/poc.py (stdlib only):

  • check — 64 MB bomb; exit 1 when allocation exceeds 20 MB without a bounded-size error, 0 when capped; 3 no worker, 2 unreachable.
  • exploit — narrated stages with input size vs allocated MB.
  • probe — 16 / 64 / 128 MB bomb matrix.
  • mitigation — 0.17.3 / commit 2289fdf8.

A standalone full-chain exploit ships at exploit/exploit.py:

python3 exploit/exploit.py --host=img-vuln
# exit 1 on confirmed unbounded allocation, 0 on a safe target

5. Expected results

bomb sizeimg-vuln (0.17.2)img-fixed (0.17.3)
16 MB~122 MB allocated~50 MB, "exceeds max 10485760"
64 MB~471 MB allocated~50 MB, bounded error
128 MB~926 MB allocated~50 MB, bounded error

Captured runs: evidence/check-*-run.txt, evidence/exploit-*-run.txt, evidence/probe-*-run.txt, evidence/mitigation-*-run.txt, evidence/exploit-standalone-run.txt, evidence/versions.txt, evidence/0day-sweep.txt.

6. Environment preconditions

  • Podman (or Docker); bounded containers on the isolated cve103025lab network (2 GB per target so the vulnerable allocation is observable).
  • Outbound HTTPS at build time (GitHub tags; Go modules).

7. Additional findings (0-day sweep on the fixed line)

The probe matrix on 0.17.3 caps allocation near maxBufSize for every bomb size and returns a bounded-size error; the vulnerable line scales with the inflated size. No second unbounded path was found in the zTXt iptc branch after the fix.

8. Repository layout

README.md             this write-up
run-lab.sh            environment driver (build / up / sweep / down)
Makefile              convenience targets
poc/poc.py            the PoC (check / exploit / probe / mitigation)
exploit/exploit.py    standalone full-chain exploit
lab/lab.Dockerfile    builds both upstream tags
lab/harness/main.go   Go driver crafting the bomb + measuring allocation
lab/service.py        HTTP wrapper (POST /decode)
evidence/             captured runs of every mode on both sides
TRACKING.md           excluded (working record)

9. References

  • CVE record — https://www.cve.org/CVERecord?id=CVE-2026-103025
  • GitHub advisory — https://github.com/bep/imagemeta/security/advisories/GHSA-7hvw-3c2q-45qg
  • Vendor fix commit — https://github.com/bep/imagemeta/commit/2289fdf83fcd238d86f72e65c588da687c998437
  • Fixed release — https://github.com/bep/imagemeta/releases/tag/v0.17.3
Download Tool