cve.bz

CVE-2022-23521 git-scm git: Year 2038 problem, Y2K38, Y2038, Epochalypse

9.8 criticalEPSS 56%Fix available

Critical (9.8) in git-scm git. EPSS 56% estimated probability of exploitation activity in the next 30 days.

On this page
Git is distributed revision control system. gitattributes are a mechanism to allow defining attributes for paths. These attributes can be defined by adding a `.gitattributes` file to the repository, which contains a set of file patterns and the attributes that should be set for paths matching this pattern. When parsing gitattributes, multiple integer overflows can occur when there is a huge number of path patterns, a huge number of attributes for a single pattern, or when the declared attribute names are huge. These overflows can be triggered via a crafted `.gitattributes` file that may be part of the commit history. Git silently splits lines longer than 2KB when parsing gitattributes from a file, but not when parsing them from the index. Consequentially, the failure mode depends on whether the file exists in the working tree, the index or both. This integer overflow can result in arbitrary heap reads and writes, which may result in remote 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. There are no known workarounds for this issue.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
56% (unchanged from 56% a week ago; 56% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2024-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-23521 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-23521?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-23521?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-23521 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
git-scm:gitthrough 2.30.6
git-scm:gitfrom 2.31.0 through 2.31.5
git-scm:gitfrom 2.32.0 through 2.32.4
git-scm:gitfrom 2.33.0 through 2.33.5
git-scm:gitfrom 2.34.0 through 2.34.5
git-scm:gitfrom 2.35.0 through 2.35.5
git-scm:gitfrom 2.36.0 through 2.36.3
git-scm:gitfrom 2.37.0 through 2.37.4
git-scm:gitfrom 2.38.0 through 2.38.2
git-scm:git2.39.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10git1:2.20.1-2+deb10u7DLA-3282-1
Debian11git1:2.30.2-1+deb11u1DSA-5332-1
Debian12, 13, 14git1:2.39.1-0.1DEBIAN-CVE-2022-23521
Ubuntu18.04:LTSgit1:2.17.1-1ubuntu0.15UBUNTU-CVE-2022-23521 USN-5810-1
Ubuntu20.04:LTSgit1:2.25.1-1ubuntu3.8UBUNTU-CVE-2022-23521 USN-5810-1
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.6UBUNTU-CVE-2022-23521 USN-5810-1
UbuntuPro:14.04:LTSgit1:1.9.1-1ubuntu0.10+esm1UBUNTU-CVE-2022-23521 USN-5810-4
UbuntuPro:16.04:LTSgit1:2.7.4-0ubuntu1.10+esm4UBUNTU-CVE-2022-23521 USN-5810-3
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moregit, gitk, git-hg and 16 more0:1.8.3.1-24.el7_9RHSA-2023:0978
Red Hatenterprise_linux:8::appstreamgit, gitk, gitweb and 17 more0:2.31.1-3.el8_7RHSA-2023:0610
Red Hatenterprise_linux:9::appstreamgit, gitk, gitweb and 17 more0:2.31.1-3.el9_1RHSA-2023:0611
Red Hatrhel_aus:8.2::appstream, rhel_e4s:8.2::appstream, rhel_tus:8.2::appstreamgit, gitk, gitweb and 16 more0:2.18.4-3.el8_2RHSA-2023:0609
Red Hatrhel_e4s:8.1::appstreamgit, gitk, gitweb and 16 more0:2.18.4-2.el8_1RHSA-2023:0599
Red Hatrhel_eus:8.4::appstreamgit, gitk, gitweb and 17 more0:2.27.0-3.el8_4RHSA-2023:0596
Red Hatrhel_eus:8.6::appstreamgit, gitk, gitweb and 17 more0:2.31.1-3.el8_6RHSA-2023:0628
Red Hatrhel_eus:9.0::appstreamgit, gitk, gitweb and 17 more0:2.31.1-3.el9_0RHSA-2023:0627
Red Hatrhel_software_collections:3::el7rh-git227-git, rh-git227-gitk, rh-git227-git-p4 and 15 more0:2.27.0-4.el7RHSA-2023:0597
Red Hatrhev_hypervisor:4.4::el8redhat-virtualization-host, redhat-virtualization-host-image-update0:4.5.3-202304051438_8.6RHSA-2023:1677
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS and 5 moregit2.26.2-150000.44.1SUSE-SU-2023:0108-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 8 moregit2.35.3-150300.10.21.1SUSE-SU-2023:0110-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-LTSS and 7 moregit2.26.2-27.63.2SUSE-SU-2023:0109-1
openSUSELeap 15.4git2.26.2-150000.44.1SUSE-SU-2023:0108-1
openSUSELeap 15.4git2.35.3-150300.10.21.1SUSE-SU-2023:0110-1
openSUSETumbleweedgit2.39.1-1.1openSUSE-SU-2024:12625-1
AlmaLinux8git, gitk, gitweb and 12 more2.31.1-3.el8_7ALSA-2023:0610
AlmaLinux9git, gitk, gitweb and 12 more2.31.1-3.el9_1ALSA-2023:0611
Rocky Linux8git0:2.31.1-3.el8_7RLSA-2023:0610
Rocky Linux9git0:2.31.1-3.el9_1RLSA-2023:0611
Alpinev3.14git2.32.5-r0ALPINE-CVE-2022-23521
Alpinev3.15git2.34.6-r0ALPINE-CVE-2022-23521
Alpinev3.16git2.36.4-r0ALPINE-CVE-2022-23521
Alpinev3.17git2.38.3-r0ALPINE-CVE-2022-23521
Alpinev3.18, v3.19, v3.20 and 4 moregit2.39.1-r0ALPINE-CVE-2022-23521
Azure Linux2git2.33.8-2AZL-13024

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7git-0:1.8.3.1-24.el7_9Fixed 2023-02-28RHSA-2023:0978
Red Hat Enterprise Linux 8git-0:2.31.1-3.el8_7Fixed 2023-02-06RHSA-2023:0610
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsgit-0:2.18.4-2.el8_1Fixed 2023-02-06RHSA-2023:0599
Red Hat Enterprise Linux 8.2 Advanced Update Supportgit-0:2.18.4-3.el8_2Fixed 2023-02-06RHSA-2023:0609
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicegit-0:2.18.4-3.el8_2Fixed 2023-02-06RHSA-2023:0609
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionsgit-0:2.18.4-3.el8_2Fixed 2023-02-06RHSA-2023:0609
Red Hat Enterprise Linux 8.4 Extended Update Supportgit-0:2.27.0-3.el8_4Fixed 2023-02-06RHSA-2023:0596
Red Hat Enterprise Linux 8.6 Extended Update Supportgit-0:2.31.1-3.el8_6Fixed 2023-02-07RHSA-2023:0628
Red Hat Enterprise Linux 9git-0:2.31.1-3.el9_1Fixed 2023-02-06RHSA-2023:0611
Red Hat Enterprise Linux 9.0 Extended Update Supportgit-0:2.31.1-3.el9_0Fixed 2023-02-07RHSA-2023:0627
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-git227-git-0:2.27.0-4.el7Fixed 2023-02-06RHSA-2023:0597
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.5.3-202304051438_8.6Fixed 2023-04-10RHSA-2023:1677
Red Hat Enterprise Linux 6gitOut of support scope
Red Hat JBoss Data Grid 7gitAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-23521.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-105-08ABB M2M Gateway2025-04-07EnergyABB M2M Gateway ARM600, firmware versions = 4.1.2 <= 5.0.3, ABB M2M Gateway SW, software versions = 5.0.1 <= 5.0.3none listed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON