CVE-2020-25614 xmlquery lacks check for whether LoadURL response is in XML format, causing denial of service

Critical 9.8 Published Updated

Attackers can cause a denial of service via SIGSEGV in the xmlquery library by providing non-XML responses to LoadURL.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-25614?

CVE-2020-25614 is a critical denial of service vulnerability in n/a, published on 16 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-20, CWE-119

Which versions are affected by CVE-2020-25614?

3 open source packages ship an affected version, including github.com/antchfx/xmlquery. It affects 1 product.

PackageAffectedFixed in
github.com/antchfx/xmlquery GoAll versions1.3.1
github.com/antchfx/xmlquery GoAll versions1.3.1
github.com/antchfx/xmlquery GoAll versions1.3.1

Products include Xmlquery Project Xmlquery.

How do I fix CVE-2020-25614?

Upgrade github.com/antchfx/xmlquery to 1.3.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2020-25614 being exploited?

There is no known exploitation of CVE-2020-25614 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2020-25614, GHSA-93m7-c69f-5cfj, GO-2020-0048, UBUNTU-CVE-2020-25614.

Is CVE-2020-25614 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free