CVE-2017-16558 Contao SQL injection in the backend and listing module

Critical 9.8 Published Updated

An SQL injection vulnerability in Contao CMS allows attackers to read or modify database contents via the back end or listing module.

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

What is CVE-2017-16558?

CVE-2017-16558 is a critical SQL injection vulnerability in n/a, published on 25 Apr 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Contao 3.0.0 to 3.5.30 and 4.0.0 to 4.4.7 contains an SQL injection vulnerability in the back end as well as in the listing module.

Weakness: CWE-89

Which versions are affected by CVE-2017-16558?

12 open source packages ship an affected version, including contao/contao, contao/core-bundle and contao/listing-bundle. It affects 1 product.

PackageAffectedFixed in
contao/contao PackagistFrom 3.0.0 to 3.5.30None
contao/contao PackagistFrom 3.0.0 to 3.5.30None
contao/contao PackagistFrom 4.0.04.4.8
contao/contao PackagistFrom 4.0.04.4.8
contao/core-bundle PackagistFrom 3.0.0 to 3.5.30None
contao/core-bundle PackagistFrom 3.0.0 to 3.5.30None
6 more packages
contao/core-bundle PackagistFrom 4.0.04.4.8
contao/core-bundle PackagistFrom 4.0.04.4.8
contao/listing-bundle PackagistFrom 3.0.0 to 3.5.30None
contao/listing-bundle PackagistFrom 3.0.0 to 3.5.30None
contao/listing-bundle PackagistFrom 4.0.04.4.8
contao/listing-bundle PackagistFrom 4.0.04.4.8

Products include Contao Contao Cms.

How do I fix CVE-2017-16558?

Upgrade contao/contao to 4.4.8 or later.

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-2017-16558 being exploited?

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

Sources

Also known as GHSA-w38g-hj45-mjjp.

Is CVE-2017-16558 in your software?

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

Check your SBOMs for free