Skip to content
Heist/ feed
Back to feed
Critical

Reference counting in php_request_shutdown causes Use-After-Free

Type: advisorySources: OSV

In PHP versions 8.3.* before 8.3.19 and 8.4.* before 8.4.5, a code sequence involving __set handler or ??= operator and exceptions can lead to a use-after-free vulnerability. If the third party can control the memory layout leading to this, for example by supplying specially crafted inputs to the script, it could lead to remote code execution.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-11235
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 00:55 UTC · Revision 1

Source evidence

Reference counting in php_request_shutdown causes Use-After-Free

core-osv · Original source

Published 4 Apr 2025, 17:51 UTC

In PHP versions 8.3.* before 8.3.19 and 8.4.* before 8.4.5, a code sequence involving __set handler or ??= operator and exceptions can lead to a use-after-free vulnerability. If the third party can control the memory layout leading to this, for example by supplying specially crafted inputs to the script, it could lead to remote code execution.

osv:CVE-2024-11235
Complete source record
{
  "id": "cdd901574a8d879ae5b489dfa96d40655a4c27bc9df06ee2d59cf3bfd9f95b56",
  "url": "https://osv.dev/vulnerability/CVE-2024-11235",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Reference counting in php_request_shutdown causes Use-After-Free",
    "summary": "In PHP versions 8.3.* before 8.3.19 and 8.4.* before 8.4.5, a code sequence involving __set handler or ??= operator and exceptions can lead to a use-after-free vulnerability. If the third party can control the memory layout leading to this, for example by supplying specially crafted inputs to the script, it could lead to remote code execution.",
    "evidence": "osv:CVE-2024-11235",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2024-11235",
      "aliases": [
        "BIT-libphp-2024-11235",
        "BIT-php-2024-11235",
        "BIT-php-min-2024-11235",
        "CVE-2024-11235",
        "GHSA-rwp7-7vc6-8477"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/U:Amber"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/php/php-src",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d26068059e83fe40de3430a512471d194119bee0"
                },
                {
                  "fixed": "fdeadcd9ba0627cf1967220489ab6caa031e4034"
                },
                {
                  "introduced": "b437f2b32eb364c9496d24abcc734272e5c9c980"
                },
                {
                  "fixed": "23e05bdcf23319f4922513a91bb0d5e3925d5249"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.3.0"
                      },
                      {
                        "fixed": "8.3.19"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.4.0"
                      },
                      {
                        "fixed": "8.4.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-11235.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.730457372Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/11xxx/CVE-2024-11235.json",
        "https://github.com/php/php-src/security/advisories/GHSA-rwp7-7vc6-8477",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-11235"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-416"
        ],
        "cna_assigner": "php",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/11xxx/CVE-2024-11235.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-11235",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491363,
  "published_at": "2025-04-04T17:51:07.55+00:00"
}