{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2020-12271 in the wild since at least 3 Nov 2021, including in ransomware campaigns.","fix":"No fix has been published for CVE-2020-12271 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 3 May 2022.","what":"CVE-2020-12271 is a critical SQL injection vulnerability in n/a, published on 27 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-12271 and fix it if it is affected.\n\nWhat it is: CVE-2020-12271 is a critical SQL injection vulnerability in n/a, published on 27 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2020-12271 in the wild since at least 3 Nov 2021, including in ransomware campaigns.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-12271/ (Markdown: https://insights.sbomify.com/CVE-2020-12271/index.md)","id":"CVE-2020-12271","markdown":"https://insights.sbomify.com/CVE-2020-12271/index.md","name":"CVE-2020-12271","record":{"aliases":["GHSA-hv48-76w3-p5fp"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Sophos XG Firewall","requires_auth":"none","summary":"Remote attackers can execute code and steal credentials on Sophos XG Firewalls if admin or user portals are exposed to the WAN.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"sfos","vendor":"sophos"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.0/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:C/UI:N","version":"3.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"A SQL injection issue was found in SFOS 17.0, 17.1, 17.5, and 18.0 before 2020-04-25 on Sophos XG Firewall devices, as exploited in the wild in April 2020. This affected devices configured with either the administration (HTTPS) service or the User Portal exposed on the WAN zone. A successful attack may have caused remote code execution that exfiltrated usernames and hashed passwords for the local device admin(s), portal admins, and user accounts used for remote access (but not external Active Directory or LDAP passwords)","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"exploited"},"has_fix":null,"headline":"Sophos SFOS SQL Injection","id":"CVE-2020-12271","indexable":true,"kev":{"dateAdded":"2021-11-03","dueDate":"2022-05-03","knownRansomwareCampaignUse":"Known","product":"SFOS","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Sophos","vulnerabilityName":"Sophos SFOS SQL Injection Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2020"},"n_packages":0,"n_references":3,"next":{"headline":"Other in n/a","id":"CVE-2020-12272"},"packages":[],"prev":{"headline":"Other in n/a","id":"CVE-2020-12270"},"products":["n/a"],"published":"2020-04-27","related":[{"cvss_score":9.8,"headline":"Sophos Firewall Authentication Bypass","id":"CVE-2022-1040","kev_date_added":"2022-03-31","published":"2022-03-25"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2020-11503","kev_date_added":null,"published":"2020-06-18"},{"cvss_score":8.8,"headline":"SQL injection in n/a","id":"CVE-2018-16116","kev_date_added":null,"published":"2019-06-20"},{"cvss_score":8.8,"headline":"Command injection in n/a","id":"CVE-2018-16117","kev_date_added":null,"published":"2019-06-20"},{"cvss_score":8.1,"headline":"Command injection in n/a","id":"CVE-2018-16118","kev_date_added":null,"published":"2019-06-20"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2017-18014","kev_date_added":null,"published":"2018-01-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"Remote attackers can execute code and steal credentials on Sophos XG Firewalls if admin or user portals are exposed to the WAN.","url":"https://insights.sbomify.com/CVE-2020-12271/"}