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-109619 — Proof-of-concept and root-cause analysis for a PHP json_encode() use-after-free caused by HashTable resize during a JsonSerializable callback, with heap-grooming and type-confusion PoCs. | Kitploit
Tools/GitHubGitHub/syrex1013/cve-2026-109619
Memory ForensicsVulnerability AnalysisExploitationPapers & Research
GitHubsyrex1013/cve-2026-109619

CVE-2026-109619

Proof-of-concept and root-cause analysis for a PHP json_encode() use-after-free caused by HashTable resize during a JsonSerializable callback, with heap-grooming and type-confusion PoCs.

View Repository
1 month agoNot yet reviewed
Share

CVE-2026-109619 — PHP json_encode() Use-After-Free via HashTable Resize in JsonSerializable Callback

Severity: High (CVSS 8.1) Affected: PHP 8.4.x, 8.5.x (all current versions as of 2026-10-21) Component: ext/json — php_json_encode_array() / ZEND_HASH_FOREACH_KEY_VAL_IND Type: Use-After-Free (stale arData pointer after HashTable resize)

Summary

json_encode() iterates an object's property HashTable using ZEND_HASH_FOREACH_KEY_VAL_IND, which captures arData and nNumUsed once at loop start. A nested JsonSerializable::jsonSerialize() callback that adds new properties to the same object triggers a HashTable resize, reallocating arData. The outer loop continues iterating the old (freed) pointer — a use-after-free.

Root Cause

php_json_encode_array() in ext/json/json_encoder.c:

ZEND_HASH_FOREACH_KEY_VAL_IND(myht, ...) {
    // callback here can resize myht, freeing myht->arData
    // outer loop pointer is now stale
}

No reallocation check between iterations. The fix requires checking for arData pointer changes (as done in other ZEND_HASH_FOREACH paths).

Proof of Concept

# Basic UAF trigger
php poc.php

# Stronger trigger with heap grooming
php poc_strong.php

# Type confusion via UAF
php poc_type_confusion.php

Files

FileDescription
poc.phpBasic UAF trigger
poc_strong.phpUAF with heap grooming for higher reliability
poc_type_confusion.phpType confusion primitive via stale arData
security_disclosure.txtDisclosure email sent to [email protected]

Timeline

  • 2026-10-21: Discovered, confirmed on PHP 8.5.5, disclosed to [email protected]
  • 2026-10-21: CVE-2026-109619 assigned

Researcher

Adrian / [email protected]

Download Tool

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.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    806
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    635
  • 4

    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.

    454
  • 5

    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.

    434
  • 6

    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.

    384

Explore all tools

Browse our collection of tools

View all tools →