Bug 1207364 (CVE-2023-22742) - VUL-0: CVE-2023-22742: libgit2: failure to verify SSH keys by default
Summary: VUL-0: CVE-2023-22742: libgit2: failure to verify SSH keys by default
Status: RESOLVED FIXED
Alias: CVE-2023-22742
Product: openSUSE Distribution
Classification: openSUSE
Component: Security (show other bugs)
Version: Leap 15.4
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: Leap 15.4
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/354507/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-22742:5.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-21 10:42 UTC by Andreas Stieger
Modified: 2024-05-19 18:44 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Stieger 2023-01-21 10:42:04 UTC
libgit2, when compiled using the optional, included libssh2 backend, fails to verify SSH keys by default.

When using an SSH remote with the optional, included libssh2 backend, libgit2 does not perform certificate checking by default. Prior versions of libgit2 require the caller to set the certificate_check field of libgit2's git_remote_callbacks structure - if a certificate check callback is not set, libgit2 does not perform any certificate checking. This means that by default - without configuring a certificate check callback, clients will not perform validation on the server SSH keys and may be subject to a man-in-the-middle attack.

Beginning in libgit2 v1.4.5 and v1.5.1, libgit2 will now perform host key checking by default. Users can still override the default behavior using the certificate_check function.

Affected versions < 1.4.5, 1.5.0
Patched versions 1.4.5, 1.5.1

References:
https://github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjq
https://github.com/libgit2/libgit2/releases/tag/v1.5.1
https://github.com/libgit2/libgit2/releases/tag/v1.4.5
Comment 2 Andreas Stieger 2023-01-23 10:47:37 UTC
TW: https://build.opensuse.org/request/show/1060380
Comment 4 Scott Reeves 2023-03-10 18:56:03 UTC
Mike - can you take this one.
Comment 8 Maintenance Automation 2023-03-24 16:30:09 UTC
SUSE-SU-2023:1570-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1207364
CVE References: CVE-2023-22742
Sources used:
openSUSE Leap 15.4 (src): libgit2-0.26.8-150000.3.18.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 9 Maintenance Automation 2023-04-06 16:30:15 UTC
SUSE-SU-2023:1788-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1207364
CVE References: CVE-2023-22742
Sources used:
openSUSE Leap 15.4 (src): libgit2-1.3.0-150400.3.6.1
Development Tools Module 15-SP4 (src): libgit2-1.3.0-150400.3.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 10 Maintenance Automation 2023-04-19 12:30:08 UTC
SUSE-SU-2023:1909-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1207364
CVE References: CVE-2023-22742
Sources used:
openSUSE Leap 15.4 (src): libgit2-0.28.4-150200.3.6.1
SUSE Manager Server 4.2 Module 4.2 (src): libgit2-0.28.4-150200.3.6.1
SUSE Manager Server 4.3 Module 4.3 (src): libgit2-0.28.4-150200.3.6.1
SUSE Linux Enterprise Real Time 15 SP3 (src): libgit2-0.28.4-150200.3.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 11 Marcus Meissner 2024-05-19 18:44:20 UTC
done