{
  "id": "CVE-2025-14178",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-14178",
  "published_at": "2025-12-27T19:27:41.691Z",
  "title": "Heap buffer overflow in array_merge()",
  "vendor": "PHP Group",
  "product": "PHP",
  "cvss": {
    "score": 8.2,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/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": "In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, a heap buffer overflow occurs in array_merge() when the total element count of packed arrays exceeds 32-bit limits or HT_MAX_SIZE, due to an integer overflow in the precomputation of element counts using zend_hash_num_elements(). This may lead to memory corruption or crashes and affect the integrity and availability of the target server.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.5,
    "nvd": 8.2
  },
  "repos": [
    {
      "repo": "gl1tch0x1/PHP_8.1.x_Exploit",
      "url": "https://github.com/gl1tch0x1/PHP_8.1.x_Exploit",
      "created_at": "2026-04-29T03:58:13Z",
      "first_seen_at": "2026-11-15T02:31:15.731Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 35,
      "suspicious": false,
      "suspicion_reasons": [
        "README asks to download a release/binary/archive"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-03-05T19:34:28Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "PHP Group",
        "product": "PHP",
        "ranges": [
          "\u003e= 8.1.*, \u003c 8.1.34",
          "\u003e= 8.2.*, \u003c 8.2.30",
          "\u003e= 8.3.*, \u003c 8.3.29",
          "\u003e= 8.4.*, \u003c 8.4.16",
          "\u003e= 8.5.*, \u003c 8.5.1"
        ],
        "fixed_in": [
          "8.1.34",
          "8.2.30",
          "8.3.29",
          "8.4.16",
          "8.5.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PHP to 8.1.34 or 8.2.30 or 8.3.29 or 8.4.16 or 8.5.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/php/php-src/security/advisories/GHSA-h96m-rvf9-jgm2"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
