{"answers":{"affected":"2 open source packages ship an affected version, including graphitedb.","exploited":"There is no known exploitation of GHSA-qw48-84f6-28gv in the wild and no public exploit code.","fix":"Upgrade graphitedb to 0.2 or later.","what":"GHSA-qw48-84f6-28gv is a vulnerability in graphitedb, published on 18 May 2026."},"fix_prompt":"Check this codebase for GHSA-qw48-84f6-28gv and fix it if it is affected.\n\nWhat it is: GHSA-qw48-84f6-28gv is a vulnerability in graphitedb, published on 18 May 2026. \nExploitation: There is no known exploitation of GHSA-qw48-84f6-28gv in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- graphitedb (PyPI): affected all versions; fixed in 0.2\n- graphitedb (PyPI): affected all versions; fixed in 0.2\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-qw48-84f6-28gv/ (Markdown: https://insights.sbomify.com/GHSA-qw48-84f6-28gv/index.md)","id":"GHSA-qw48-84f6-28gv","markdown":"https://insights.sbomify.com/GHSA-qw48-84f6-28gv/index.md","name":"GHSA-qw48-84f6-28gv","record":{"aliases":[],"analysis":null,"analysis_generated_by":null,"assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n**Type of vulnerability:** Insecure Deserialization via Python's `pickle` module.\n\n**Who is impacted:**  \nUsers of *Graphite graph database engine* versions **before 0.2** who load database files from untrusted or third-party sources.  \nAn attacker could craft a malicious database file that executes arbitrary code when loaded by the engine. This is possible because the engine used `pickle` for serialization, which is known to be unsafe for untrusted data.\n\n### Patches\nThe vulnerability has been patched starting from **version 0.2**.  \nAll users should upgrade to **version 0.2 or later** (the current version is 0.4 at publishing time).  \nIn version 0.2 and above, the engine uses **JSON** instead of `pickle` for database storage, eliminating the deserialization risk.\n\n### Workarounds\nIf users cannot upgrade immediately:\n\n1. **Do not load database files from untrusted or unknown sources** when using versions \u003c0.2.\n2. **Migrate existing pickle-based databases** to the new JSON format using the provided migration module:\n\n```python\nfrom graphite.Migration import convert_pickle_to_json\nconvert_pickle_to_json(\"path/to/old_database.pkl\", \"path/to/new_database.json\")\n```\n\nAfter migration, you can safely use the database with version 0.2+.\n\n**Note:** Versions 0.2 and later will show a **warning** when attempting to load legacy pickle files, reminding you to migrate them. Also, **you can't load pickle files** in 0.2 and later.\n\n### Resources\n- Upgrade to [v0.2 or newer](https://github.com/mkh-user/graphite/releases)\n- Migration guide: See `graphite.Migration` module documentation\n- More on pickle security: [Python docs – pickle security](https://docs.python.org/3/library/pickle.html#module-pickle)","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Graphite Has a Pickle Deserialization Vulnerability","id":"GHSA-qw48-84f6-28gv","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":null,"year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["0.2"],"introduced":["0"],"last_affected":[],"package":"graphitedb","purl":null,"source":"GHSA-qw48-84f6-28gv"},{"ecosystem":"PyPI","fixed":["0.2"],"introduced":["0"],"last_affected":[],"package":"graphitedb","purl":"pkg:pypi/graphitedb","source":"GHSA-qw48-84f6-28gv"}],"products":null,"published":"2026-05-18","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":null,"url":"https://insights.sbomify.com/GHSA-qw48-84f6-28gv/"}