Malicious Code in gitpythoon (PyPI)
Summary
MAL-2023-1867: Malicious code in gitpythoon (PyPI). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
gitpythoon is a Python package available on PyPI that provides functionality for interacting with Git repositories. It allows users to perform various Git operations such as cloning, committing, and pushing changes. The package is widely used in Python projects that involve version control with Git. However, a recent vulnerability has been discovered in gitpythoon that allows attackers to distribute malicious packages via PyPI.
Vulnerability Detail
The vulnerability in gitpythoon allows attackers to distribute malicious packages via PyPI. In this specific case, an attacker has distributed over 900 malicious packages through PyPI, infecting local browsers with a malicious extension. This extension manipulates the clipboard and replaces crypto wallet addresses, potentially leading to financial losses for users. The malicious packages were identified using the Checkmarx database, and the specific package version affected is gitpythoon 0 or later.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall gitpythoon
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by being cautious when installing packages from PyPI and verifying the integrity of the packages before usage.
Conclusion
The vulnerability in gitpythoon allows attackers to distribute malicious packages via PyPI, potentially compromising the security of users' systems and leading to financial losses. It is crucial to update gitpythoon to a secure version and exercise caution when installing packages from PyPI. Tools like Vulert can help in identifying and monitoring vulnerabilities in your project's dependencies. For further support and assistance in vulnerability remediation, you can reach out to security@devnack.com.
See every vulnerability recorded for gitpythoon →
FAQ
You can use tools like Vulert to scan your project's Pipfile.lock and check for any vulnerable dependencies, including gitpythoon. Vulert provides real-time monitoring and alerts for open-source vulnerabilities in software.
Using a vulnerable version of gitpythoon can result in the installation of malicious packages on your system. These packages can compromise the security of your browser, manipulate your clipboard, and replace crypto wallet addresses, potentially leading to financial losses.
The specific malicious packages identified in this vulnerability report have been removed from PyPI. However, it is important to remain vigilant and ensure that you only install trusted packages from reputable sources.
There are alternative Git interaction packages available in the Python ecosystem that can be used as alternatives to gitpythoon. It is recommended to evaluate these alternatives and choose a package that is actively maintained and has a good security track record.
If you come across any suspicious packages or security issues related to gitpythoon, you can report them to the maintainers of gitpythoon or the PyPI security team. Additionally, you can also report such issues to security@devnack.com for further investigation and support.