DHI-23fi-cjdh-7us3-hsbt

Source
https://scout.docker.com/v/DHI-23fi-cjdh-7us3-hsbt
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-23fi-cjdh-7us3-hsbt.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-23fi-cjdh-7us3-hsbt
Upstream
Published
2026-11-13T20:18:06Z
Modified
2026-11-20T17:00:18Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
  • 7.1 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
Summary
### Summary
Details

Summary

GitPython 3.1.59 blocks a previously available local-file read path through unsafe git diff options such as -O/--orderfile.

However, the high-level diff API still permits --no-index with the default allow_unsafe_options=False.

--no-index changes the semantics of the paths arguments: instead of repository-relative pathspecs, Git interprets them as arbitrary filesystem paths.

When combined with the still-allowed -I/--ignore-matching-lines option, this creates a content-dependent Boolean oracle over a caller-selected local file.

This was reproduced against the published GitPython 3.1.59 wheel.

The original unsafe-option path is blocked in 3.1.59, while this alternate path remains reachable without setting allow_unsafe_options=True.

Details

Confirmed API surface:

repo.index.diff( None, no_index=True, I=pattern, paths=[baseline_path, target_path], create_patch=True, )

The relevant behavior is:

  1. --no-index makes the two values supplied via paths filesystem operands rather than repository pathspecs.
  2. -I/--ignore-matching-lines makes Git's result depend on whether the supplied regular expression matches the relevant file content.
  3. GitPython exposes the resulting bit through distinguishable behavior:
    • matching condition: normal return with an empty DiffIndex
    • non-matching condition: GitCommandError with exit status 1

An application that forwards attacker-influenced diff options and paths and exposes the success/error distinction can therefore be queried repeatedly to recover a guessable local single-line secret.

The issue was confirmed with the default allow_unsafe_options=False.

The behavior does not require the caller to explicitly opt into GitPython's unsafe-option mode.

Verified intended security boundary:

  • GitPython 3.1.58 accepts the earlier -O/--orderfile local-file input path.
  • GitPython 3.1.59 rejects that same path with UnsafeOptionError.
  • GitPython 3.1.59 still permits the --no-index alternate path described above.

This appears to be an alternate route to the same local-file confidentiality property that the 3.1.59 diff option hardening is intended to protect.

PoC

A minimal reproducer, controlled extraction demonstrator, proof matrix, and proposed remediation are included in the attached package.

gitpython-3159-maintainer-evidence.zip

The minimal reproducer creates only temporary researcher-controlled files and demonstrates the following predicate:

correct prefix -> normal GitPython return incorrect prefix -> GitCommandError(status=1)

In the controlled extraction test, I generated three independent random single-line values and recovered all three exactly through repeated calls to the GitPython high-level API.

Result: 3/3 recovered.

The extraction harness also installs a Python audit hook that rejects direct Python open() access to the target file during the oracle phase. The content-dependent read is therefore performed by the child git process invoked through GitPython rather than by the reproduction script directly.

Controls were also tested:

  • normal repository-scoped diff: no secret disclosure
  • same outside paths without --no-index: no arbitrary-filesystem interpretation
  • deliberately incorrect predicate: status 1 as expected

Suggested remediation is to classify --no-index as unsafe for the high-level diff API unless the caller explicitly sets allow_unsafe_options=True.

Impact

Potential impact is disclosure of local files readable by the process running GitPython.

Exploitation requires an embedding application to allow an attacker to influence:

  1. the relevant diff options,
  2. both path operands, and
  3. repeated requests while exposing a distinguishable success/error result.

The demonstrated attack is a blind content oracle rather than a one-request in-band file read. It is particularly applicable to short or structured single-line secrets where the target path and approximate value format are known or guessable.

Confirmed affected release: GitPython 3.1.59.

References

Affected packages

Docker Hardened Images:Alpine:3.24
git-mcp

Package

Name
git-mcp
Purl
pkg:apk/dhi/git-mcp

Affected ranges

