{
  "id": "CVE-2026-40033",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40033",
  "published_at": "2026-05-26T14:08:47.535Z",
  "title": "FreeRDP - Heap-buffer-overflow in gdi_CacheToSurface via rectangle validation bypass",
  "vendor": "FreeRDP",
  "product": "FreeRDP",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "FreeRDP before 3.26.0 contains a heap-buffer-overflow vulnerability in gdi_CacheToSurface that allows remote attackers to write out-of-bounds heap memory. The vulnerability occurs because rectangle validation clamps coordinates to UINT16_MAX but performs copy operations using unclamped cache entry dimensions, enabling malicious RDP servers to trigger large out-of-bounds writes and potentially achieve remote code execution or client crash.",
  "cwe": "CWE-122",
  "cpes": [
    "cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "FreeRDP",
        "product": "FreeRDP",
        "ranges": [
          "\u003c 3.26.0"
        ],
        "fixed_in": [
          "3.26.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade FreeRDP to 3.26.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-p6r2-4hgm-m6ff"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/FreeRDP/FreeRDP/pull/12713"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/FreeRDP/FreeRDP/commit/d7508ebcd82842a691ae4941e5104d14240a89ae"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
