{
  "id": "security/cpp/gazebosim__sdformat/2026-11-30-cyclic-include-uri-stack-overflow",
  "title": "Cyclic <include><uri> overflows the stack when parsing SDF",
  "category": "security",
  "type": "dos",
  "severity": "low",
  "cvss": null,
  "ecosystem": "cpp",
  "project": {
    "owner": "gazebosim",
    "repo": "sdformat",
    "url": "https://github.com/gazebosim/sdformat"
  },
  "affected_versions": null,
  "status": "fixed",
  "disclosure": {
    "channel": "public-issue",
    "ghsa_id": null,
    "cve_id": null,
    "url": "https://github.com/gazebosim/sdformat/issues/1746",
    "reported_at": "2026-11-30T14:17:13+03:00",
    "published_at": "2026-11-30T14:17:13+03:00"
  },
  "summary": "A crafted SDF file whose include uri chain loops back on itself makes the parser recurse until the stack overflows and the process crashes. readFileInternal had no cycle check. The public issue records the risk as low. There is no advisory and no CVE. Reported in public issue #1746 by ucsurf; fixed by ucsurf in PR #1745 (merged by @scpeters). The fix detects the cycle and returns a FILE_READ error. It does not cap a long chain of distinct files. Fixed on main; not yet in a release.",
  "discovered_at": "2026-11-30T14:17:13+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-12-02T03:15:00+03:00",
  "pr": {
    "url": "https://github.com/gazebosim/sdformat/pull/1745",
    "state": "merged",
    "merged_at": "2026-12-02T02:38:24+03:00",
    "number": 1745,
    "issue": 1746
  },
  "references": [
    "https://github.com/gazebosim/sdformat/commit/6b7edcd4d1b01732f33acd8a381104775e112f41"
  ]
}
