Skip to content
Heist/ feed
Back to feed
High

Use-After-Free in FreeRDP

Type: advisorySources: OSV

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions of the 3.x beta branch are subject to a Use-After-Free issue in the `avc420_ensure_buffer` and `avc444_ensure_buffer` functions. If the value of `piDstSize[x]` is 0, `ppYUVDstData[x]` will be freed. However, in this case `ppYUVDstData[x]` will not have been updated which leads to a Use-After-Free vulnerability. This issue has been addressed in version 3.0.0-beta3. Users of the 3.x beta releases are advised to upgrade. There are no known workarounds for this vulnerability.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-40187
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 19:33 UTC · Revision 1

Source evidence

Use-After-Free in FreeRDP

core-osv · Original source

Published 31 Aug 2023, 21:21 UTC

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions of the 3.x beta branch are subject to a Use-After-Free issue in the `avc420_ensure_buffer` and `avc444_ensure_buffer` functions. If the value of `piDstSize[x]` is 0, `ppYUVDstData[x]` will be freed. However, in this case `ppYUVDstData[x]` will not have been updated which leads to a Use-After-Free vulnerability. This issue has been addressed in version 3.0.0-beta3. Users of the 3.x beta releases are advised to upgrade. There are no known workarounds for this vulnerability.

osv:CVE-2023-40187
Complete source record
{
  "id": "c98a7e17c2624cdb01a06964f7de6797817a9642fee2b4feaaebe158ab167c62",
  "url": "https://osv.dev/vulnerability/CVE-2023-40187",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Use-After-Free in FreeRDP",
    "summary": "FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions of the 3.x beta branch are subject to a Use-After-Free issue in the `avc420_ensure_buffer` and `avc444_ensure_buffer` functions. If the value of `piDstSize[x]` is 0, `ppYUVDstData[x]` will be freed. However, in this case `ppYUVDstData[x]` will not have been updated which leads to a Use-After-Free vulnerability. This issue has been addressed in version 3.0.0-beta3. Users of the 3.x beta releases are advised to upgrade. There are no known workarounds for this vulnerability.",
    "evidence": "osv:CVE-2023-40187",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-40187",
      "aliases": [
        "CVE-2023-40187",
        "GHSA-pwf9-v5p9-ch4f"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/freerdp/freerdp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f468a06d88c55b9ed484757326a9528cf27d33f4"
                },
                {
                  "fixed": "59a5726ab36338776539192cae2563951d0ce94b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "3.0.0-beta1"
                      },
                      {
                        "fixed": "3.0.0-beta3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:freerdp:freerdp:3.0.0:beta1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0-beta1"
                      },
                      {
                        "last_affected": "3.0.0-beta1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:freerdp:freerdp:3.0.0:beta2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0-beta2"
                      },
                      {
                        "last_affected": "3.0.0-beta2"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.0.0-beta1",
            "3.0.0-beta2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40187.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.516604603Z",
      "provider": "osv",
      "references": [
        "https://github.com/FreeRDP/FreeRDP/blob/5be5553e0da72178a4b94cc1ffbdace9ceb153e5/libfreerdp/codec/h264.c#L413-L427",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40187.json",
        "https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-pwf9-v5p9-ch4f",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-40187",
        "https://security.gentoo.org/glsa/202401-16"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-416"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40187.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-40187",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 520226,
  "published_at": "2023-08-31T21:21:12.787+00:00"
}