OESA-2021-1345

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1345
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2021-1345.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2021-1345
Upstream
Published
2021-09-18T11:03:12Z
Modified
2025-08-12T05:09:57.947446Z
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):

gitconnectgit in connect.c in Git before 2.30.1 allows a repository path to contain a newline character, which may result in unexpected cross-protocol requests, as demonstrated by the git://localhost:1234/%0d%0a%0d%0aGET%20/%20HTTP/1.1 substring.(CVE-2021-40330)

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

Affected packages

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-5.oe1

Ecosystem specific

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

openEuler:20.03-LTS-SP2 / git

Package

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

Affected ranges

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

Ecosystem specific

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