CVE-2021-31777: T3/dce SQL Injection Vulnerability
HIGHCVE-2021-31777 is a HIGH (CVSS 7.6) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting T3/dce libraries in the Packagist ecosystem. The issue involves sql injection in t3/dce. Remediation is available by upgrading affected packages to version 2.6.2.
CVE-2021-31777 at a Glance
Security Impact
CVSS: 7.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L).
How to Fix CVE-2021-31777
To remediate this vulnerability, upgrade all affected T3/dce 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 t3/dce to 2.6.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for t3/dce
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-31777, inspect your project dependencies for T3/dce:
inspect dependencies for t3/dce
Analyze the terminal output to locate any version of T3/dce in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.2), 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 T3/dce, 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-2021-31777 Affected T3/dce Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
t3/dce
|
Packagist |
≥ 2.2.0
< 2.6.2
|
2.6.2
|
References
Frequently Asked Questions
What is CVE-2021-31777?
Which T3/dce versions are affected?
What version fixes CVE-2021-31777?
Is t3/dce affected?
What is the CVSS score of CVE-2021-31777?
What CWE is associated with CVE-2021-31777?
How can I check Packagist dependencies for CVE-2021-31777?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5v5h-4w2g-gxxc",
"modified" : "2021-05-03T16:51:32Z",
"published" : "2021-06-08T20:12:23Z",
"aliases" : [ "CVE-2021-31777" ],
"summary" : "SQL Injection in t3/dce",
"details" : "The dce (aka Dynamic Content Element) extension 2.2.0 through 2.6.x before 2.6.2, and 2.7.x before 2.7.1, for TYPO3 allows SQL Injection via a backend user account.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "t3/dce"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.6.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-31777"
}, {
"type" : "WEB",
"url" : "https://bitbucket.org/ArminVieweg/dce/commits/998a2392f69f2153797c5ace6e8914ca309e70c7"
}, {
"type" : "WEB",
"url" : "https://excellium-services.com/cert-xlm-advisory"
}, {
"type" : "WEB",
"url" : "https://packagist.org/packages/t3/dce"
}, {
"type" : "WEB",
"url" : "https://typo3.org/security/advisory/typo3-ext-sa-2021-005"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/162429/TYPO3-6.2.1-SQL-Injection.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-03T16:51:32Z",
"nvd_published_at" : "2021-04-28T07:15:00Z"
}
}