Git is distributed revision control system. `git log` can display commits in an arbitrary format using its `--format` specifiers. This functionality is also exposed to `git archive` via the `export-subst` gitattribute. When processing the padding operators, there is a integer overflow in `pretty.c::format_and_pad_commit()` where a `size_t` is stored improperly as an `int`, and then added as an offset to a `memcpy()`. This overflow can be triggered directly by a user running a command which invokes the commit formatting machinery (e.g., `git log --format=...`). It may also be triggered indirectly through git archive via the export-subst mechanism, which expands format specifiers inside of files within the repository during a git archive. This integer overflow can result in arbitrary heap writes, which may result in arbitrary code execution. The problem has been patched in the versions published on 2023-01-17, going back to v2.30.7. Users are advised to upgrade. Users who are unable to upgrade should disable `git archive` in untrusted repositories. If you expose git archive via `git daemon`, disable it by running `git config --global daemon.uploadArch false`.
Conclusion & alert: CVE-2022-41903 is rated High Risk (67.9/100): CVSS Critical severity, with high exploitation likelihood (EPSS 17.80%, 95th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-22 | 22.42% | 17.80% | -4.62% |
| 2 | 2026-04-09 | 25.73% | 22.42% | -3.31% |
| 3 | 2026-02-23 | — | 25.73% | — |
Full EPSS history (35 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2022-41903: 1 source package rows (git); 58 state rows across 7 repos (3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 7, open 51. | https://security.alpinelinux.org/vuln/CVE-2022-41903 |
debian
|
not yet assigned | CVE-2022-41903 not yet assigned priority: Debian including 1 source packages (git), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2022-41903 |
gentoo
|
high | CVE-2022-41903: 1 GLSA(s) (202312-15), 1 atom(s) (dev-vcs/git); latest impact high. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-41903 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2022-41903 |
suse
|
high | CVE-2022-41903 severity important: SUSE including 168 source package names (1.18-19.18:git-core-2.35.3-150300.10.21.1, 1.20-openssl:git-core-2.35.3-150300.10.21.1, …), 540 product×package rows across 75 product lines (Container bci/golang, Container bci/nodejs, … (75 product lines)): Fixed 462, Known Not Affected 78. | https://www.suse.com/security/cve/CVE-2022-41903/ |
ubuntu
|
medium | CVE-2022-41903 medium priority: Ubuntu including 1 source packages (git), 8 status rows across 8 suites (bionic, focal, jammy, kinetic, lunar, trusty, upstream, xenial): released 7, needs-triage 1. | https://ubuntu.com/security/CVE-2022-41903 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| git-scm | git | <= 2.30.6 | cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* |
| git-scm | git | >= 2.31.0, <= 2.31.5 | cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* |
| git-scm | git | >= 2.32.0, <= 2.32.4 | cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* |
| git-scm | git | >= 2.33.0, <= 2.33.5 | cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* |
| git-scm | git | >= 2.34.0, <= 2.34.5 | cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* |
| git-scm | git | >= 2.35.0, <= 2.35.5 | cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* |
| git-scm | git | >= 2.36.0, <= 2.36.3 | cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* |
| git-scm | git | >= 2.37.0, <= 2.37.4 | cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* |
| git-scm | git | >= 2.38.0, <= 2.38.2 | cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* |
| git-scm | git | 2.39.0 | cpe:2.3:a:git-scm:git:2.39.0:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#_export_subst | Vendor Advisory |
| https://git-scm.com/docs/pretty-formats#Documentation/pretty-formats.txt-emltltNgttruncltruncmtruncem | Vendor Advisory |
| https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76 | Patch Release Notes Third Party Advisory |
| https://github.com/git/git/security/advisories/GHSA-475x-2q3q-hvwq | Third Party Advisory |
| https://security.gentoo.org/glsa/202312-15 |