CVE-2021-21263
Vulnerability from cvelistv5
Published
2021-01-19 19:40
Modified
2024-08-03 18:09
Severity ?
EPSS score ?
Summary
Laravel is a web application framework. Versions of Laravel before 6.20.11, 7.30.2 and 8.22.1 contain a query binding exploitation. This same exploit applies to the illuminate/database package which is used by Laravel. If a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results.
References
Impacted products
{ "containers": { "adp": [ { "providerMetadata": { "dateUpdated": "2024-08-03T18:09:14.909Z", "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE" }, "references": [ { "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://github.com/laravel/framework/pull/35865" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://blog.laravel.com/security-laravel-62011-7302-8221-released" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://packagist.org/packages/laravel/framework" }, { "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://packagist.org/packages/illuminate/database" } ], "title": "CVE Program Container" } ], "cna": { "affected": [ { "product": "framework", "vendor": "laravel", "versions": [ { "status": "affected", "version": "\u003e= 6.0.0, \u003c 6.20.11" }, { "status": "affected", "version": "\u003e= 7.0.0, \u003c 7.30.2" }, { "status": "affected", "version": "\u003e= 8.0.0, \u003c 8.22.1" } ] } ], "descriptions": [ { "lang": "en", "value": "Laravel is a web application framework. Versions of Laravel before 6.20.11, 7.30.2 and 8.22.1 contain a query binding exploitation. This same exploit applies to the illuminate/database package which is used by Laravel. If a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 7.2, "baseSeverity": "HIGH", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "privilegesRequired": "NONE", "scope": "CHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-74", "description": "CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component (\u0027Injection\u0027)", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2021-01-19T19:40:18", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x" }, { "tags": [ "x_refsource_MISC" ], "url": "https://github.com/laravel/framework/pull/35865" }, { "tags": [ "x_refsource_MISC" ], "url": "https://blog.laravel.com/security-laravel-62011-7302-8221-released" }, { "tags": [ "x_refsource_MISC" ], "url": "https://packagist.org/packages/laravel/framework" }, { "tags": [ "x_refsource_MISC" ], "url": "https://packagist.org/packages/illuminate/database" } ], "source": { "advisory": "GHSA-3p32-j457-pg5x", "discovery": "UNKNOWN" }, "title": "Query Binding Exploitation in Laravel", "x_legacyV4Record": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2021-21263", "STATE": "PUBLIC", "TITLE": "Query Binding Exploitation in Laravel" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "framework", "version": { "version_data": [ { "version_value": "\u003e= 6.0.0, \u003c 6.20.11" }, { "version_value": "\u003e= 7.0.0, \u003c 7.30.2" }, { "version_value": "\u003e= 8.0.0, \u003c 8.22.1" } ] } } ] }, "vendor_name": "laravel" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "Laravel is a web application framework. Versions of Laravel before 6.20.11, 7.30.2 and 8.22.1 contain a query binding exploitation. This same exploit applies to the illuminate/database package which is used by Laravel. If a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results." } ] }, "impact": { "cvss": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 7.2, "baseSeverity": "HIGH", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "privilegesRequired": "NONE", "scope": "CHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N", "version": "3.1" } }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component (\u0027Injection\u0027)" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x", "refsource": "CONFIRM", "url": "https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x" }, { "name": "https://github.com/laravel/framework/pull/35865", "refsource": "MISC", "url": "https://github.com/laravel/framework/pull/35865" }, { "name": "https://blog.laravel.com/security-laravel-62011-7302-8221-released", "refsource": "MISC", "url": "https://blog.laravel.com/security-laravel-62011-7302-8221-released" }, { "name": "https://packagist.org/packages/laravel/framework", "refsource": "MISC", "url": "https://packagist.org/packages/laravel/framework" }, { "name": "https://packagist.org/packages/illuminate/database", "refsource": "MISC", "url": "https://packagist.org/packages/illuminate/database" } ] }, "source": { "advisory": "GHSA-3p32-j457-pg5x", "discovery": "UNKNOWN" } } } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2021-21263", "datePublished": "2021-01-19T19:40:18", "dateReserved": "2020-12-22T00:00:00", "dateUpdated": "2024-08-03T18:09:14.909Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2021-21263\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2021-01-19T20:15:13.300\",\"lastModified\":\"2024-11-21T05:47:53.180\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"Laravel is a web application framework. Versions of Laravel before 6.20.11, 7.30.2 and 8.22.1 contain a query binding exploitation. This same exploit applies to the illuminate/database package which is used by Laravel. If a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results.\"},{\"lang\":\"es\",\"value\":\"Laravel es un framework de aplicaci\u00f3n web.\u0026#xa0;Las versiones de Laravel anteriores a 6.20.11, 7.30.2 y 8.22.1 contienen una explotaci\u00f3n de enlace de consultas.\u0026#xa0;Esta misma explotaci\u00f3n se aplica al paquete illuminate/database que usa Laravel.\u0026#xa0;Si una petici\u00f3n es dise\u00f1ada donde un campo que normalmente es un valor que no es una matriz es una matriz, y esa entrada no es comprobada ni se convierte al tipo esperado antes de pasarla al generador de consultas, una cantidad inesperada de enlaces de consulta pueden ser agregadas a la consulta.\u0026#xa0;En algunas situaciones, esto simplemente conllevar\u00e1 a que el generador de consultas no devuelva resultados;\u0026#xa0;sin embargo, es posible que determinadas consultas est\u00e9n afectadas de forma que cause que la consulta devuelva resultados inesperados\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N\",\"baseScore\":7.2,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"LOW\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":3.9,\"impactScore\":2.7},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N\",\"baseScore\":5.3,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":3.9,\"impactScore\":1.4}],\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:N/AC:L/Au:N/C:N/I:P/A:N\",\"baseScore\":5.0,\"accessVector\":\"NETWORK\",\"accessComplexity\":\"LOW\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"PARTIAL\",\"availabilityImpact\":\"NONE\"},\"baseSeverity\":\"MEDIUM\",\"exploitabilityScore\":10.0,\"impactScore\":2.9,\"acInsufInfo\":false,\"obtainAllPrivilege\":false,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":false}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-74\"}]},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-89\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.0.0\",\"versionEndExcluding\":\"6.20.11\",\"matchCriteriaId\":\"B836AE41-90D9-421F-A03D-8FFA614D6036\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"7.0.0\",\"versionEndExcluding\":\"7.30.2\",\"matchCriteriaId\":\"B854A88E-3CF8-4AD3-B0F6-428D3FA518D5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"8.0.0\",\"versionEndExcluding\":\"8.22.1\",\"matchCriteriaId\":\"4938EC41-68FD-4EA4-9B44-A40B74F118BE\"}]}]}],\"references\":[{\"url\":\"https://blog.laravel.com/security-laravel-62011-7302-8221-released\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Vendor Advisory\"]},{\"url\":\"https://github.com/laravel/framework/pull/35865\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://packagist.org/packages/illuminate/database\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Product\",\"Third Party Advisory\"]},{\"url\":\"https://packagist.org/packages/laravel/framework\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Product\",\"Third Party Advisory\"]},{\"url\":\"https://blog.laravel.com/security-laravel-62011-7302-8221-released\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Vendor Advisory\"]},{\"url\":\"https://github.com/laravel/framework/pull/35865\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://packagist.org/packages/illuminate/database\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\",\"Third Party Advisory\"]},{\"url\":\"https://packagist.org/packages/laravel/framework\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Product\",\"Third Party Advisory\"]}]}}" } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.