GHSA-67r3-h899-9w95 Embedded Malicious Code in ctx

Not scored Published

Attackers can steal environment variables by exploiting a compromised PyPI package that executes malicious code upon instantiation.

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-67r3-h899-9w95?

GHSA-67r3-h899-9w95 is a vulnerability in ctx, published on 2 Jun 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 which collected the content of os.environ.items() when instantiating Ctx objects.

Which versions are affected by GHSA-67r3-h899-9w95?

2 open source packages ship an affected version, including ctx.

PackageAffectedFixed in
ctx PyPIFrom 0.1.2-1None
ctx PyPIFrom 0.1.2-1None

How do I fix GHSA-67r3-h899-9w95?

No fix has been published for GHSA-67r3-h899-9w95 yet. Limit exposure of the affected software until one is available.

Is GHSA-67r3-h899-9w95 being exploited?

There is no known exploitation of GHSA-67r3-h899-9w95 in the wild and no public exploit code.

Sources

Is GHSA-67r3-h899-9w95 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free