{
    "CVE_data_meta": {
        "ASSIGNER": "security@php.net",
        "DATE_PUBLIC": "2020-03-17T05:39:00.000Z",
        "ID": "CVE-2020-7066",
        "STATE": "PUBLIC",
        "TITLE": "get_headers() silently truncates after a null byte"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "PHP Group",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "PHP",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "7.2.x below 7.2.29"
                                        },
                                        {
                                            "version_value": "7.3.x below 7.3.16"
                                        },
                                        {
                                            "version_value": "7.4.x below 7.4.4"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "credit": [
        {
            "lang": "eng",
            "value": "64796c6e69 at gmail dot com"
        }
    ],
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "In PHP versions 7.2.x below 7.2.29, 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using get_headers() with user-supplied URL, if the URL contains zero (\\0) character, the URL will be silently truncated at it. This may cause some software to make incorrect assumptions about the target of the get_headers() and possibly send some information to a wrong server."
            }
        ]
    },
    "generator": {
        "engine": "Vulnogram 0.0.9"
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 5.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "LOW",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-170 Improper Null Termination"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "url": "https://bugs.php.net/bug.php?id=79329",
                "name": "https://bugs.php.net/bug.php?id=79329"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://security.netapp.com/advisory/ntap-20200403-0001/",
                "url": "https://security.netapp.com/advisory/ntap-20200403-0001/"
            },
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20200426 [SECURITY] [DLA 2188-1] php5 security update",
                "url": "https://lists.debian.org/debian-lts-announce/2020/04/msg00021.html"
            },
            {
                "refsource": "UBUNTU",
                "name": "USN-4330-2",
                "url": "https://usn.ubuntu.com/4330-2/"
            },
            {
                "refsource": "SUSE",
                "name": "openSUSE-SU-2020:0642",
                "url": "http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00025.html"
            },
            {
                "refsource": "DEBIAN",
                "name": "DSA-4717",
                "url": "https://www.debian.org/security/2020/dsa-4717"
            },
            {
                "refsource": "DEBIAN",
                "name": "DSA-4719",
                "url": "https://www.debian.org/security/2020/dsa-4719"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://www.tenable.com/security/tns-2021-14",
                "url": "https://www.tenable.com/security/tns-2021-14"
            }
        ]
    },
    "source": {
        "defect": [
            "https://bugs.php.net/bug.php?id=79329"
        ],
        "discovery": "EXTERNAL"
    }
}