Amazon Linux AMI update for git



Risk Medium
Patch available YES
Number of vulnerabilities 3
CVE-ID CVE-2023-22490
CVE-2023-23946
CVE-2022-39253
CWE-ID CWE-59
CWE-20
Exploitation vector Network
Public exploit Public exploit code for vulnerability #3 is available.
Vulnerable software
Subscribe
Amazon Linux AMI
Operating systems & Components / Operating system

git
Operating systems & Components / Operating system package or component

Vendor Amazon Web Services

Security Bulletin

This security bulletin contains information about 3 vulnerabilities.

1) Link following

EUVDB-ID: #VU72246

Risk: Low

CVSSv3.1: 2.7 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-22490

CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')

Exploit availability: No

Description

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to insecure processing of symbolic links when using local clone optimization. Git will abort local clones whose source `$GIT_DIR/objects` directory contains symbolic links, however the `objects` directory itself may still be a symbolic link. A remote attacker can trick the victim into using the local clone optimization to exfiltrate arbitrary files from the victim's system.

Mitigation

Update the affected packages:

aarch64:
    git-core-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-daemon-2.39.2-1.amzn2023.0.1.aarch64
    git-daemon-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-2.39.2-1.amzn2023.0.1.aarch64
    git-debugsource-2.39.2-1.amzn2023.0.1.aarch64
    git-credential-libsecret-2.39.2-1.amzn2023.0.1.aarch64
    git-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-credential-libsecret-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-core-2.39.2-1.amzn2023.0.1.aarch64

noarch:
    git-subtree-2.39.2-1.amzn2023.0.1.noarch
    git-p4-2.39.2-1.amzn2023.0.1.noarch
    git-instaweb-2.39.2-1.amzn2023.0.1.noarch
    git-cvs-2.39.2-1.amzn2023.0.1.noarch
    git-svn-2.39.2-1.amzn2023.0.1.noarch
    git-email-2.39.2-1.amzn2023.0.1.noarch
    git-all-2.39.2-1.amzn2023.0.1.noarch
    git-gui-2.39.2-1.amzn2023.0.1.noarch
    gitk-2.39.2-1.amzn2023.0.1.noarch
    perl-Git-2.39.2-1.amzn2023.0.1.noarch
    perl-Git-SVN-2.39.2-1.amzn2023.0.1.noarch
    gitweb-2.39.2-1.amzn2023.0.1.noarch
    git-core-doc-2.39.2-1.amzn2023.0.1.noarch

src:
    git-2.39.2-1.amzn2023.0.1.src

x86_64:
    git-core-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-2.39.2-1.amzn2023.0.1.x86_64
    git-credential-libsecret-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-credential-libsecret-2.39.2-1.amzn2023.0.1.x86_64
    git-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-core-2.39.2-1.amzn2023.0.1.x86_64
    git-daemon-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-daemon-2.39.2-1.amzn2023.0.1.x86_64
    git-debugsource-2.39.2-1.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

git: before 2.39.2-1

CPE2.3 External links

http://alas.aws.amazon.com/AL2023/ALAS-2023-113.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Link following

EUVDB-ID: #VU72245

Risk: Medium

CVSSv3.1: 5.9 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-23946

CWE-ID: CWE-59 - Improper Link Resolution Before File Access ('Link Following')

Exploit availability: No

Description

The vulnerability allows an attacker to compromise the affected system.

The vulnerability exists due to application allows to overwrite files outside the working tree via the "git apply" command. A remote attacker can trick the victim to run the affected command against a malicious or compromised repository and overwrite arbitrary files on the system.

Mitigation

Update the affected packages:

aarch64:
    git-core-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-daemon-2.39.2-1.amzn2023.0.1.aarch64
    git-daemon-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-2.39.2-1.amzn2023.0.1.aarch64
    git-debugsource-2.39.2-1.amzn2023.0.1.aarch64
    git-credential-libsecret-2.39.2-1.amzn2023.0.1.aarch64
    git-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-credential-libsecret-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-core-2.39.2-1.amzn2023.0.1.aarch64

