Vulnerability DatabaseGHSA-j5gm-p573-w4wq

GHSA-j5gm-p573-w4wq: 
Rust vulnerability analysis and mitigation

Summary

GHSA-q54r-jf2p-rfr2 fixed Cache::protect_options(), which read security-relevant settings with the unfiltered gix_config::File::boolean() accessor, so a repository opened with reduced trust could switch off the .git path protections from its own .git/config. Commit::verify_signature() has the same pattern for one key. In gix/src/commit/verify.rs every other setting that affects the verification result is read through a trust-aware accessor (trusted_path for the verifier program, the allowed-signers file and the revocation file), but gpg.minTrustLevel is read with the unfiltered Snapshot::string(). When a repository is opened with Trust::Reduced (ownership mismatch), its untrusted .git/config can therefore set gpg.minTrustLevel = undefined and override a stricter value from the user's trusted global or system configuration. Outcome::is_valid() then returns true for an OpenPGP or X.509 signature whose key the user's policy does not accept. Checked on main at d1e064e3 (2026-11-10) and on the published gix 0.90.0 source, the release that fixed GHSA-q54r-jf2p-rfr2. This is a source-review finding: I did not build or run it. I rate it Low, for the reasons given under Impact.

Details

gix/src/commit/verify.rs (main at d1e064e3, identical in gix 0.90.0):

let config = commit.repo.config_snapshot();
let minimum_trust = config
    .string(Gpg::MIN_TRUST_LEVEL)                         // unfiltered: honors untrusted sections
    .map(|value| Gpg::MIN_TRUST_LEVEL.try_into_trust_level(value))
    .transpose()?
    .unwrap_or_default();
...
let program = super::signature_program(&config, format)   // config.trusted_path(...)  (filtered)
...
    .trusted_path(gpg::Ssh::ALLOWED_SIGNERS_FILE)          //                           (filtered)
    .trusted_path(gpg::Ssh::REVOCATION_FILE)               //                           (filtered)

Snapshot::string() is self.repo.config.resolved.string(key) (gix/src/config/snapshot/access.rs), which accepts values from every section regardless of Trust. minimum_trust decides the result for OpenPGP and X.509 signatures (gix-object/src/signature/verify.rs):

outcome.valid =
    output.status.success() && outcome.status == Status::Good && outcome.trust_level >= minimum_trust;

Suggested fix

Read the key through the trust-aware accessor, as the neighbouring settings do:

let minimum_trust = config
    .plumbing()
    .string_filter(Gpg::MIN_TRUST_LEVEL, &mut commit.repo.filter_config_section())
    ...

Two reads in the same area use unfiltered accessors too. I do not think they are vulnerabilities on their own, but they follow the same pattern and may be worth aligning:

  • gix/src/commit/sign.rs: config.string(Gpg::FORMAT) (the signing key and the program are already filtered).
  • gix/src/config/cache/access.rs, may_sign_commits(): self.resolved.boolean(Commit::GPG_SIGN). An untrusted repository can turn off commit.gpgSign that the user enabled globally, so commits created through gix in that repository are silently unsigned.

How I looked

I listed every config read in gix/src that does not go through a *_filter accessor or filter_config_section (about 100) and reviewed them one by one. Filter drivers, diff and merge drivers, remotes, credential helpers and program paths are filtered. gpg.minTrustLevel was the only unfiltered read I found that feeds a security decision.

Proof of concept

Not executed (source review only). Scenario:

  1. The victim has gpg.minTrustLevel = fully (or marginal / ultimate) in ~/.gitconfig, to accept commit signatures only from keys they trust.
  2. An attacker owns a repository on a filesystem shared with the victim (multi-user host, shared checkout, reused CI workspace), so the repository is opened with reduced trust. Its .git/config contains:
[gpg]
    minTrustLevel = undefined
  1. A commit in that repository is signed with an OpenPGP key that is in the victim's keyring with a trust level below the victim's minimum, for example an imported key with undefined trust.
  2. A gix-based tool calls commit.verify_signature() and checks outcome.is_valid(). Expected with the victim's policy: false. Expected from the code as it is: true, because the repository-local value replaces the global one and trust_level >= minimum_trust holds for undefined.

Impact

The untrusted repository configuration downgrades the signature trust policy that the user set in trusted configuration. An application that relies on Outcome::is_valid() accepts commits it should reject. Limits, which is why I rate it Low:

  • The default is already undefined, so users who never raised gpg.minTrustLevel are not affected.
  • The signature must still be cryptographically good, and the key must be known to the verifier.
  • SSH signatures are not affected: an unknown key is rejected regardless of minimum_trust, and the allowed-signers and revocation files are read with trusted_path.
  • The program that is executed is not affected (trusted_path). Severity: CVSS 3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N (2.2, Low). With the integrity impact scored High it would be 4.4. I am happy to defer to your rating, or to have this handled as plain hardening if you prefer. Git itself applies repository configuration without a trust filter, so this is a deviation from gitoxide's own trust model, not from Git's behaviour. CWE-807 (Reliance on Untrusted Inputs in a Security Decision), CWE-347 (Improper Verification of Cryptographic Signature). I found no existing issue, pull request or advisory mentioning minTrustLevel. Prepared with AI assistance.

Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-134056HIGH8.3
  • Rust logoRust
  • aws-lc-fips-sys
NoYesNov 23, 2026
GHSA-8wcq-xq25-7fhmMEDIUM6.5
  • Rust logoRust
  • cookie
NoYesNov 23, 2026
GHSA-2rx9-36wh-cm54MEDIUM5.3
  • Rust logoRust
  • gix
NoNoNov 23, 2026
GHSA-j5gm-p573-w4wqLOW2.2
  • Rust logoRust
  • gix
NoNoNov 23, 2026
GHSA-q7pr-3hx6-cgc4HIGHN/A
  • Rust logoRust
  • smallvec
NoNoNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management