{"id":"CVE-2022-46741","kind":"vulnerability","aliases":["CVE-2022-46741","GHSA-2hvc-hwg3-hpvw"],"related":[],"title":"PaddlePaddle Out-of-bounds Read vulnerability","description":"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.","summary":"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.","severity":"critical","cvss":9.1,"epss":0.00731,"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":["cwe-125","ml-inference","package","paddlepaddle","python"],"not_affected_if":["no-untrusted-input","paddlepaddle-2.4-or-later"],"how_to_check":"- `pip show paddlepaddle` and confirm the version is below `2.4`\n- 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","status":"open","published_at":"2022-12-07T08:15:10+00:00","first_seen_at":"2026-11-16T15:58:21+00:00","triaged_at":"2026-11-16T15:58:32+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-16T15:58:32Z","model":"claude-haiku-5-5","output":{"fix":"- `paddlepaddle` `2.4`; a patch is also available in the `release/2.4` branch of the PaddlePaddle/Paddle repository","reach":"unknown","title":"PaddlePaddle: out-of-bounds read in gather_tree can leak memory contents","impact":"medium","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","paddlepaddle","ml-inference"],"confidence":0.6,"fix_status":"available","needs_auth":"unknown","worst_case":"memory contents read past buffer bounds; possible crash","analyst_note":"","how_to_check":"- `pip show paddlepaddle` and confirm the version is below `2.4`\n- Search your requirements files and lock files for `paddlepaddle`","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["paddlepaddle-2.4-or-later","no-untrusted-input"],"who_is_affected":"Teams that run PaddlePaddle versions before 2.4 to execute models, especially where model inputs or requests come from outside the organization. Systems that only use PaddlePaddle on trusted data with no outside input are lower risk. The sources do not say which operators or model types are reachable in typical deployments.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000739,"input_tokens":4633,"output_tokens":551,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-125':22B '-2022':9A,17A '-46741':10A,18A '/paddlepaddle/paddle/commit/6712e262fc6734873cc6d5ca4f45973339a88697)':81C '2.4':76C '2hvc':13A 'attack':47B 'avail':83C 'bound':5A,68C 'branch':87C 'buffer':41B 'craft':44B 'crash':62B 'cve':8A,16A 'cwe':21B 'data':60B 'end':38B 'expos':59B 'gather':31B,71C 'ghsa':12A 'ghsa-2hvc-hwg3-hpvw':11A 'github.com':80C 'github.com/paddlepaddle/paddle/commit/6712e262fc6734873cc6d5ca4f45973339a88697)':79C 'given':43B 'hpvw':15A 'hwg3':14A 'infer':25B 'input':45B,52B 'may':53B 'memori':35B,56B 'ml':24B 'ml-infer':23B 'model':51B 'oper':33B 'out-of-bound':2A,65C 'packag':26B 'paddlepaddl':1A,27B,29B,74C 'paddlepaddle':19A,20A 'past':36B 'patch':78C 'process':55B,64B 'python':28B 'read':6A,34B,54B,69C 'release/2.4':86C 'suppli':50B 'tree':32B,72C 'vulner':7A","nicknames":[],"mitigations":[],"who_affected":"Teams that run PaddlePaddle versions before 2.4 to execute models, especially where model inputs or requests come from outside the organization. Systems that only use PaddlePaddle on trusted data with no outside input are lower risk. The sources do not say which operators or model types are reachable in typical deployments.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["paddlepaddle"],"ptokens":["paddlepaddle"],"labels":["critical","cwe125","mlinference","package","paddlepaddle","pypi","python","vendor"],"campaign_type":null,"search_a":"'-2022':9A,17A '-46741':10A,18A '2hvc':13A 'bound':5A 'cve':8A,16A 'ghsa':12A 'ghsa-2hvc-hwg3-hpvw':11A 'hpvw':15A 'hwg3':14A 'out-of-bound':2A 'paddlepaddl':1A 'paddlepaddle':19A,20A 'read':6A 'vulner':7A","search_b":"'-125':22B 'attack':47B 'buffer':41B 'craft':44B 'crash':62B 'cwe':21B 'data':60B 'end':38B 'expos':59B 'gather':31B 'given':43B 'infer':25B 'input':45B,52B 'may':53B 'memori':35B,56B 'ml':24B 'ml-infer':23B 'model':51B 'oper':33B 'packag':26B 'paddlepaddl':27B,29B 'past':36B 'process':55B,64B 'python':28B 'read':34B,54B 'suppli':50B 'tree':32B","search_c":"'/paddlepaddle/paddle/commit/6712e262fc6734873cc6d5ca4f45973339a88697)':81C '2.4':76C 'avail':83C 'bound':68C 'branch':87C 'gather':71C 'github.com':80C 'github.com/paddlepaddle/paddle/commit/6712e262fc6734873cc6d5ca4f45973339a88697)':79C 'out-of-bound':65C 'paddlepaddl':74C 'patch':78C 'read':69C 'release/2.4':86C 'tree':72C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2022-12-07T08:15:10+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-2hvc-hwg3-hpvw","url":"https://github.com/advisories/GHSA-2hvc-hwg3-hpvw","severity":"critical","published_at":"2022-12-07T09:30:23+00:00","modified_at":"2026-11-16T15:53:36+00:00","first_seen_at":"2026-11-16T15:58:21+00:00","fetched_at":"2026-11-16T16:07:02+00:00","note":null},{"source":"nvd","external_id":"CVE-2022-46741","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46741","severity":null,"published_at":"2022-12-07T08:15:10+00:00","modified_at":"2026-06-17T05:12:19+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":170852,"url":"https://github.com/PaddlePaddle/Paddle/pull/47051","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":170853,"url":"https://github.com/PaddlePaddle/Paddle/commit/6712e262fc6734873cc6d5ca4f45973339a88697","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":170854,"url":"https://github.com/PaddlePaddle/Paddle/commit/ee6e6d511f9f33fc862c11722701fb5abb99ed94","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171069,"url":"https://github.com/PaddlePaddle/Paddle/blob/develop/security/advisory/pdsa-2022-001.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.00731,"url":"https://api.first.org/data/v1/epss?cve=CVE-2022-46741"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}