CVE-2013-4313 SQL injection in n/a

High 7.5 Published Updated

Remote attackers can execute SQL injection attacks against Microsoft SQL Server backends by exploiting null character handling in query strings.

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

What is CVE-2013-4313?

CVE-2013-4313 is a high-severity SQL injection vulnerability in Moodle Moodle, published on 16 Sep 2013. It can be exploited over the network, with no action from the victim.

Official description

Moodle through 2.2.11, 2.3.x before 2.3.9, 2.4.x before 2.4.6, and 2.5.x before 2.5.2 does not prevent use of '\0' characters in query strings, which might allow remote attackers to conduct SQL injection attacks against Microsoft SQL Server via a crafted string.

Weakness: CWE-89

Which versions are affected by CVE-2013-4313?

It affects 1 product.

Products include Moodle Moodle.

How do I fix CVE-2013-4313?

Upgrade to a fixed version.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2013-4313 being exploited?

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

All Moodle Moodle vulnerabilities

Sources

Also known as GHSA-gxf9-5xr3-34cc.

Is CVE-2013-4313 in your software?

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

Check your SBOMs for free