{"id":"CVE-2026-44484","kind":"vulnerability","aliases":["CVE-2026-44484","GHSA-w37p-236h-pfx3"],"related":[],"title":"Compromise of PyTorch Lightning PyPi Package Versions","description":"# Security Advisory: Compromise of PyTorch Lightning PyPI Package Versions\n\n**Published:** 2026-04-30  \n**Last Updated:** 2026-05-12 \n\n**Github Advisory:** [CVE-2026-44484](https://github.com/advisories/GHSA-w37p-236h-pfx3)\n\nWe have identified a security incident affecting certain versions of one of our PyPI packages.\n\n## What happened\n\nWe have determined that one or more released versions of this package have been compromised and include malicious code.\n\nOur current investigation indicates that the affected versions have introduced functionality consistent with a credential harvesting mechanism. We are still actively analysing the scope and behaviour of the code.\n\nAt this stage, the root cause of the compromise is still under investigation.\n\n## What versions are affected\n\nWe are currently working to confirm the exact set of impacted versions.\n\nWe have determined the following versions as affected and ask that you delete them from your systems:\n\n- `2.6.2`\n- `2.6.3`\n\nWe will update this advisory if the versions impacted by this vulnerability change.\n\n## What you should do immediately\n\nIf you have installed or are running any potentially affected versions:\n\n- Assume the environment may be compromised  \n- Immediately rotate all credentials and secrets that may have been exposed, including:  \n  - API keys  \n  - Access tokens  \n  - SSH keys  \n  - Service account credentials  \n- Rebuild affected systems from a known clean state  \n- Pin PyTorch Lightning to version `2.6.1`  \n- Review logs for any suspicious or unauthorised activity  \n\n## Actions we have taken\n\n- Quarantined malicious versions from PyPI  \n- Recommend using version `2.6.1`: https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.6.1  \n- Revoked and rotated all internal credentials associated with our release process  \n- Initiated a full investigation into the compromise  \n\n## Ongoing investigation\n\nWe are actively working to:\n\n- Identify the exact mechanism of compromise  \n- Confirm the full set of affected versions  \n- Determine the behaviour and impact of the malicious code  \n- Assess any downstream impact to users  \n\nWe will provide updates as soon as more information becomes available.\n\n## Commitment to transparency\n\nWe take the security of our users and the integrity of our software supply chain extremely seriously.\n\nWe will continue to share timely and accurate updates as our investigation progresses.\n\n## Contact\n\nIf you have questions or believe you may be impacted, please contact us at:\n\n**security@lightning.ai**","summary":"Versions 2.6.2 and 2.6.3 of the pytorch-lightning package on PyPI were published with malicious code that the maintainer describes as consistent with credential harvesting. An attacker who gets this code installed can take API keys, tokens, SSH keys and service account credentials from the machine.","severity":"critical","cvss":9.8,"epss":0.00392,"exploited":false,"exploited_at":null,"products":[{"name":"pytorch-lightning","fixed":[],"affected":"= 2.6.2","ecosystem":"pypi"},{"name":"pytorch-lightning","fixed":[],"affected":"= 2.6.3","ecosystem":"pypi"},{"name":"lightningai pytorch lightning","fixed":[],"affected":"= 2.6.2","ecosystem":"vendor"},{"name":"lightningai pytorch lightning","fixed":[],"affected":"= 2.6.3","ecosystem":"vendor"},{"via":"cpe","name":"lightning","fixed":[],"affected":"= 2.6.2","ecosystem":"pypi"},{"via":"cpe","name":"lightning","fixed":[],"affected":"= 2.6.3","ecosystem":"pypi"}],"ecosystems":["pypi","vendor"],"tags":["ci","cwe-506","cwe-829","package","pypi","python","pytorch-lightning"],"not_affected_if":["pinned-before-2.6.2"],"how_to_check":"- Run `pip show pytorch-lightning` and look for version `2.6.2` or `2.6.3`\n- Check lockfiles and requirements files for `pytorch-lightning==2.6.2` or `pytorch-lightning==2.6.3`\n- Review build and CI logs for installs of those versions and for unexpected outbound connections from those jobs","fix":"- pytorch-lightning: move to `2.6.1`, which the maintainer recommends; the malicious versions were quarantined from PyPI\n- Rotate all credentials and secrets that may have been exposed, per the maintainer's advisory","status":"open","published_at":"2026-05-07T00:52:55+00:00","first_seen_at":"2026-11-16T16:13:27+00:00","triaged_at":"2026-11-16T16:15:08+00:00","updated_at":"2026-11-16T16:38:06+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T16:15:08Z","model":"claude-haiku-5-5","output":{"fix":"- pytorch-lightning: move to `2.6.1`, which the maintainer recommends; the malicious versions were quarantined from PyPI\n- Rotate all credentials and secrets that may have been exposed, per the maintainer's advisory","reach":"internet","title":"PyTorch Lightning PyPI releases 2.6.2 and 2.6.3 ship credential-stealing malware","impact":"high","summary":"Versions 2.6.2 and 2.6.3 of the pytorch-lightning package on PyPI were published with malicious code that the maintainer describes as consistent with credential harvesting. An attacker who gets this code installed can take API keys, tokens, SSH keys and service account credentials from the machine.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","pypi","pytorch-lightning","ci"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"credentials and secrets on the installing machine are harvested and sent out","analyst_note":"Confirm the full affected version set and the malware's behaviour from the GHSA-w37p-236h-pfx3 advisory and the maintainer's updates; the sources say the investigation is ongoing.","how_to_check":"- Run `pip show pytorch-lightning` and look for version `2.6.2` or `2.6.3`\n- Check lockfiles and requirements files for `pytorch-lightning==2.6.2` or `pytorch-lightning==2.6.3`\n- Review build and CI logs for installs of those versions and for unexpected outbound connections from those jobs","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["pinned-before-2.6.2"],"who_is_affected":"Any environment that installed pytorch-lightning 2.6.2 or 2.6.3 may have run the malicious code, including developer machines, CI runners and training servers. Projects pinned to 2.6.1 or earlier, or that never installed the affected versions, are not indicated as exposed. The maintainer says the full set of affected versions is still being confirmed, so the advisory may change.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"critical"},"cost_usd":0.000916,"input_tokens":5398,"output_tokens":753,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-04':102C '-05':107C '-12':108C '-2026':9A,17A,112C '-30':103C '-44484':10A,18A,113C '-506':35B '-829':37B '/advisories/ghsa-w37p-236h-pfx3)':116C '/lightning-ai/pytorch-lightning/releases/tag/2.6.1':323C '2.6.1':299C,320C '2.6.2':45B,228C '2.6.3':47B,229C '2026':101C,106C '236h':14A 'access':279C 'account':86B,284C 'accur':415C 'action':308C 'activ':173C,307C,346C 'advisori':92C,110C,234C 'affect':123C,159C,198C,218C,257C,287C,360C 'analys':174C 'api':79B,277C 'ask':220C 'assess':371C 'associ':330C 'assum':259C 'attack':71B 'avail':387C 'becom':386C 'behaviour':178C,364C 'believ':427C 'caus':187C 'certain':124C 'chain':405C 'chang':242C 'ci':33B 'clean':292C 'code':60B,75B,152C,181C,370C 'commit':388C 'compromis':1A,93C,148C,190C,264C,341C,354C 'confirm':204C,355C 'consist':66B,164C 'contact':421C,433C 'continu':410C 'credenti':68B,87B,167C,268C,285C,329C 'current':154C,201C 'cve':8A,16A,111C 'cwe':34B,36B 'delet':223C 'describ':64B 'determin':136C,213C,362C 'downstream':373C 'environ':261C 'exact':206C,351C 'expos':275C 'extrem':406C 'follow':215C 'full':337C,357C 'function':163C 'get':73B 'ghsa':12A 'ghsa-w37p-236h-pfx3':11A 'github':109C 'github.com':115C,322C 'github.com/advisories/ghsa-w37p-236h-pfx3)':114C 'github.com/lightning-ai/pytorch-lightning/releases/tag/2.6.1':321C 'happen':133C 'harvest':69B,168C 'identifi':119C,349C 'immedi':247C,265C 'impact':209C,238C,366C,374C,431C 'incid':122C 'includ':150C,276C 'indic':156C 'inform':385C 'initi':335C 'instal':76B,251C 'integr':400C 'intern':328C 'introduc':162C 'investig':155C,194C,338C,343C,419C 'key':80B,83B,278C,282C 'known':291C 'last':104C 'lightn':4A,43B,52B,96C,296C 'lightning':21A,24A,27A,30A,31A,32A 'lightningai':25A,28A 'log':301C 'machin':90B 'maintain':63B 'malici':59B,151C,313C,369C 'may':262C,272C,429C 'mechan':169C,352C 'one':127C,138C 'ongo':342C 'packag':6A,38B,53B,98C,131C,145C 'pfx3':15A 'pin':294C 'pleas':432C 'potenti':256C 'process':334C 'progress':420C 'provid':379C 'publish':57B,100C 'pypi':5A,39B,55B,97C,130C,316C 'python':40B 'pytorch':3A,20A,23A,26A,29A,42B,51B,95C,295C 'pytorch-lightn':41B,50B 'pytorch-lightning':19A,22A 'quarantin':312C 'question':425C 'rebuild':286C 'recommend':317C 'releas':141C,333C 'review':300C 'revok':324C 'root':186C 'rotat':266C,326C 'run':254C 'scope':176C 'secret':270C 'secur':91C,121C,394C 'security@lightning.ai':436C 'serious':407C 'servic':85B,283C 'set':207C,358C 'share':412C 'softwar':403C 'soon':382C 'ssh':82B,281C 'stage':184C 'state':293C 'still':172C,192C 'suppli':404C 'suspici':304C 'system':227C,288C 'take':78B,392C 'taken':311C 'time':413C 'token':81B,280C 'transpar':390C 'unauthoris':306C 'updat':105C,232C,380C,416C 'us':434C 'use':318C 'user':376C,397C 'version':7A,44B,99C,125C,142C,160C,196C,210C,216C,237C,258C,298C,314C,319C,361C 'vulner':241C 'w37p':13A 'work':202C,347C","nicknames":[],"mitigations":[],"who_affected":"Any environment that installed pytorch-lightning 2.6.2 or 2.6.3 may have run the malicious code, including developer machines, CI runners and training servers. Projects pinned to 2.6.1 or earlier, or that never installed the affected versions, are not indicated as exposed. The maintainer says the full set of affected versions is still being confirmed, so the advisory may change.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["lightning","lightningaipytorchlightning","pytorchlightning"],"ptokens":["lightning","lightningai","pytorch"],"labels":["ci","critical","cwe506","cwe829","package","pypi","python","pytorchlightning","vendor"],"campaign_type":null,"search_a":"'-2026':9A,17A '-44484':10A,18A '236h':14A 'compromis':1A 'cve':8A,16A 'ghsa':12A 'ghsa-w37p-236h-pfx3':11A 'lightn':4A 'lightning':21A,24A,27A,30A,31A,32A 'lightningai':25A,28A 'packag':6A 'pfx3':15A 'pypi':5A 'pytorch':3A,20A,23A,26A,29A 'pytorch-lightning':19A,22A 'version':7A 'w37p':13A","search_b":"'-506':35B '-829':37B '2.6.2':45B '2.6.3':47B 'account':86B 'api':79B 'attack':71B 'ci':33B 'code':60B,75B 'consist':66B 'credenti':68B,87B 'cwe':34B,36B 'describ':64B 'get':73B 'harvest':69B 'instal':76B 'key':80B,83B 'lightn':43B,52B 'machin':90B 'maintain':63B 'malici':59B 'packag':38B,53B 'publish':57B 'pypi':39B,55B 'python':40B 'pytorch':42B,51B 'pytorch-lightn':41B,50B 'servic':85B 'ssh':82B 'take':78B 'token':81B 'version':44B","search_c":"'-04':102C '-05':107C '-12':108C '-2026':112C '-30':103C '-44484':113C '/advisories/ghsa-w37p-236h-pfx3)':116C '/lightning-ai/pytorch-lightning/releases/tag/2.6.1':323C '2.6.1':299C,320C '2.6.2':228C '2.6.3':229C '2026':101C,106C 'access':279C 'account':284C 'accur':415C 'action':308C 'activ':173C,307C,346C 'advisori':92C,110C,234C 'affect':123C,159C,198C,218C,257C,287C,360C 'analys':174C 'api':277C 'ask':220C 'assess':371C 'associ':330C 'assum':259C 'avail':387C 'becom':386C 'behaviour':178C,364C 'believ':427C 'caus':187C 'certain':124C 'chain':405C 'chang':242C 'clean':292C 'code':152C,181C,370C 'commit':388C 'compromis':93C,148C,190C,264C,341C,354C 'confirm':204C,355C 'consist':164C 'contact':421C,433C 'continu':410C 'credenti':167C,268C,285C,329C 'current':154C,201C 'cve':111C 'delet':223C 'determin':136C,213C,362C 'downstream':373C 'environ':261C 'exact':206C,351C 'expos':275C 'extrem':406C 'follow':215C 'full':337C,357C 'function':163C 'github':109C 'github.com':115C,322C 'github.com/advisories/ghsa-w37p-236h-pfx3)':114C 'github.com/lightning-ai/pytorch-lightning/releases/tag/2.6.1':321C 'happen':133C 'harvest':168C 'identifi':119C,349C 'immedi':247C,265C 'impact':209C,238C,366C,374C,431C 'incid':122C 'includ':150C,276C 'indic':156C 'inform':385C 'initi':335C 'instal':251C 'integr':400C 'intern':328C 'introduc':162C 'investig':155C,194C,338C,343C,419C 'key':278C,282C 'known':291C 'last':104C 'lightn':96C,296C 'log':301C 'malici':151C,313C,369C 'may':262C,272C,429C 'mechan':169C,352C 'one':127C,138C 'ongo':342C 'packag':98C,131C,145C 'pin':294C 'pleas':432C 'potenti':256C 'process':334C 'progress':420C 'provid':379C 'publish':100C 'pypi':97C,130C,316C 'pytorch':95C,295C 'quarantin':312C 'question':425C 'rebuild':286C 'recommend':317C 'releas':141C,333C 'review':300C 'revok':324C 'root':186C 'rotat':266C,326C 'run':254C 'scope':176C 'secret':270C 'secur':91C,121C,394C 'security@lightning.ai':436C 'serious':407C 'servic':283C 'set':207C,358C 'share':412C 'softwar':403C 'soon':382C 'ssh':281C 'stage':184C 'state':293C 'still':172C,192C 'suppli':404C 'suspici':304C 'system':227C,288C 'take':392C 'taken':311C 'time':413C 'token':280C 'transpar':390C 'unauthoris':306C 'updat':105C,232C,380C,416C 'us':434C 'use':318C 'user':376C,397C 'version':99C,125C,142C,160C,196C,210C,216C,237C,258C,298C,314C,319C,361C 'vulner':241C 'work':202C,347C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-04-30T17:18:19+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-w37p-236h-pfx3","url":"https://github.com/advisories/GHSA-w37p-236h-pfx3","severity":"critical","published_at":"2026-05-07T00:52:55+00:00","modified_at":"2026-11-16T16:11:16+00:00","first_seen_at":"2026-11-16T16:13:27+00:00","fetched_at":"2026-11-16T16:17:15+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-44484","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44484","severity":null,"published_at":"2026-05-14T15:16:48+00:00","modified_at":"2026-11-11T20:10:00+00:00","first_seen_at":"2026-11-16T16:38:06+00:00","fetched_at":"2026-11-16T16:38:06+00:00","note":null}],"documents":[{"id":171154,"url":"https://api.github.com/repos/Lightning-AI/pytorch-lightning/security-advisories/GHSA-w37p-236h-pfx3","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":171155,"url":"https://github.com/Lightning-AI/pytorch-lightning/security/advisories/GHSA-w37p-236h-pfx3","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":"2026-04-30T17:18:19+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.00392,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-44484"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}