MAL-2024-12306

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

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

Source: kam193 (6097342dec4553b4c3b0e2ad2292043de6f2579863ffadd9088c4a058c9a6026)

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": [
        {
            "source": "kam193",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/mkdocs-with-pdfs",
            "modified_time": "2024-07-26T16:53:30Z",
            "sha256": "76811b11a8276ec524f373874768ab7236c43f0f5f70a2bafc2c3a9ee879f07c",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:56.215744613Z"
        },
        {
            "source": "kam193",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/mkdocs-with-pdfs",
            "modified_time": "2024-07-26T16:53:30Z",
            "sha256": "6097342dec4553b4c3b0e2ad2292043de6f2579863ffadd9088c4a058c9a6026",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:19.399273306Z"
        },
        {
            "source": "kam193",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/mkdocs-with-pdfs",
            "modified_time": "2024-07-26T16:53:30Z",
            "sha256": "59da172b8a3b8f2759f947d6b88301be06ea277502049a18d339747f6e209de9",
            "versions": [
                "1.0.0"
            ],
            "import_time": "2025-12-10T21:38:58.522733326Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / mkdocs-with-pdfs

Package

Name
mkdocs-with-pdfs
View open source insights on deps.dev
Purl
pkg:pypi/mkdocs-with-pdfs

Affected ranges

Affected versions

1.*
1.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/mkdocs-with-pdfs/MAL-2024-12306.json"