CVE-2019-11512: Contao/contao SQL Injection Vulnerability
CRITICALCVE-2019-11512 is a CRITICAL (CVSS 9.8) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Contao/contao libraries in the Packagist ecosystem. The issue involves contao sql injection in the file manager. Remediation is available by upgrading affected packages to version 4.4.39, 4.7.5.
CVE-2019-11512 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-11512
To remediate this vulnerability, upgrade all affected Contao/contao 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 contao/contao to 4.4.39
Upgrade contao/contao to 4.7.5
Upgrade contao/core-bundle to 4.4.39
Upgrade contao/core-bundle to 4.7.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for contao/contao
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-11512, inspect your project dependencies for Contao/contao:
inspect dependencies for contao/contao
Analyze the terminal output to locate any version of Contao/contao in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.4.39), 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-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Contao/contao, 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-2019-11512 Affected Contao/contao Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
contao/contao
|
Packagist |
≥ 4.1.0
< 4.4.39
|
4.4.39
|
|
contao/contao
|
Packagist |
≥ 4.5.0
< 4.7.5
|
4.7.5
|
|
contao/core-bundle
|
Packagist |
≥ 4.1.0
< 4.4.39
|
4.4.39
|
|
contao/core-bundle
|
Packagist |
≥ 4.5.0
< 4.7.5
|
4.7.5
|
References
Frequently Asked Questions
What is CVE-2019-11512?
Which Contao/contao versions are affected?
What version fixes CVE-2019-11512?
Is contao/contao affected?
Is contao/core-bundle affected?
What is the CVSS score of CVE-2019-11512?
What CWE is associated with CVE-2019-11512?
How can I check Packagist dependencies for CVE-2019-11512?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vq59-x6mq-4wgw",
"modified" : "2024-04-25T23:13:40Z",
"published" : "2022-05-24T16:49:47Z",
"aliases" : [ "CVE-2019-11512" ],
"summary" : "Contao SQL injection in the file manager",
"details" : "David Wind, penetration tester with A1 Digital, has discovered that the SQL injection vulnerability originally published under CVE-2017-16558 can still be exploited in the file manager in Contao 4. ",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/contao"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0"
}, {
"fixed" : "4.4.39"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/contao"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.5.0"
}, {
"fixed" : "4.7.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0"
}, {
"fixed" : "4.4.39"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.5.0"
}, {
"fixed" : "4.7.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11512"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/commit/87d92f823b08b91a0aeb522284537c8afcdb8aba"
}, {
"type" : "WEB",
"url" : "https://contao.org/en/news/security-vulnerability-cve-2019-11512.html"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2019-11512.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2019-11512.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T23:13:39Z",
"nvd_published_at" : "2019-07-09T21:15:00Z"
}
}