{"answers":{"affected":"13 open source packages ship an affected version, including laravel/framework, laravel and illuminate/database. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-21263 in the wild and no public exploit code.","fix":"Upgrade laravel/framework to a fixed version for your release line: 6.20.11, 7.30.2 or 8.22.1.","what":"CVE-2021-21263 is a high-severity SQL injection vulnerability in laravel framework, published on 19 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-21263 and fix it if it is affected.\n\nWhat it is: CVE-2021-21263 is a high-severity SQL injection vulnerability in laravel framework, published on 19 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-21263 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- laravel/framework (Packagist): affected from 6.0.0; fixed in 6.20.11\n- laravel/framework (Packagist): affected from 6.0.0; fixed in 6.20.11\n- laravel/framework (Packagist): affected from 7.0.0; fixed in 7.30.2\n- laravel/framework (Packagist): affected from 7.0.0; fixed in 7.30.2\n- laravel/framework (Packagist): affected from 8.0.0; fixed in 8.22.1\n- laravel/framework (Packagist): affected from 8.0.0; fixed in 8.22.1\n- laravel (Bitnami): affected from 6.0.0; fixed in 6.20.11, 7.30.2, 8.22.1\n- illuminate/database (Packagist): affected from 6.0.0; fixed in 6.20.12\n- illuminate/database (Packagist): affected from 6.0.0; fixed in 6.20.12\n- illuminate/database (Packagist): affected from 7.0.0; fixed in 7.30.3\n- illuminate/database (Packagist): affected from 7.0.0; fixed in 7.30.3\n- illuminate/database (Packagist): affected from 8.0.0; fixed in 8.22.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-21263/ (Markdown: https://insights.sbomify.com/CVE-2021-21263/index.md)","id":"CVE-2021-21263","markdown":"https://insights.sbomify.com/CVE-2021-21263/index.md","name":"CVE-2021-21263","record":{"aliases":["BIT-laravel-2021-21263","CLSA-2026-1774486145","DEBIAN-CVE-2021-21263","GHSA-3p32-j457-pg5x"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Laravel web framework","requires_auth":"none","summary":"Attackers can manipulate query bindings by passing arrays instead of expected types, potentially causing SQL queries to return unexpected results.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"laravel","vendor":"laravel"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"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.","ecosystems":["Bitnami","Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Query Binding Exploitation in Laravel","id":"CVE-2021-21263","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"sql_injection","year":"2021"},"n_packages":13,"n_references":5,"next":{"headline":"Bypass of fix for CVE-2020-26231, Twig sandbox escape","id":"CVE-2021-21264"},"packages":[{"ecosystem":"Bitnami","fixed":["6.20.11","7.30.2","8.22.1"],"introduced":["6.0.0","7.0.0","8.0.0"],"last_affected":[],"package":"laravel","purl":"pkg:bitnami/laravel","source":"BIT-laravel-2021-21263"},{"ecosystem":"Packagist","fixed":["6.20.12"],"introduced":["6.0.0"],"last_affected":[],"package":"illuminate/database","purl":null,"source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["6.20.12"],"introduced":["6.0.0"],"last_affected":[],"package":"illuminate/database","purl":"pkg:composer/illuminate/database","source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["7.30.3"],"introduced":["7.0.0"],"last_affected":[],"package":"illuminate/database","purl":null,"source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["7.30.3"],"introduced":["7.0.0"],"last_affected":[],"package":"illuminate/database","purl":"pkg:composer/illuminate/database","source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["8.22.1"],"introduced":["8.0.0"],"last_affected":[],"package":"illuminate/database","purl":null,"source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["8.22.1"],"introduced":["8.0.0"],"last_affected":[],"package":"illuminate/database","purl":"pkg:composer/illuminate/database","source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["6.20.11"],"introduced":["6.0.0"],"last_affected":[],"package":"laravel/framework","purl":null,"source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["6.20.11"],"introduced":["6.0.0"],"last_affected":[],"package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["7.30.2"],"introduced":["7.0.0"],"last_affected":[],"package":"laravel/framework","purl":null,"source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["7.30.2"],"introduced":["7.0.0"],"last_affected":[],"package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["8.22.1"],"introduced":["8.0.0"],"last_affected":[],"package":"laravel/framework","purl":null,"source":"GHSA-3p32-j457-pg5x"},{"ecosystem":"Packagist","fixed":["8.22.1"],"introduced":["8.0.0"],"last_affected":[],"package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"GHSA-3p32-j457-pg5x"}],"prev":{"headline":"Flatpak sandbox escape via spawn portal","id":"CVE-2021-21261"},"products":["framework"],"published":"2021-01-19","related":[{"cvss_score":8.1,"headline":"Laravel Deserialization of Untrusted Data","id":"CVE-2018-15133","kev_date_added":"2024-01-16","published":"2018-08-09"},{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2021-28254","kev_date_added":null,"published":"2023-04-18"},{"cvss_score":7.5,"headline":"Guard bypass in Eloquent models affecting Laravel illuminate database component","id":"CVE-2020-24940","kev_date_added":null,"published":"2020-09-04"},{"cvss_score":7.5,"headline":"Improper Input Validation in Laravel","id":"CVE-2020-24941","kev_date_added":null,"published":"2020-09-04"},{"cvss_score":7.5,"headline":"Information disclosure in n/a","id":"CVE-2017-16894","kev_date_added":null,"published":"2017-11-20"},{"cvss_score":6.1,"headline":"Laravel does not properly constrain the host portion of a password-reset URL","id":"CVE-2017-9303","kev_date_added":null,"published":"2017-05-29"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["laravel"]},"summary":"Attackers can manipulate query bindings by passing arrays instead of expected types, potentially causing SQL queries to return unexpected results.","url":"https://insights.sbomify.com/CVE-2021-21263/"}