
CVE catalog
CVE-2022-41903
git: CVE-2022-41903
- Severity
- Critical · CVSS 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 44.27% · Oct 25, 2026
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`.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | git | sid | 1:2.55.0-1 | fixed |
| Debian | git | forky | 1:2.53.0-1 | fixed |
| Debian | git | trixie | 1:2.47.3-0+deb13u1 | fixed |
| Debian | git | bookworm | 1:2.39.5-0+deb12u3 | fixed |
| Debian | git | bookworm-security | 1:2.39.5-0+deb12u2 | fixed |
| Ubuntu | git | pro | 1:2.5.0-1 | vulnerable |
| Ubuntu | git | pro | 1:2.6.2-1 | vulnerable |
| Ubuntu | git | pro | 1:2.6.3-1 | vulnerable |
| Ubuntu | git | pro | 1:2.6.4-1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.0~rc3-1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.0-1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.3-0ubuntu1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.2 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.3 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.4 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.5 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.6 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.7 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.8 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.9 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10+esm1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10+esm3 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10+esm4 | fixed |
| Ubuntu | git | 18.04 | 1:2.14.1-1ubuntu4 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.15.1-1ubuntu2 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.1 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.3 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.4 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.5 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.6 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.7 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.8 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.9 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.10 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.11 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.12 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.13 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.14 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.15 | fixed |
| Ubuntu | git | 20.04 | 1:2.20.1-2ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.24.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.24.0-1ubuntu2 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu2 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.2 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.3 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.4 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.5 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.6 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.7 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.8 | fixed |
| Ubuntu | git | 22.04 | 1:2.32.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.33.1-1ubuntu1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.2 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.4 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.5 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.6 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | git | source | sid | 1:2.39.1-0.1 | not yet assigned | Not reported | [1029114] |
| Debian | git | source | forky | 1:2.39.1-0.1 | not yet assigned | Not reported | [1029114] |
| Debian | git | source | trixie | 1:2.39.1-0.1 | not yet assigned | Not reported | [1029114] |
| Debian | git | source | bookworm | 1:2.39.1-0.1 | not yet assigned | Not reported | [1029114] |
| Ubuntu | git | deb | pro | 1:2.7.4-0ubuntu1.10+esm4 | Not reported | UBUNTU-CVE-2022-41903 | Not reported |
| Ubuntu | git | deb | 18.04 | 1:2.17.1-1ubuntu0.15 | Not reported | UBUNTU-CVE-2022-41903 | Not reported |
| Ubuntu | git | deb | 20.04 | 1:2.25.1-1ubuntu3.8 | Not reported | UBUNTU-CVE-2022-41903 | Not reported |
| Ubuntu | git | deb | 22.04 | 1:2.34.1-1ubuntu1.6 | Not reported | UBUNTU-CVE-2022-41903 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [git]Fixed
Details (4)
1:2.39.5-0+deb12u3· amd64 · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· arm64 · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· amd64 · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· arm64 · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [git-all]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [git-cvs]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [git-daemon-run]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [git-daemon-sysvinit]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [git-doc]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [git-email]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [git-gui]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [gitk]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [git-man]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [git-mediawiki]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [git-svn]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
- [gitweb]Fixed
Source package: [git]
Details (4)
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u3· all · bookwormFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
1:2.39.5-0+deb12u2· all · bookworm-securityFixed · Fixed:
1:2.39.1-0.1dsa · git · debian · bookworm
Observed:
References
- [https://cert-portal.siemens.com/productcert/csaf/ssa-806742.json]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2023_0610.json]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-41903]
- [https://security-tracker.debian.org/tracker/CVE-2022-41903]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-41903.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1608.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]