---
id: "CVE-2022-45908"
page: "https://infrastack.ai/live/CVE-2022-45908"
kind: "vulnerability"
aliases: ["CVE-2022-45908", "GHSA-83g7-8fch-p37m"]
title: "PaddlePaddle vulnerable to code injection via winstr"
severity: "critical"
cvss: 9.8
epss: 0.01426
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: ["audio", "cwe-94", "package", "paddlepaddle", "python"]
not_affected_if: ["fixed-window-names", "version-2.4-or-later"]
published_at: "2022-11-26T02:15:10+00:00"
first_seen_at: "2026-11-16T15:48:11+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-83g7-8fch-p37m", "first_seen_at": "2026-11-16T15:48:11+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-45908", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.01426, "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-45908"}]
---

# PaddlePaddle vulnerable to code injection via winstr

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

PaddlePaddle's paddle.audio.functional.get_window passes a user-supplied window name to eval, so attacker-controlled text is executed as Python. An attacker who can supply that input can run arbitrary code in the process using PaddlePaddle.

_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

- Check the installed version with `pip show paddlepaddle`; versions below `2.4` are affected.
- Search application code for calls to `get_window` that pass input from users or requests.

## Fix

- `paddlepaddle` moves to `2.4` or later.

## Timeline

- 2026-11-16T15:48:11+00:00 ghsa https://github.com/advisories/GHSA-83g7-8fch-p37m
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2022-45908

## Documents

- [fix] Patch: github.com https://github.com/PaddlePaddle/Paddle/commit/26c419ca386aeae3c461faf2b828d00b48e908eb
- [fix] Patch: github.com https://github.com/PaddlePaddle/Paddle/blob/develop/security/advisory/pdsa-2022-002.md

## From the sources

In PaddlePaddle before 2.4, paddle.audio.functional.get_window is vulnerable to code injection because it calls eval on a user-supplied winstr. This may lead to arbitrary code execution.

---

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