{"answers":{"affected":"2 open source packages ship an affected version, including laravel/framework. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-19316 in the wild and no public exploit code.","fix":"Upgrade laravel/framework to 5.8.17 or later.","what":"CVE-2020-19316 is a high-severity command injection vulnerability in n/a, published on 20 Dec 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-19316 and fix it if it is affected.\n\nWhat it is: CVE-2020-19316 is a high-severity command injection vulnerability in n/a, published on 20 Dec 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-19316 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- laravel/framework (Packagist): affected all versions; fixed in 5.8.17\n- laravel/framework (Packagist): affected all versions; fixed in 5.8.17\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-2020-19316/ (Markdown: https://insights.sbomify.com/CVE-2020-19316/index.md)","id":"CVE-2020-19316","markdown":"https://insights.sbomify.com/CVE-2020-19316/index.md","name":"CVE-2020-19316","record":{"aliases":["GHSA-w2pm-r78h-4m7v"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Laravel Framework","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands via the link function in Laravel Framework, requiring an upgrade to secure the application.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"framework","vendor":"laravel"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"OS Command injection vulnerability in function link in Filesystem.php in Laravel Framework before 5.8.17.","ecosystems":["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":"OS Command Injection in Laravel Framework","id":"CVE-2020-19316","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"command_injection","year":"2020"},"n_packages":2,"n_references":2,"next":{"headline":"Memory corruption in n/a","id":"CVE-2020-19318"},"packages":[{"ecosystem":"Packagist","fixed":["5.8.17"],"introduced":["0"],"last_affected":[],"package":"laravel/framework","purl":null,"source":"GHSA-w2pm-r78h-4m7v"},{"ecosystem":"Packagist","fixed":["5.8.17"],"introduced":["0"],"last_affected":[],"package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"GHSA-w2pm-r78h-4m7v"}],"prev":{"headline":"Path traversal in n/a","id":"CVE-2020-19305"},"products":["n/a"],"published":"2021-12-20","related":[{"cvss_score":9.8,"headline":"File upload in n/a","id":"CVE-2021-43617","kev_date_added":null,"published":"2021-11-14"},{"cvss_score":8.8,"headline":"SQL injection in n/a","id":"CVE-2018-6330","kev_date_added":null,"published":"2019-03-28"},{"cvss_score":8,"headline":"Laravel Reflected XSS via Request Parameter in Debug-Mode Error Page","id":"CVE-2024-13918","kev_date_added":null,"published":"2025-03-10"},{"cvss_score":8,"headline":"Laravel Reflected XSS via Route Parameter in Debug-Mode Error Page","id":"CVE-2024-13919","kev_date_added":null,"published":"2025-03-10"},{"cvss_score":6.9,"headline":"Laravel has a File Validation Bypass","id":"CVE-2025-27515","kev_date_added":null,"published":"2025-03-05"},{"cvss_score":5.3,"headline":"Information disclosure in n/a","id":"CVE-2022-40482","kev_date_added":null,"published":"2023-04-25"}],"sources":[{"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-04","vendors":["n/a"]},"summary":"Attackers can execute arbitrary OS commands via the link function in Laravel Framework, requiring an upgrade to secure the application.","url":"https://insights.sbomify.com/CVE-2020-19316/"}