A path traversal issue exists due to improper validation of submodule names and a trust inheritance flaw. The `name()` function in `gix-validate` only checks the first occurrence of `..`, allowing crafted names like `a..b/../../../.git/` to bypass the check. Furthermore, this validation is not invoked in production code paths. In `Submodule::open()`, the parent repository's `git dir trust` (set to `Trust::Full`) is cloned, which causes the system to skip ownership verification. An attacker can exploit this by crafting a malicious `.gitmodules` file, leading a tool built on gitoxide to read arbitrary git repository configurations, including embedded credentials, while bypassing safe-directory protections.