)]}'
{
  "commit": "7d7445c8026fc386b9a1497b7450e9be614eb276",
  "tree": "06825ec37260b771f609132413015ba9598d2bae",
  "parents": [
    "1d00dca847453817832b599b173d2406ebd5eb63"
  ],
  "author": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Fri Nov 06 19:55:06 2026 +0100"
  },
  "committer": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Wed Nov 11 08:10:54 2026 +0100"
  },
  "message": "Submodule{Add,Update}Command: reject checkout paths entering .git\n\nA direct caller of the submodule API, not only the repo-manifest route,\ncould set a path such as \".git/hooks\" and clone or restore attacker\ncontent into the superproject\u0027s .git. assertValidSubmodulePath rejected\nonly a leading \"-\", so the path reached the clone unchecked.\n\nCall assertValidCheckoutPath(workTree, path) before cloning in\nSubmoduleAddCommand and before restoring, cloning, fetching or checking\nout in SubmoduleUpdateCommand, so a path that escapes the work tree or\nenters .git, directly or through a symlinked component, is rejected.\nSubmoduleUpdateCommand covers an already-recorded submodule, the classic\n\"clone a hostile superproject, then submodule update\" vector.\n\nAdd SubmoduleValidatorTest covering assertValidCheckoutPath: benign\npaths accepted, \".\", \"..\", \".git\" and its NTFS and HFS aliases and\ntraversal rejected, and a symlinked leading component rejected.\n\nBug: https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/404\nChange-Id: Ic11e505fd6711ac078236f99b0b28bcb9731f01a\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7083713006240d6d6f7caf10cb21317b6d5bd487",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/submodule/SubmoduleValidatorTest.java"
    },
    {
      "type": "modify",
      "old_id": "4306975f7b476fe43b102de7d15ba67560f49972",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/submodule/SubmoduleAddTest.java",
      "new_id": "b7f3a8835e35bec12dde9d13e53f01458574fa5b",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/submodule/SubmoduleAddTest.java"
    },
    {
      "type": "modify",
      "old_id": "5105dfc2e5ac287334d7fc978cc549bf0452975c",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleAddCommand.java",
      "new_id": "aab64dda35379515309a6d24d79f46b63f7e481c",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleAddCommand.java"
    },
    {
      "type": "modify",
      "old_id": "5e4b2ee0b7e269096bc75195f31d777d66875b74",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleUpdateCommand.java",
      "new_id": "1635e7a23386c08516429cfa92bdcea287661db4",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleUpdateCommand.java"
    }
  ]
}
