{
    "CVE_data_meta": {
        "ASSIGNER": "security@php.net",
        "DATE_PUBLIC": "2022-09-27T14:28:00.000Z",
        "ID": "CVE-2022-31629",
        "STATE": "PUBLIC",
        "TITLE": "$_COOKIE names string replacement (. -> _): cookie integrity vulnerabilities"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "PHP",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "7.4.X",
                                            "version_value": "7.4.31"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "8.0.X",
                                            "version_value": "8.0.24"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "8.1.X",
                                            "version_value": "8.1.11"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "PHP Group"
                }
            ]
        }
    },
    "credit": [
        {
            "lang": "eng",
            "value": "reported by squarcina at gmail dot com"
        }
    ],
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "In PHP versions before 7.4.31, 8.0.24 and 8.1.11, the vulnerability enables network and same-site attackers to set a standard insecure cookie in the victim's browser which is treated as a `__Host-` or `__Secure-` cookie by PHP applications."
            }
        ]
    },
    "generator": {
        "engine": "Vulnogram 0.0.9"
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-20 Improper Input Validation"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "url": "https://bugs.php.net/bug.php?id=81727",
                "name": "https://bugs.php.net/bug.php?id=81727"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-0b77fbd9e7",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNIEABBH5XCXLFWWZYIDE457SPEDZTXV/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-afdea1c747",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VI3E6A3ZTH2RP7OMLJHSVFIEQBIFM6RF/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2022-f204e1d0ed",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2L5SUVYGAKSWODUQPZFBUB3AL6E6CSEV/"
            },
            {
                "refsource": "DEBIAN",
                "name": "DSA-5277",
                "url": "https://www.debian.org/security/2022/dsa-5277"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202211-03",
                "url": "https://security.gentoo.org/glsa/202211-03"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://security.netapp.com/advisory/ntap-20221209-0001/",
                "url": "https://security.netapp.com/advisory/ntap-20221209-0001/"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20221215 [SECURITY] [DLA 3243-1] php7.3 security update",
                "url": "https://lists.debian.org/debian-lts-announce/2022/12/msg00030.html"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2024-b46619f761",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2024-39d50cc975",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LSJVPJTX7T3J5V7XHR4MFNHZGP44R5XE/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2024-5e8ae0def0",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20240412 PHP security releases 8.1.28, 8.2.18, & 8.3.6",
                "url": "http://www.openwall.com/lists/oss-security/2024/04/12/11"
            }
        ]
    },
    "solution": [
        {
            "lang": "eng",
            "value": "Upgrade to PHP 7.4.31, 8.0.24, or 8.1.11."
        }
    ],
    "source": {
        "advisory": "https://bugs.php.net/bug.php?id=81727",
        "defect": [
            "81727"
        ],
        "discovery": "EXTERNAL"
    }
}