Affected versions

2026.*
2026.7.10-r0
2026.7.10-r2
2026.7.10-r3
2026.8.18-r0
2026.8.31-r0
2026.8.31-r1
2026.8.31-r2
2026.8.31-r3
2026.8.31-r4
2026.8.31-r5
2026.8.31-r6
2026.8.31-r7
2026.8.31-r8
2026.8.31-r9
2026.8.31-r10
2026.8.31-r11

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-23fi-cjdh-7us3-hsbt.json"
Docker Hardened Images:Debian:13
datahub-ingestion

Package

Name
datahub-ingestion
Purl
pkg:deb/dhi/datahub-ingestion

Affected ranges

Affected versions

1.*
1.5.0.7-0
1.6.0.1-0
1.6.0.1-1
1.6.0.1-2
1.6.0.1-3
1.6.0.2-0
1.6.0.2-1
1.7.0.10-0
1.7.0.12-0
1.7.0.13-0
1.7.0.14-0
1.7.0.14-1
1.7.0.14-2
1.7.0.16-0
1.7.0.16-1
1.7.0.17-0
1.7.0.17-1
1.7.0.17-2
1.7.0.17-3
1.7.0.18-0
1.7.0.19-0
1.7.0.19-1
1.7.0.19-2
1.7.0.19-3
1.7.0.19-4
1.7.0.19-5
1.7.0.19-6
1.7.0.20-6
1.7.0.20-7

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-23fi-cjdh-7us3-hsbt.json"
datascience-notebook

Package

Name
datascience-notebook
Purl
pkg:deb/dhi/datascience-notebook

Affected ranges

Affected versions

2026.*
2026.07.28-0
2026.07.28-1
2026.07.28-2
2026.07.28-3
2026.07.28-4
2026.07.28-5
2026.07.28-6
2026.07.28-7
2026.07.28-8
2026.07.28-9
2026.07.28-10
2026.07.28-11
2026.07.28-12
2026.07.28-13
2026.07.28-14
2026.07.28-15
2026.07.28-16
2026.07.28-17
2026.07.28-18
2026.07.28-19
2026.07.28-20
2026.07.28-21

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-23fi-cjdh-7us3-hsbt.json"
git-mcp

Package

Name
git-mcp
Purl
pkg:deb/dhi/git-mcp

Affected ranges

Affected versions

2026.*
2026.7.10-0
2026.7.10-1
2026.7.10-2
2026.7.10-3
2026.7.10-4
2026.7.10-5
2026.8.18-0
2026.8.18-1
2026.8.18-2
2026.8.31-0
2026.8.31-1
2026.8.31-2
2026.8.31-3
2026.8.31-4
2026.8.31-5
2026.8.31-6
2026.8.31-7
2026.8.31-8
2026.8.31-9
2026.8.31-10
2026.8.31-11
2026.8.31-12
2026.8.31-13
2026.8.31-14
2026.8.31-15
2026.8.31-16
2026.8.31-17
2026.8.31-18
2026.8.31-19
2026.8.31-20
2026.8.31-21
2026.8.31-22
2026.8.31-23
2026.8.31-24
2026.8.31-25
2026.8.31-26

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-23fi-cjdh-7us3-hsbt.json"
mlflow

Package

Name
mlflow
Purl
pkg:deb/dhi/mlflow

Affected ranges

Affected versions

3.*
3.15.1-0
3.15.2-0
3.15.2-1
3.15.2-2
3.16.0-0
3.16.1-0
3.16.1-1
3.16.1-2
3.16.1-3
3.16.1-4
3.16.1-5
3.16.1-6
3.17.0-0
3.17.0-1
3.17.1-0
3.17.2-0
3.17.2-1
3.17.2-2
3.17.2-3
3.17.2-4
3.17.2-5
3.17.2-6
3.18.0-0
3.18.0-1
3.18.0-2
3.18.0-3
3.18.0-4
3.18.0-5

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-23fi-cjdh-7us3-hsbt.json"