OESA-2021-1105

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1105
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2021-1105.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2021-1105
Upstream
Published
2021-04-07T11:02:44Z
Modified
2025-08-12T05:07:11.820198Z
Summary
git security update
Details

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.

Security Fix(es):

Git is an open-source distributed revision control system. In affected versions of Git a specially crafted repository that contains symbolic links as well as files using a clean/smudge filter such as Git LFS, may cause just-checked out script to be executed while cloning onto a case-insensitive file system such as NTFS, HFS+ or APFS (i.e. the default file systems on Windows and macOS). Note that clean/smudge filters have to be configured for that. Git for Windows configures Git LFS by default, and is therefore vulnerable. The problem has been patched in the versions published on Tuesday, March 9th, 2021. As a workaound, if symbolic link support is disabled in Git (e.g. via git config --global core.symlinks False), the described attack won't work. Likewise, if no clean/smudge filters such as Git LFS are configured globally (i.e. before cloning), the attack is foiled. As always, it is best to avoid cloning repositories from untrusted sources. The earliest impacted version is 2.14.2. The fix versions are: 2.30.1, 2.29.3, 2.28.1, 2.27.1, 2.26.3, 2.25.5, 2.24.4, 2.23.4, 2.22.5, 2.21.4, 2.20.5, 2.19.6, 2.18.5, 2.17.62.17.6.(CVE-2021-21300)

Database specific
{
    "severity": "High"
}
References

Affected packages

openEuler:20.03-LTS / git

Package

Name
git
Purl
pkg:rpm/openEuler/git&distro=openEuler-20.03-LTS

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.27.0-3.oe1

Ecosystem specific

{
    "aarch64": [
        "git-debuginfo-2.27.0-3.oe1.aarch64.rpm",
        "git-debugsource-2.27.0-3.oe1.aarch64.rpm",
        "git-daemon-2.27.0-3.oe1.aarch64.rpm",
        "git-2.27.0-3.oe1.aarch64.rpm",
        "git-daemon-2.27.0-3.oe1.aarch64.rpm",
        "git-2.27.0-3.oe1.aarch64.rpm",
        "git-debuginfo-2.27.0-3.oe1.aarch64.rpm",
        "git-debugsource-2.27.0-3.oe1.aarch64.rpm"
    ],
    "src": [
        "git-2.27.0-3.oe1.src.rpm",
        "git-2.27.0-3.oe1.src.rpm"
    ],
    "noarch": [
        "git-email-2.27.0-3.oe1.noarch.rpm",
        "perl-Git-SVN-2.27.0-3.oe1.noarch.rpm",
        "git-svn-2.27.0-3.oe1.noarch.rpm",
        "gitk-2.27.0-3.oe1.noarch.rpm",
        "git-web-2.27.0-3.oe1.noarch.rpm",
        "git-gui-2.27.0-3.oe1.noarch.rpm",
        "git-help-2.27.0-3.oe1.noarch.rpm",
        "perl-Git-2.27.0-3.oe1.noarch.rpm",
        "git-gui-2.27.0-3.oe1.noarch.rpm",
        "git-svn-2.27.0-3.oe1.noarch.rpm",
        "gitk-2.27.0-3.oe1.noarch.rpm",
        "git-email-2.27.0-3.oe1.noarch.rpm",
        "git-help-2.27.0-3.oe1.noarch.rpm",
        "perl-Git-SVN-2.27.0-3.oe1.noarch.rpm",
        "git-web-2.27.0-3.oe1.noarch.rpm",
        "perl-Git-2.27.0-3.oe1.noarch.rpm"
    ],
    "x86_64": [
        "git-2.27.0-3.oe1.x86_64.rpm",
        "git-daemon-2.27.0-3.oe1.x86_64.rpm",
        "git-debugsource-2.27.0-3.oe1.x86_64.rpm",
        "git-debuginfo-2.27.0-3.oe1.x86_64.rpm",
        "git-debuginfo-2.27.0-3.oe1.x86_64.rpm",
        "git-2.27.0-3.oe1.x86_64.rpm",
        "git-daemon-2.27.0-3.oe1.x86_64.rpm",
        "git-debugsource-2.27.0-3.oe1.x86_64.rpm"
    ]
}

openEuler:20.03-LTS-SP1 / git

Package

Name
git
Purl
pkg:rpm/openEuler/git&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.27.0-3.oe1

Ecosystem specific

{
    "aarch64": [
        "git-daemon-2.27.0-3.oe1.aarch64.rpm",
        "git-2.27.0-3.oe1.aarch64.rpm",
        "git-debuginfo-2.27.0-3.oe1.aarch64.rpm",
        "git-debugsource-2.27.0-3.oe1.aarch64.rpm"
    ],
    "src": [
        "git-2.27.0-3.oe1.src.rpm"
    ],
    "noarch": [
        "git-gui-2.27.0-3.oe1.noarch.rpm",
        "git-svn-2.27.0-3.oe1.noarch.rpm",
        "gitk-2.27.0-3.oe1.noarch.rpm",
        "git-email-2.27.0-3.oe1.noarch.rpm",
        "git-help-2.27.0-3.oe1.noarch.rpm",
        "perl-Git-SVN-2.27.0-3.oe1.noarch.rpm",
        "git-web-2.27.0-3.oe1.noarch.rpm",
        "perl-Git-2.27.0-3.oe1.noarch.rpm"
    ],
    "x86_64": [
        "git-debuginfo-2.27.0-3.oe1.x86_64.rpm",
        "git-2.27.0-3.oe1.x86_64.rpm",
        "git-daemon-2.27.0-3.oe1.x86_64.rpm",
        "git-debugsource-2.27.0-3.oe1.x86_64.rpm"
    ]
}