A denial of service issue exists in the `Pack.resolve object()` function within the `dulwich/pack.py` file. The problem occurs when the resolver processes an `OFS DELTA` object; it calculates the base offset by subtracting the `delta offset` variable from the `obj offset`. If a malicious packfile is provided where `delta offset` is `0`, the calculation results in a self-reference to the current object's offset. Due to the absence of a depth counter or a check to reject zero-value offsets, the system enters an infinite recursive loop. This leads to CPU exhaustion and process crashes during operations such as clone, fetch, or cat-file.