MAL-2024-12328

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/postgresql-connector-python/MAL-2024-12328.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2024-12328
Published
2024-07-26T16:53:30Z
Modified
2025-12-12T20:41:38.838241Z
Summary
Malicious code in postgresql-connector-python (PyPI)
Details

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

Source: kam193 (87f55ac62324b5fc631b711e125f897d8ae10d06a9d80173463d9a5fa1915302)

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/postgresql-connector-python",
            "import_time": "2025-12-02T22:30:56.308347775Z",
            "sha256": "4847c471468eb2c2e0b8120aa704a619c6d027d2f50ee636f168dc0d9e048059",
            "modified_time": "2024-07-26T16:53:30Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "ECOSYSTEM"
                }
            ],
            "source": "kam193"
        },
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/postgresql-connector-python",
            "import_time": "2025-12-02T23:07:19.497042776Z",
            "sha256": "87f55ac62324b5fc631b711e125f897d8ae10d06a9d80173463d9a5fa1915302",
            "modified_time": "2024-07-26T16:53:30Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "ECOSYSTEM"
                }
            ],
            "source": "kam193"
        },
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/postgresql-connector-python",
            "import_time": "2025-12-10T21:38:58.611202435Z",
            "sha256": "b36366cbc65a0e7a341c06b1bf8866dfe6fb9f9d87d3d1594a0d6093c7bf1ce5",
            "modified_time": "2024-07-26T16:53:30Z",
            "source": "kam193",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / postgresql-connector-python

Package

Name
postgresql-connector-python
View open source insights on deps.dev
Purl
pkg:pypi/postgresql-connector-python

Affected ranges

Affected versions

1.*
1.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/postgresql-connector-python/MAL-2024-12328.json"