{"id":"CVE-2022-45908","kind":"vulnerability","aliases":["CVE-2022-45908","GHSA-83g7-8fch-p37m"],"related":[],"title":"PaddlePaddle vulnerable to code injection via winstr","description":"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.","summary":"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.","severity":"critical","cvss":9.8,"epss":0.01426,"exploited":false,"exploited_at":null,"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"],"how_to_check":"- Check the installed version with `pip show paddlepaddle`; versions below `2.4` are affected.\n- Search application code for calls to `get_window` that pass input from users or requests.","fix":"- `paddlepaddle` moves to `2.4` or later.","status":"open","published_at":"2022-11-26T02:15:10+00:00","first_seen_at":"2026-11-16T15:48:11+00:00","triaged_at":"2026-11-16T15:50:17+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T15:50:17Z","model":"claude-haiku-5-5","output":{"fix":"- `paddlepaddle` moves to `2.4` or later.","reach":"unknown","title":"PaddlePaddle: unsanitized window name lets code injection run commands","impact":"high","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","paddlepaddle","audio"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"arbitrary code runs in the process using PaddlePaddle","analyst_note":"","how_to_check":"- Check the installed version with `pip show paddlepaddle`; versions below `2.4` are affected.\n- Search application code for calls to `get_window` that pass input from users or requests.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["fixed-window-names","version-2.4-or-later"],"who_is_affected":"Any application that imports paddlepaddle below 2.4 and passes untrusted input into paddle.audio.functional.get_window is exposed. Projects that use PaddlePaddle only with fixed window names from their own code, or that never call this function, are not affected.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"critical"},"cost_usd":0.000707,"input_tokens":4569,"output_tokens":501,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2022':9A,17A '-45908':10A,18A '-94':23B '2.4':68C '83g7':13A '8fch':14A 'arbitrari':58B,90C 'attack':42B,50B 'attacker-control':41B 'audio':21B 'call':78C 'code':4A,59B,74C,91C 'control':43B 'cve':8A,16A 'cwe':22B 'eval':39B,79C 'execut':46B,92C 'ghsa':12A 'ghsa-83g7-8fch-p37m':11A 'inject':5A,75C 'input':55B 'lead':88C 'may':87C 'name':37B 'p37m':15A 'packag':24B 'paddle.audio.functional.get':29B,69C 'paddlepaddl':1A,25B,27B,64B,66C 'paddlepaddle':19A,20A 'pass':31B 'process':62B 'python':26B,48B 'run':57B 'suppli':35B,53B,84C 'text':44B 'use':63B 'user':34B,83C 'user-suppli':33B,82C 'via':6A 'vulner':2A,72C 'window':30B,36B,70C 'winstr':7A,85C","nicknames":[],"mitigations":[],"who_affected":"Any application that imports paddlepaddle below 2.4 and passes untrusted input into paddle.audio.functional.get_window is exposed. Projects that use PaddlePaddle only with fixed window names from their own code, or that never call this function, are not affected.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["paddlepaddle"],"ptokens":["paddlepaddle"],"labels":["audio","critical","cwe94","package","paddlepaddle","pypi","python","vendor"],"campaign_type":null,"search_a":"'-2022':9A,17A '-45908':10A,18A '83g7':13A '8fch':14A 'code':4A 'cve':8A,16A 'ghsa':12A 'ghsa-83g7-8fch-p37m':11A 'inject':5A 'p37m':15A 'paddlepaddl':1A 'paddlepaddle':19A,20A 'via':6A 'vulner':2A 'winstr':7A","search_b":"'-94':23B 'arbitrari':58B 'attack':42B,50B 'attacker-control':41B 'audio':21B 'code':59B 'control':43B 'cwe':22B 'eval':39B 'execut':46B 'input':55B 'name':37B 'packag':24B 'paddle.audio.functional.get':29B 'paddlepaddl':25B,27B,64B 'pass':31B 'process':62B 'python':26B,48B 'run':57B 'suppli':35B,53B 'text':44B 'use':63B 'user':34B 'user-suppli':33B 'window':30B,36B","search_c":"'2.4':68C 'arbitrari':90C 'call':78C 'code':74C,91C 'eval':79C 'execut':92C 'inject':75C 'lead':88C 'may':87C 'paddle.audio.functional.get':69C 'paddlepaddl':66C 'suppli':84C 'user':83C 'user-suppli':82C 'vulner':72C 'window':70C 'winstr':85C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2022-11-26T02:15:10+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-83g7-8fch-p37m","url":"https://github.com/advisories/GHSA-83g7-8fch-p37m","severity":"critical","published_at":"2022-11-26T03:30:27+00:00","modified_at":"2026-11-16T15:44:01+00:00","first_seen_at":"2026-11-16T15:48:11+00:00","fetched_at":"2026-11-16T15:56:53+00:00","note":null},{"source":"nvd","external_id":"CVE-2022-45908","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45908","severity":null,"published_at":"2022-11-26T02:15:10+00:00","modified_at":"2026-06-17T05:10:58+00:00","first_seen_at":"2026-11-16T16:08:50+00:00","fetched_at":"2026-11-16T16:08:50+00:00","note":null}],"documents":[{"id":170789,"url":"https://github.com/PaddlePaddle/Paddle/commit/26c419ca386aeae3c461faf2b828d00b48e908eb","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171095,"url":"https://github.com/PaddlePaddle/Paddle/blob/develop/security/advisory/pdsa-2022-002.md","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.01426,"url":"https://api.first.org/data/v1/epss?cve=CVE-2022-45908"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}