---
id: "CVE-2022-46741"
page: "https://infrastack.ai/live/CVE-2022-46741"
kind: "vulnerability"
aliases: ["CVE-2022-46741", "GHSA-2hvc-hwg3-hpvw"]
title: "PaddlePaddle Out-of-bounds Read vulnerability"
severity: "critical"
cvss: 9.1
epss: 0.00731
exploited: false
status: "open"
category: "package"
products: [{"name": "paddlepaddle", "fixed": ["2.4"], "affected": "< 2.4", "ecosystem": "pypi"}, {"name": "paddlepaddle", "fixed": ["2.4"], "affected": "< 2.4", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-125", "ml-inference", "package", "paddlepaddle", "python"]
not_affected_if: ["no-untrusted-input", "paddlepaddle-2.4-or-later"]
published_at: "2022-12-07T08:15:10+00:00"
first_seen_at: "2026-11-16T15:58:21+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-2hvc-hwg3-hpvw", "first_seen_at": "2026-11-16T15:58:21+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-46741", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.00731, "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-46741"}]
---

# PaddlePaddle Out-of-bounds Read vulnerability

Link for people: https://infrastack.ai/live/CVE-2022-46741 (this .md is for agents)

PaddlePaddle's gather_tree operator reads memory past the end of a buffer when given crafted inputs. An attacker who can supply model inputs may read process memory, which can expose data or crash the process.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:paddlepaddle affected < 2.4 fixed 2.4
- vendor:paddlepaddle affected < 2.4 fixed 2.4

## How to check

- `pip show paddlepaddle` and confirm the version is below `2.4`
- Search your requirements files and lock files for `paddlepaddle`

## Fix

- `paddlepaddle` `2.4`; a patch is also available in the `release/2.4` branch of the PaddlePaddle/Paddle repository

## Timeline

- 2026-11-16T15:58:21+00:00 ghsa https://github.com/advisories/GHSA-2hvc-hwg3-hpvw
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2022-46741

## Documents

- [fix] Patch: github.com https://github.com/PaddlePaddle/Paddle/pull/47051
- [fix] Patch: github.com https://github.com/PaddlePaddle/Paddle/commit/6712e262fc6734873cc6d5ca4f45973339a88697
- [fix] Patch: github.com https://github.com/PaddlePaddle/Paddle/commit/ee6e6d511f9f33fc862c11722701fb5abb99ed94
- [fix] Patch: github.com https://github.com/PaddlePaddle/Paddle/blob/develop/security/advisory/pdsa-2022-001.md

## From the sources

Out-of-bounds read in `gather_tree` in PaddlePaddle before 2.4. A [patch](https://github.com/PaddlePaddle/Paddle/commit/6712e262fc6734873cc6d5ca4f45973339a88697) is available in the `release/2.4` branch.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
