Bug 2188333 (CVE-2023-25652)

Summary: CVE-2023-25652 git: by feeding specially crafted input to `git apply --reject`, a path outside the working tree can be overwritten with partially controlled contents
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: acrosby, adudiak, bdettelb, caswilli, dffrench, dkuc, fjansen, gzaronik, hbraun, hhorak, hkataria, ikanias, jary, jburrell, jmitchel, jorton, jtanner, kaycoth, kshier, micjohns, mvanderw, ngough, nweather, opohorel, psegedy, rgodfrey, rravi, security-response-team, stcannon, sthirugn, sujagtap, tkasparek, tmeszaro, tohughes, tsasak, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in Git. This security flaw occurs when feeding specially crafted input to `git apply --reject`; a path outside the working tree can be overwritten with partially controlled contents corresponding to the rejected hunk(s) from the given patch.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-31 18:33:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2188350, 2188351, 2188352, 2188353, 2188354, 2188355, 2188356, 2188357, 2188359, 2188362, 2188364, 2188366, 2188368, 2189765, 2189766, 2189767    
Bug Blocks: 2188310    

Description Sandipan Roy 2023-04-20 13:46:43 UTC
CVE-2023-25652
By feeding specially crafted input to `git apply --reject`, a path outside the working tree can be overwritten with partially controlled contents corresponding to the rejected hunk(s) from the given patch).

Comment 3 Sandipan Roy 2023-04-26 05:55:40 UTC
Created git tracking bugs for this issue:

Affects: fedora-36 [bug 2189765]
Affects: fedora-37 [bug 2189766]
Affects: fedora-38 [bug 2189767]

Comment 5 errata-xmlrpc 2023-05-17 15:20:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions

Via RHSA-2023:3192 https://access.redhat.com/errata/RHSA-2023:3192

Comment 6 errata-xmlrpc 2023-05-22 06:50:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Extended Update Support

Via RHSA-2023:3243 https://access.redhat.com/errata/RHSA-2023:3243

Comment 7 errata-xmlrpc 2023-05-22 07:03:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2023:3248 https://access.redhat.com/errata/RHSA-2023:3248

Comment 8 errata-xmlrpc 2023-05-22 07:04:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:3245 https://access.redhat.com/errata/RHSA-2023:3245

Comment 9 errata-xmlrpc 2023-05-22 07:04:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:3246 https://access.redhat.com/errata/RHSA-2023:3246

Comment 10 errata-xmlrpc 2023-05-22 07:07:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2023:3247 https://access.redhat.com/errata/RHSA-2023:3247

Comment 11 errata-xmlrpc 2023-05-23 09:16:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2023:3263 https://access.redhat.com/errata/RHSA-2023:3263

Comment 12 errata-xmlrpc 2023-05-23 14:44:20 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2023:3280 https://access.redhat.com/errata/RHSA-2023:3280

Comment 13 errata-xmlrpc 2023-05-31 14:14:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2023:3382 https://access.redhat.com/errata/RHSA-2023:3382

Comment 14 Product Security DevOps Team 2023-05-31 18:33:24 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-25652