noarch:
    git-subtree-2.39.2-1.amzn2023.0.1.noarch
    git-p4-2.39.2-1.amzn2023.0.1.noarch
    git-instaweb-2.39.2-1.amzn2023.0.1.noarch
    git-cvs-2.39.2-1.amzn2023.0.1.noarch
    git-svn-2.39.2-1.amzn2023.0.1.noarch
    git-email-2.39.2-1.amzn2023.0.1.noarch
    git-all-2.39.2-1.amzn2023.0.1.noarch
    git-gui-2.39.2-1.amzn2023.0.1.noarch
    gitk-2.39.2-1.amzn2023.0.1.noarch
    perl-Git-2.39.2-1.amzn2023.0.1.noarch
    perl-Git-SVN-2.39.2-1.amzn2023.0.1.noarch
    gitweb-2.39.2-1.amzn2023.0.1.noarch
    git-core-doc-2.39.2-1.amzn2023.0.1.noarch

src:
    git-2.39.2-1.amzn2023.0.1.src

x86_64:
    git-core-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-2.39.2-1.amzn2023.0.1.x86_64
    git-credential-libsecret-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-credential-libsecret-2.39.2-1.amzn2023.0.1.x86_64
    git-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-core-2.39.2-1.amzn2023.0.1.x86_64
    git-daemon-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-daemon-2.39.2-1.amzn2023.0.1.x86_64
    git-debugsource-2.39.2-1.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

git: before 2.39.2-1

CPE2.3 External links

http://alas.aws.amazon.com/AL2023/ALAS-2023-113.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Input validation error

EUVDB-ID: #VU68517

Risk: Low

CVSSv3.1: 2.8 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C]

CVE-ID: CVE-2022-39253

CWE-ID: CWE-20 - Improper input validation

Exploit availability: No

Description

The vulnerability allows a remote attacker to bypass certain security restrictions.

The vulnerability exists due to the way Git handles hardlinks when performing a local clone. A remote attacker can trick the victim into clocking a malicious repository and create or copy hardlinks to critical files on the system, which can result in sensitive information exposure.

Mitigation

Update the affected packages:

aarch64:
    git-core-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-daemon-2.39.2-1.amzn2023.0.1.aarch64
    git-daemon-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-2.39.2-1.amzn2023.0.1.aarch64
    git-debugsource-2.39.2-1.amzn2023.0.1.aarch64
    git-credential-libsecret-2.39.2-1.amzn2023.0.1.aarch64
    git-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-credential-libsecret-debuginfo-2.39.2-1.amzn2023.0.1.aarch64
    git-core-2.39.2-1.amzn2023.0.1.aarch64

noarch:
    git-subtree-2.39.2-1.amzn2023.0.1.noarch
    git-p4-2.39.2-1.amzn2023.0.1.noarch
    git-instaweb-2.39.2-1.amzn2023.0.1.noarch
    git-cvs-2.39.2-1.amzn2023.0.1.noarch
    git-svn-2.39.2-1.amzn2023.0.1.noarch
    git-email-2.39.2-1.amzn2023.0.1.noarch
    git-all-2.39.2-1.amzn2023.0.1.noarch
    git-gui-2.39.2-1.amzn2023.0.1.noarch
    gitk-2.39.2-1.amzn2023.0.1.noarch
    perl-Git-2.39.2-1.amzn2023.0.1.noarch
    perl-Git-SVN-2.39.2-1.amzn2023.0.1.noarch
    gitweb-2.39.2-1.amzn2023.0.1.noarch
    git-core-doc-2.39.2-1.amzn2023.0.1.noarch

src:
    git-2.39.2-1.amzn2023.0.1.src

x86_64:
    git-core-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-2.39.2-1.amzn2023.0.1.x86_64
    git-credential-libsecret-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-credential-libsecret-2.39.2-1.amzn2023.0.1.x86_64
    git-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-core-2.39.2-1.amzn2023.0.1.x86_64
    git-daemon-debuginfo-2.39.2-1.amzn2023.0.1.x86_64
    git-daemon-2.39.2-1.amzn2023.0.1.x86_64
    git-debugsource-2.39.2-1.amzn2023.0.1.x86_64

Vulnerable software versions

Amazon Linux AMI: All versions

git: before 2.39.2-1

CPE2.3 External links

http://alas.aws.amazon.com/AL2023/ALAS-2023-113.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###