{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-29181",
        "STATE": "PUBLIC",
        "TITLE": "Improper Handling of Unexpected Data Type in Nokogiri"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "nokogiri",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "< 1.13.6"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "sparklemotion"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Nokogiri is an open source XML and HTML library for Ruby. Nokogiri prior to version 1.13.6 does not type-check all inputs into the XML and HTML4 SAX parsers, allowing specially crafted untrusted inputs to cause illegal memory access errors (segfault) or reads from unrelated memory. Version 1.13.6 contains a patch for this issue. As a workaround, ensure the untrusted input is a `String` by calling `#to_s` or equivalent."
            }
        ]
    },
    "impact": {
        "cvss": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.2,
            "baseSeverity": "HIGH",
            "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:H",
            "version": "3.1"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-241: Improper Handling of Unexpected Data Type"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xh29-r2w5-wx8m",
                "refsource": "CONFIRM",
                "url": "https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xh29-r2w5-wx8m"
            },
            {
                "name": "https://github.com/sparklemotion/nokogiri/commit/db05ba9a1bd4b90aa6c76742cf6102a7c7297267",
                "refsource": "MISC",
                "url": "https://github.com/sparklemotion/nokogiri/commit/db05ba9a1bd4b90aa6c76742cf6102a7c7297267"
            },
            {
                "name": "https://github.com/sparklemotion/nokogiri/releases/tag/v1.13.6",
                "refsource": "MISC",
                "url": "https://github.com/sparklemotion/nokogiri/releases/tag/v1.13.6"
            },
            {
                "name": "https://securitylab.github.com/advisories/GHSL-2022-031_GHSL-2022-032_Nokogiri/",
                "refsource": "MISC",
                "url": "https://securitylab.github.com/advisories/GHSL-2022-031_GHSL-2022-032_Nokogiri/"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202208-29",
                "url": "https://security.gentoo.org/glsa/202208-29"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://support.apple.com/kb/HT213532",
                "url": "https://support.apple.com/kb/HT213532"
            },
            {
                "refsource": "FULLDISC",
                "name": "20221220 APPLE-SA-2022-12-13-4 macOS Ventura 13.1",
                "url": "http://seclists.org/fulldisclosure/2022/Dec/23"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-xh29-r2w5-wx8m",
        "discovery": "UNKNOWN"
    }
}