Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. graphifyy
  4. ›
  5. GHSA-pcc4-rvhr-2pr8

GHSA-pcc4-rvhr-2pr8: Graphify Fortran extractor: incomplete cpp #include hardening allows arbitrary host-file read/exfiltration when indexing an untrusted repo

October 19, 2026

The Fortran extractor’s C-preprocessor step (graphify/extractors/fortran.py, _cpp_preprocess) applies an incomplete #include hardening. The -nostdinc -I /dev/null flags it relies on (comment “Security (F-007)”) do not stop a capital-F Fortran source file from including absolute paths (#include "/etc/passwd") or from path-traversing out of the corpus (#include "../../../../home/victim/.ssh/id_rsa"). cpp always searches the directory of the file being preprocessed for quoted includes and always honours absolute include paths, regardless of -nostdinc/-I. As a result, indexing an untrusted repository that contains a .F/.F90/.F95/.F03/.F08 file reads arbitrary local files off the host and inlines their contents into the knowledge graph, which is then shipped to the LLM/agent and written to the on-disk, shareable output (graph.json, GRAPH_REPORT.md, the Obsidian wiki, HTML/SVG exports).

This is the exact “corpus-side file-exfiltration vector” the F-007 comment says it is defending against; the mitigation is bypassable.

References

  • github.com/Graphify-Labs/graphify/commit/e1d9deed6a437f2c85458ef3c42519159f322b7b
  • github.com/Graphify-Labs/graphify/releases/tag/v0.9.70
  • github.com/Graphify-Labs/graphify/security/advisories/GHSA-pcc4-rvhr-2pr8
  • github.com/advisories/GHSA-pcc4-rvhr-2pr8

Code Behaviors & Features

Detect and mitigate GHSA-pcc4-rvhr-2pr8 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.7.2 before 0.9.70

Fixed versions

  • 0.9.70

Solution

Upgrade to version 0.9.70 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

pypi/graphifyy/GHSA-pcc4-rvhr-2pr8.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 20 Oct 2026 12:16:09 +0000.