{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-129474",
        "assignerOrgId": "dd77f84a-d19a-4638-8c3d-a322d820ed2b",
        "state": "PUBLISHED",
        "assignerShortName": "php",
        "dateReserved": "2026-11-15T10:08:41.532Z",
        "datePublished": "2026-11-19T14:43:04.047Z",
        "dateUpdated": "2026-11-22T00:37:55.820Z"
    },
    "containers": {
        "cna": {
            "title": "Use-after-free in magic method backtraces can lead to remote code execution",
            "datePublic": "2026-11-19T00:00:00.000Z",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Use-after-free in magic method backtraces can lead to remote code execution.\n\nWhen collecting the arguments of a method call handled by __call() or __callStatic() for a backtrace, PHP can read stale values that may refer to freed memory. If a fatal error such as exceeding memory_limit occurs while an application enters such a call, with fatal_error_backtraces enabled (the default) and zend.exception_ignore_args disabled, a remote attacker who controls enough request data to influence memory allocation may cause memory corruption, crash the PHP worker or, with knowledge of memory addresses, execute arbitrary code. php.ini-production enables zend.exception_ignore_args, which prevents this.\n\nThis issue affects PHP versions 8.5.* before 8.5.13.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "<p>Use-after-free in magic method backtraces can lead to remote code execution.</p><p>When collecting the arguments of a method call handled by __call() or __callStatic() for a backtrace, PHP can read stale values that may refer to freed memory. If a fatal error such as exceeding memory_limit occurs while an application enters such a call, with fatal_error_backtraces enabled (the default) and zend.exception_ignore_args disabled, a remote attacker who controls enough request data to influence memory allocation may cause memory corruption, crash the PHP worker or, with knowledge of memory addresses, execute arbitrary code. php.ini-production enables zend.exception_ignore_args, which prevents this.</p><p>This issue affects PHP versions 8.5.* before 8.5.13.</p>"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "PHP Group",
                    "product": "PHP",
                    "cpes": [
                        "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"
                    ],
                    "packageURL": "pkg:software-id/php.net/php",
                    "modules": [
                        "engine"
                    ],
                    "versions": [
                        {
                            "version": "8.5.0",
                            "lessThan": "8.5.13",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "type": "CWE",
                            "cweId": "CWE-416",
                            "description": "CWE-416 Use After Free"
                        }
                    ]
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-129",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-129 Pointer Manipulation"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ],
                    "cvssV4_0": {
                        "version": "4.0",
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "attackRequirements": "PRESENT",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "HIGH",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 9.2,
                        "baseSeverity": "CRITICAL",
                        "vectorString": "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"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2",
                    "tags": [
                        "vendor-advisory"
                    ]
                }
            ],
            "source": {
                "advisory": "GHSA-8mjj-2r7p-4hg2",
                "discovery": "UNKNOWN"
            },
            "credits": [
                {
                    "lang": "en",
                    "type": "reporter",
                    "value": "Adam Korcz (Ada Logics / Anthropic)"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "Arnaud Le Blanc"
                },
                {
                    "lang": "en",
                    "type": "remediation reviewer",
                    "value": "Jakub Zelenka"
                }
            ],
            "x_generator": {
                "engine": "php-security-response"
            },
            "providerMetadata": {
                "orgId": "dd77f84a-d19a-4638-8c3d-a322d820ed2b",
                "shortName": "php",
                "dateUpdated": "2026-11-19T14:43:04.047Z"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-11-19T00:00:00+00:00",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3",
                                "id": "CVE-2026-129474"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-11-20T04:56:39.698Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2026-11-22T00:37:55.820Z"
                },
                "references": [
                    {
                        "url": "https://access.redhat.com/security/cve/cve-2026-129474"
                    },
                    {
                        "url": "https://ubuntu.com/security/CVE-2026-129474"
                    },
                    {
                        "tags": [
                            "signature"
                        ],
                        "url": "https://github.com/murrez/php2shell/blob/a8e24f4efab57f67384909d9408e42a74b973bfb/poc.py#L808-L816"
                    }
                ],
                "title": "CVE Program Container",
                "x_generator": {
                    "engine": "ADPogram 0.0.1"
                }
            }
        ]
    }
}