---
id: CVE-2023-38669
aliases:
  - GHSA-8wfh-qxxv-3q8c
  - PYSEC-2023-122
title: Use after free in PaddlePaddle
summary: Use after free in PaddlePaddle
severity: high
cvss: 8.3
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H'
vendor: paddlepaddle
product: paddlepaddle
ecosystem: pip
affected:
  - paddlepaddle < 2.5.0
patched:
  - paddlepaddle 2.5.0
published: '2023-07-26'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:49:42.590573863Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-8wfh-qxxv-3q8c'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-38669'
  - url: >-
      https://github.com/PaddlePaddle/Paddle/commit/43981874f5e1683b855eab871092fa9be58d6a44
  - url: 'https://github.com/PaddlePaddle/Paddle'
  - url: >-
      https://github.com/PaddlePaddle/Paddle/blob/develop/security/advisory/pdsa-2023-001.md
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/paddlepaddle/PYSEC-2023-122.yaml
tags:
  - osv
  - pip
epss: 0.0077
epssPercentile: 0.53657
ingestedAt: '2026-09-12T03:13:01.679Z'
---

## Overview

Use after free in paddle.diagonal in PaddlePaddle before 2.5.0. This resulted in a potentially exploitable condition.


## Affected packages

- `paddlepaddle < 2.5.0`

## Remediation

Upgrade to a patched release:

- `paddlepaddle 2.5.0`
