CVE-2020-25614: Github.com/antchfx/xmlquery Denial of Service Vulnerability
HIGHCVE-2020-25614 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Github.com/antchfx/xmlquery libraries in the Go ecosystem. The issue involves xmlquery lacks check for whether loadurl response is in xml format, causing denial of service. Remediation is available by upgrading affected packages to version 1.3.1.
CVE-2020-25614 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2020-25614
To remediate this vulnerability, upgrade all affected Github.com/antchfx/xmlquery dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/antchfx/xmlquery to 1.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/antchfx/xmlquery
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-25614, inspect your project dependencies for Github.com/antchfx/xmlquery:
inspect dependencies for github.com/antchfx/xmlquery
Analyze the terminal output to locate any version of Github.com/antchfx/xmlquery in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/antchfx/xmlquery, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-25614 Affected Github.com/antchfx/xmlquery Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/antchfx/xmlquery
|
Go |
< 1.3.1
|
1.3.1
|
References
Frequently Asked Questions
What is CVE-2020-25614?
Which Github.com/antchfx/xmlquery versions are affected?
What version fixes CVE-2020-25614?
Is github.com/antchfx/xmlquery affected?
What is the CVSS score of CVE-2020-25614?
What CWE is associated with CVE-2020-25614?
How can I check Go dependencies for CVE-2020-25614?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-93m7-c69f-5cfj",
"modified" : "2025-01-22T16:56:37Z",
"published" : "2022-10-07T07:20:03Z",
"aliases" : [ "CVE-2020-25614" ],
"summary" : "xmlquery lacks check for whether LoadURL response is in XML format, causing denial of service",
"details" : "xmlquery before 1.3.1 lacks a check for whether a LoadURL response is in the XML format, which allows attackers to cause a denial of service (SIGSEGV) at xmlquery.(*Node).InnerText or possibly have unspecified other impact.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/antchfx/xmlquery"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-25614"
}, {
"type" : "WEB",
"url" : "https://github.com/antchfx/xmlquery/issues/39"
}, {
"type" : "WEB",
"url" : "https://github.com/antchfx/xmlquery/commit/5648b2f39e8d5d3fc903c45a4f1274829df71821"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/antchfx/xmlquery"
}, {
"type" : "WEB",
"url" : "https://github.com/antchfx/xmlquery/compare/v1.3.0...v1.3.1"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2020-0048"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-119", "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-10-07T07:20:03Z",
"nvd_published_at" : "2020-09-16T15:15:00Z"
}
}