{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2024-58378", "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10", "state": "PUBLISHED", "assignerShortName": "VulnCheck", "dateReserved": "2026-08-16T13:02:14.690Z", "datePublished": "2026-08-25T15:15:57.242Z", "dateUpdated": "2026-08-25T15:15:57.242Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10", "shortName": "VulnCheck", "dateUpdated": "2026-08-25T15:15:57.242Z" }, "datePublic": "2024-02-04T00:00:00.000Z", "title": "Nokogiri before 1.16.2 Use-After-Free via xmlTextReader", "descriptions": [ { "lang": "en", "value": "Nokogiri before 1.15.6 and 1.16.x before 1.16.2 (CRuby, when using the packaged libxml2) is affected by a use-after-free vulnerability in libxml2 (CVE-2024-25062) in the xmlTextReader module, which underlies Nokogiri::XML::Reader. When using the XML Reader interface with DTD validation and XInclude expansion enabled, processing a crafted XML document can lead to an xmlValidatePopElement use-after-free. Nokogiri 1.15.6 and 1.16.2 resolve this by upgrading the packaged libxml2 to 2.11.7 and 2.12.5 respectively. JRuby and installations using system libxml2 are not affected." } ], "problemTypes": [ { "descriptions": [ { "lang": "en", "description": "Use After Free", "cweId": "CWE-416", "type": "CWE" } ] } ], "affected": [ { "vendor": "sparklemotion", "product": "nokogiri", "defaultStatus": "unaffected", "packageURL": "pkg:gem/nokogiri", "versions": [ { "version": "1.16.0", "status": "affected", "versionType": "semver", "lessThan": "1.16.2" }, { "version": "1.16.2", "status": "unaffected", "versionType": "semver" } ] }, { "vendor": "sparklemotion", "product": "nokogiri", "defaultStatus": "unaffected", "packageURL": "pkg:gem/nokogiri", "versions": [ { "version": "0", "status": "affected", "versionType": "semver", "lessThan": "1.15.6" }, { "version": "1.15.6", "status": "unaffected", "versionType": "semver" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.16.0", "versionEndExcluding": "1.16.2" }, { "vulnerable": true, "criteria": "cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.15.6" } ] } ] } ], "metrics": [ { "cvssV4_0": { "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "Safety": "NOT_DEFINED", "attackComplexity": "LOW", "attackRequirements": "NONE", "attackVector": "NETWORK", "baseScore": 9.3, "baseSeverity": "CRITICAL", "exploitMaturity": "NOT_DEFINED", "privilegesRequired": "NONE", "providerUrgency": "NOT_DEFINED", "subAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "userInteraction": "NONE", "valueDensity": "NOT_DEFINED", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N", "version": "4.0", "vulnAvailabilityImpact": "HIGH", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnerabilityResponseEffort": "NOT_DEFINED" }, "format": "CVSS" }, { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 9.8, "baseSeverity": "CRITICAL", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "version": "3.1" }, "format": "CVSS" } ], "references": [ { "url": "https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xc9x-jj77-9p9j", "tags": [ "vendor-advisory" ], "name": "GitHub Security Advisory (GHSA-xc9x-jj77-9p9j)" }, { "url": "https://github.com/sparklemotion/nokogiri/commit/92721970", "tags": [ "patch" ], "name": "Patch Commit" }, { "name": "VulnCheck Advisory: Nokogiri before 1.16.2 Use-After-Free via xmlTextReader", "tags": [ "third-party-advisory" ], "url": "https://www.vulncheck.com/advisories/nokogiri-before-use-after-free-via-xmltextreader" } ], "x_generator": { "engine": "vulncheck-endgame" } } } }