{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-20031 exists.","fix":"No fix has been published for CVE-2021-20031 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-20031 is a medium-severity vulnerability in Sonicwall Sonicos, published on 12 Oct 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-2021-20031 and fix it if it is affected.\n\nWhat it is: CVE-2021-20031 is a medium-severity vulnerability in Sonicwall Sonicos, published on 12 Oct 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: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-20031 exists.\n\nAffected product: Sonicwall Sonicos. 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-2021-20031/ (Markdown: https://insights.sbomify.com/CVE-2021-20031/index.md)","id":"CVE-2021-20031","markdown":"https://insights.sbomify.com/CVE-2021-20031/index.md","name":"CVE-2021-20031","record":{"aliases":["GHSA-467c-cx8x-xprw"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"SonicWall firewall","requires_auth":"none","summary":"Remote attackers can redirect firewall management users to arbitrary domains via Host Header manipulation, potentially facilitating phishing attacks.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"sonicwall","cpe":[{"product":"sonicos","vendor":"sonicwall"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"A Host Header Redirection vulnerability in SonicOS potentially allows a remote attacker to redirect firewall management users to arbitrary web domains.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2021-10-13","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-10-13","kind":"exploitdb","ref":"50414","stars":null,"title":"Sonicwall SonicOS 7.0 - Host Header Injection"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-20031.yaml","stars":null,"title":"SonicWall SonicOS 7.0 - Open Redirect"}],"tier":"weaponised"},"has_fix":null,"headline":"Open redirect in SonicOS","id":"CVE-2021-20031","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"sonicwall:sonicos","products":["sonicwall:sonicos"],"type":"open_redirect","year":"2021"},"n_packages":0,"n_references":2,"next":{"headline":"Misconfiguration in SonicWall Analytics On-Prem","id":"CVE-2021-20032"},"packages":[],"prev":{"headline":"Path traversal in SonicWall GMS","id":"CVE-2021-20030"},"products":["SonicOS"],"published":"2021-10-12","related":[{"cvss_score":9.8,"headline":"SonicWall SonicOS Buffer Overflow","id":"CVE-2020-5135","kev_date_added":"2022-03-15","published":"2020-10-12"},{"cvss_score":9.3,"headline":"SonicWall SonicOS Improper Access Control","id":"CVE-2024-40766","kev_date_added":"2024-09-09","published":"2024-08-23"},{"cvss_score":8.2,"headline":"SonicWall SonicOS SSLVPN Improper Authentication","id":"CVE-2024-53704","kev_date_added":"2025-02-18","published":"2025-01-09"},{"cvss_score":9.8,"headline":"Denial of service in SonicOS","id":"CVE-2025-40600","kev_date_added":null,"published":"2025-07-29"},{"cvss_score":9.8,"headline":"Auth bypass in SonicOS","id":"CVE-2024-22394","kev_date_added":null,"published":"2024-02-08"},{"cvss_score":9.8,"headline":"Memory corruption in SonicOS","id":"CVE-2022-22274","kev_date_added":null,"published":"2022-03-25"},{"cvss_score":9.8,"headline":"Missing authorization in SonicOS","id":"CVE-2019-7475","kev_date_added":null,"published":"2019-04-02"}],"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":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["SonicWall"]},"summary":"Remote attackers can redirect firewall management users to arbitrary domains via Host Header manipulation, potentially facilitating phishing attacks.","url":"https://insights.sbomify.com/CVE-2021-20031/"}