# CVE-2024-35183: wolfictl leaks GitHub tokens to remote non-GitHub git servers

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.4
- **CVSS:** 4.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-552, CWE-668
- **Aliases:** GHSA-8fg7-hp93-qhvr, GO-2024-2863
- **Published:** 2024-05-15T20:02:14.000Z
- **Modified:** 2026-09-10T03:50:13.554Z

## Who should check

- Projects that depend on Go package github.com/wolfi-dev/wolfictl (\< 0.16.10)
- Anyone running wolfi-dev wolfictl \< 0.16.10

## Description

wolfictl is a command line tool for working with Wolfi. A git authentication issue in versions prior to 0.16.10 allows a local user’s GitHub token to be sent to remote servers other than \`github.com\`. Most git-dependent functionality in wolfictl relies on its own \`git\` package, which contains centralized logic for implementing interactions with git repositories. Some of this functionality requires authentication in order to access private repositories. A central function \`GetGitAuth\` looks for a GitHub token in the environment variable \`GITHUB\_TOKEN\` and returns it as an HTTP basic auth object to be used with the \`github.com/go-git/go-git/v5\` library. Most callers (direct or indirect) of \`GetGitAuth\` use the token to authenticate to github.com only; however, in some cases callers were passing this authentication without checking that the remote git repository was hosted on github.com. This behavior has existed in one form or another since commit 0d06e1578300327c212dda26a5ab31d09352b9d0 - committed January 25, 2023. This impacts anyone who ran the \`wolfictl check update\` commands with a Melange configuration that included a \`git-checkout\` directive step that referenced a git repository not hosted on github.com. This also impacts anyone who ran \`wolfictl update \<url\>\` with a remote URL outside of github.com. Additionally, these subcommands must have run with the \`GITHUB\_TOKEN\` environment variable set to a valid GitHub token. Users should upgrade to version 0.16.10 to receive a patch.

## Affected and fixed versions

- Go `github.com/wolfi-dev/wolfictl`: affected \< 0.16.10; fixed 0.16.10 (osv)
- wolfi-dev wolfictl: \< 0.16.10 (cvelist)

## Mitigation

- Upgrade github.com/wolfi-dev/wolfictl to 0.16.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35183. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35183.md
Affected: github.com/wolfi-dev/wolfictl < 0.16.10
Fixed in: 0.16.10

Steps:
1. Search this machine and project for github.com/wolfi-dev/wolfictl (Go), wolfi-dev wolfictl: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35183 being exploited?

There is no confirmed exploitation: CVE-2024-35183 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35183?

Medium: CVSS 4.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-35183?

github.com/wolfi-dev/wolfictl \< 0.16.10.

### Is there a fix for CVE-2024-35183?

Yes. Fixed in 0.16.10. Upgrade github.com/wolfi-dev/wolfictl to 0.16.10 or later.

### How do I check if I'm affected by CVE-2024-35183?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/wolfi-dev/wolfictl/security/advisories/GHSA-8fg7-hp93-qhvr>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-35183>
- patch: <https://github.com/wolfi-dev/wolfictl/commit/0d06e1578300327c212dda26a5ab31d09352b9d0>
- patch: <https://github.com/wolfi-dev/wolfictl/commit/403e93569f46766b4e26e06cf9cd0cae5ee0c2a2>
- other: <https://github.com/wolfi-dev/wolfictl/blob/488b53823350caa706de3f01ec0eded9350c7da7/pkg/update/update.go#L143>
- other: <https://github.com/wolfi-dev/wolfictl/blob/4dd6c95abb4bc0f9306350a8601057bd7a92bded/pkg/update/deps/cleanup.go#L49>
- other: <https://github.com/wolfi-dev/wolfictl/blob/6d99909f7b1aa23f732d84dad054b02a61f530e6/pkg/git/git.go#L22>
- other: <https://github.com/wolfi-dev/wolfictl>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35183>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-8fg7-hp93-qhvr> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2863> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-35183> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35183>
