GHSA-4g82-3jcr-q52w Malware in ctx
A compromised PyPI package exfiltrated environment variables to a remote server, exposing sensitive credentials to attackers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is GHSA-4g82-3jcr-q52w?
GHSA-4g82-3jcr-q52w is a vulnerability in ctx, published on 25 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The ctx hosted project on PyPI was taken over via user account compromise and replaced with a malicious project which contained runtime code that collected the content of os.environ.items() when instantiating Ctx objects. The captured environment variables were sent as a base64 encoded query parameter to a heroku application running at https://anti-theft-web.herokuapp.com.
If you installed the package between May 14, 2022 and May 24, 2022, and your environment variables contain sensitive data like passwords and API keys (like AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY), we advise you to rotate your passwords and keys, then perform an audit to determine if they were exploited.
Which versions are affected by GHSA-4g82-3jcr-q52w?
2 open source packages ship an affected version, including ctx.
| Package | Affected | Fixed in |
|---|---|---|
ctx PyPI | All versions to 0.1.4 | None |
ctx PyPI | All versions to 0.1.4 | None |
How do I fix GHSA-4g82-3jcr-q52w?
No fix has been published for GHSA-4g82-3jcr-q52w yet. Limit exposure of the affected software until one is available.
Is GHSA-4g82-3jcr-q52w being exploited?
There is no known exploitation of GHSA-4g82-3jcr-q52w in the wild and no public exploit code.