PYSEC-2022-199 backdoor in ctx version 0.1.2-1, 0.1.2-2, 0.1.4, 0.2, 0.2.1, 0.2.2, 0.2.2.1, 0.2.3, 0.2.4, 0.2.5, 0.2.6
Not scored
Published
Check this codebase for PYSEC-2022-199 and fix it if it is affected.
What it is: PYSEC-2022-199 is a vulnerability in ctx, published on 24 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of PYSEC-2022-199 in the wild and no public exploit code.
Affected packages and fixed versions:
- ctx (PyPI): affected from 0.1.2-1; no fix listed
Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.
Reference: https://insights.sbomify.com/PYSEC-2022-199/ (Markdown: https://insights.sbomify.com/PYSEC-2022-199/index.md)
A backdoor in the ctx Python package allows attackers to steal credentials from environment variables via malicious updates.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is PYSEC-2022-199?
PYSEC-2022-199 is a vulnerability in ctx, published on 24 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In PyPI ctx version 0.1.2-1, 0.1.2-2, 0.1.4, 0.2, 0.2.1, 0.2.2, 0.2.2.1, 0.2.3, 0.2.4, 0.2.5, 0.2.6 a backdoor exists in the ctx package that can be attacked via a malicious package update resulting in credential theft from environment variables
Which versions are affected by PYSEC-2022-199?
1 open source package ship an affected version, including ctx.
| Package | Affected | Fixed in |
|---|---|---|
ctx PyPI | From 0.1.2-1 | None |
How do I fix PYSEC-2022-199?
No fix has been published for PYSEC-2022-199 yet. Limit exposure of the affected software until one is available.
Is PYSEC-2022-199 being exploited?
There is no known exploitation of PYSEC-2022-199 in the wild and no public exploit code.
Sources
Also known as GSD-2022-1002521.