{"id":"CVE-2024-0521","kind":"vulnerability","aliases":["CVE-2024-0521","GHSA-chj7-w3f6-cvfj"],"related":[],"title":"Code Injection in paddlepaddle","description":"The vulnerability arises from the way the url parameter is incorporated into the command string without proper validation or sanitization. If the url is constructed from untrusted sources, an attacker could potentially inject malicious commands.","summary":"PaddlePaddle builds a shell command string from a url parameter without validating it. An attacker who controls that URL can inject extra commands that run on the machine.","severity":"critical","cvss":9.3,"epss":0.0046,"exploited":false,"exploited_at":null,"products":[{"name":"paddlepaddle","fixed":["2.6.0"],"affected":"< 2.6.0","ecosystem":"pypi"},{"name":"paddlepaddle paddle","fixed":[],"affected":"","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["cwe-94","ml","package","paddlepaddle","python"],"not_affected_if":["pinned-2.6.0-or-later","trusted-urls-only"],"how_to_check":"- Run `pip show paddlepaddle` and compare the version with `2.6.0`\n- Search your code for calls that pass URLs taken from users or external sources into PaddlePaddle utilities","fix":"- paddlepaddle: upgrade to `2.6.0`","status":"open","published_at":"2024-01-20T21:15:43+00:00","first_seen_at":"2026-11-16T15:53:12+00:00","triaged_at":"2026-11-16T15:54:26+00:00","updated_at":"2026-11-16T16:08:50+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-16T15:54:26Z","model":"claude-haiku-5-5","output":{"fix":"- paddlepaddle: upgrade to `2.6.0`","reach":"unknown","title":"PaddlePaddle: unvalidated URL parameter lets attackers inject commands","impact":"high","summary":"PaddlePaddle builds a shell command string from a url parameter without validating it. An attacker who controls that URL can inject extra commands that run on the machine.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","paddlepaddle","ml"],"confidence":0.7,"fix_status":"available","needs_auth":"unknown","worst_case":"Attacker runs arbitrary commands on the host running PaddlePaddle.","analyst_note":"","how_to_check":"- Run `pip show paddlepaddle` and compare the version with `2.6.0`\n- Search your code for calls that pass URLs taken from users or external sources into PaddlePaddle utilities","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["trusted-urls-only","pinned-2.6.0-or-later"],"who_is_affected":"Applications that pass a url parameter, built from untrusted input, into PaddlePaddle functions that run a shell command. Installs that only use PaddlePaddle with fixed, trusted URLs are much less exposed. unknown for which exact functions are affected.","user_interaction":"unknown","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.00071,"input_tokens":4557,"output_tokens":508,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-0521':7A,15A '-2024':6A,14A '-94':20B 'aris':55C 'attack':39B,82C 'build':26B 'chj7':10A 'code':1A 'command':29B,47B,66C,87C 'construct':77C 'control':41B 'could':83C 'cve':5A,13A 'cvfj':12A 'cwe':19B 'extra':46B 'ghsa':9A 'ghsa-chj7-w3f6-cvfj':8A 'incorpor':63C 'inject':2A,45B,85C 'machin':52B 'malici':86C 'ml':21B 'packag':22B 'paddle':18A 'paddlepaddl':4A,23B,25B 'paddlepaddle':16A,17A 'paramet':34B,61C 'potenti':84C 'proper':69C 'python':24B 'run':49B 'sanit':72C 'shell':28B 'sourc':80C 'string':30B,67C 'untrust':79C 'url':33B,43B,60C,75C 'valid':36B,70C 'vulner':54C 'w3f6':11A 'way':58C 'without':35B,68C","nicknames":[],"mitigations":[],"who_affected":"Applications that pass a url parameter, built from untrusted input, into PaddlePaddle functions that run a shell command. Installs that only use PaddlePaddle with fixed, trusted URLs are much less exposed. unknown for which exact functions are affected.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["paddle","paddlepaddle","paddlepaddlepaddle"],"ptokens":["paddle","paddlepaddle"],"labels":["critical","cwe94","ml","package","paddlepaddle","pypi","python","vendor"],"campaign_type":null,"search_a":"'-0521':7A,15A '-2024':6A,14A 'chj7':10A 'code':1A 'cve':5A,13A 'cvfj':12A 'ghsa':9A 'ghsa-chj7-w3f6-cvfj':8A 'inject':2A 'paddle':18A 'paddlepaddl':4A 'paddlepaddle':16A,17A 'w3f6':11A","search_b":"'-94':20B 'attack':39B 'build':26B 'command':29B,47B 'control':41B 'cwe':19B 'extra':46B 'inject':45B 'machin':52B 'ml':21B 'packag':22B 'paddlepaddl':23B,25B 'paramet':34B 'python':24B 'run':49B 'shell':28B 'string':30B 'url':33B,43B 'valid':36B 'without':35B","search_c":"'aris':55C 'attack':82C 'command':66C,87C 'construct':77C 'could':83C 'incorpor':63C 'inject':85C 'malici':86C 'paramet':61C 'potenti':84C 'proper':69C 'sanit':72C 'sourc':80C 'string':67C 'untrust':79C 'url':60C,75C 'valid':70C 'vulner':54C 'way':58C 'without':68C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2024-01-20T21:15:43+00:00","kev":null,"cvss_vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-chj7-w3f6-cvfj","url":"https://github.com/advisories/GHSA-chj7-w3f6-cvfj","severity":"critical","published_at":"2024-01-20T21:30:25+00:00","modified_at":"2026-11-16T15:48:20+00:00","first_seen_at":"2026-11-16T15:53:12+00:00","fetched_at":"2026-11-16T15:56:53+00:00","note":null},{"source":"nvd","external_id":"CVE-2024-0521","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0521","severity":null,"published_at":"2024-01-20T21:15:43+00:00","modified_at":"2026-06-17T06:53:41+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":171082,"url":"https://huntr.com/bounties/a569c64b-1e2b-4bed-a19f-47fd5a3da453","title":"Patch: huntr.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: huntr.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.0046,"url":"https://api.first.org/data/v1/epss?cve=CVE-2024-0521"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}