Bug 2248699

Summary: TRIAGE CVE-2023-41040 GitPython: Blind local file inclusion [epel-all]
Product: [Fedora] Fedora EPEL Reporter: ybuenos
Component: GitPythonAssignee: Lubomír Sedlář <lsedlar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: epel8CC: athoscribeiro, carl, code, igor.raits, kevin, lsedlar, patrick
Target Milestone: ---Keywords: Reopened, Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: GitPython-3.1.18-3.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-25 02:10:54 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:    
Bug Blocks: 2247040    

Description ybuenos 2023-11-08 13:24:43 UTC
More information about this security flaw is available in the following bug:

http://bugzilla.redhat.com/show_bug.cgi?id=2247040

Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Comment 1 ybuenos 2023-11-08 13:24:45 UTC
Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# low, medium, high, urgent (required)
severity=medium

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=2247040,2248699

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 3 Ben Beasley 2025-04-16 11:35:45 UTC
Per https://nvd.nist.gov/vuln/detail/CVE-2023-41040, this is fixed in GitPython 3.1.37 and later.

Therefore, only EPEL 8 has an affected version, 3.1.18. Other branches have at least 3.1.40.

Since GitPython has not always been fully compatible across patch releases, and quite a few things depend on it,

$ fedrq wrsrc -s GitPython -b epel8
centpkg-0.9.1-1.el8.src
csmock-3.8.0-1.el8.src
libabigail-2.6-1.el8.src
packit-0.59.0-2.el8.src
rebase-helper-0.27.0-1.el8.src
rpkg-1.68-1.el8.src

I attempted to backport https://github.com/gitpython-developers/GitPython/pull/1644 and https://github.com/gitpython-developers/GitPython/pull/1672 to version 3.1.18 in EPEL8.

https://src.fedoraproject.org/rpms/GitPython/pull-request/9

Comment 4 Fedora Update System 2025-04-16 14:19:21 UTC
FEDORA-EPEL-2025-106950fd79 (GitPython-3.1.18-3.el8) has been submitted as an update to Fedora EPEL 8.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-106950fd79

Comment 5 Fedora Update System 2025-04-17 21:12:14 UTC
FEDORA-EPEL-2025-106950fd79 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-106950fd79

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-04-25 02:10:54 UTC
FEDORA-EPEL-2025-106950fd79 (GitPython-3.1.18-3.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.