MAL-2025-191838

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/pytelegramapi/MAL-2025-191838.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-191838
Published
2025-10-20T17:57:20Z
Modified
2025-12-31T02:56:20Z
Summary
Malicious code in pytelegramapi (PyPI)
Details

-= Per source details. Do not edit below this line.=-

Source: kam193 (d50aff9e36f41642610a858c0117318ed7483aad0e4f517a1485ca2d66574c2a)

Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.


Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.

Campaign: GENERIC-standard-pypi-install-pentest

Reasons (based on the campaign):

  • The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.

  • The package overrides the install command in setup.py to execute malicious code during installation.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/pytelegramapi",
            "import_time": "2025-12-02T22:30:56.333183149Z",
            "modified_time": "2025-10-21T13:07:07.675894Z",
            "sha256": "72e0c560463c694c82e67af88377f64c9674e3f35896275d16b30fc6d831a7a9",
            "source": "kam193",
            "versions": [
                "2.32.7",
                "2.32.6",
                "2.32.5",
                "2.32.8"
            ]
        },
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/pytelegramapi",
            "import_time": "2025-12-02T23:07:19.523140708Z",
            "modified_time": "2025-10-21T13:07:07.675894Z",
            "sha256": "d50aff9e36f41642610a858c0117318ed7483aad0e4f517a1485ca2d66574c2a",
            "source": "kam193",
            "versions": [
                "2.32.7",
                "2.32.6",
                "2.32.5",
                "2.32.8"
            ]
        },
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/pytelegramapi",
            "import_time": "2025-12-30T22:39:04.335764577Z",
            "modified_time": "2025-10-21T13:07:07.675894Z",
            "sha256": "da12ed3c016dca01db44da1815fe2a61eef42a83e7b404aa42a734a1170c71b2",
            "source": "kam193",
            "versions": [
                "2.32.5",
                "2.32.6",
                "2.32.7",
                "2.32.8"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / pytelegramapi

Package

Name
pytelegramapi
View open source insights on deps.dev
Purl
pkg:pypi/pytelegramapi

Affected ranges

Affected versions

2.*
2.32.5
2.32.6
2.32.7
2.32.8

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/pytelegramapi/MAL-2025-191838.json"