From cf273ba3958ad02afa361167a0d0f82e1f4b5f4d Mon Sep 17 00:00:00 2001 From: "GPT 5.5" Date: Wed, 29 Apr 2026 06:39:02 +0800 Subject: [PATCH] avoid duplicate validation in set_value CVE: CVE-2026-44244 Upstream-Status: Backport [https://github.com/gitpython-developers/GitPython/commit/8e24503b42c1d63dd98e8b2e6a2f655bdd0821e3] Co-authored-by: Sebastian Thiel (cherry picked from commit 8e24503b42c1d63dd98e8b2e6a2f655bdd0821e3) Signed-off-by: Darsh Kelaiya --- git/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/config.py b/git/config.py index ce307110..7988f5d9 100644 --- a/git/config.py +++ b/git/config.py @@ -876,7 +876,7 @@ class GitConfigParser(cp.RawConfigParser, metaclass=MetaParserBuilder): value_str = self._value_to_string_safe(value) if not self.has_section(section): self.add_section(section) - self.set(section, option, value_str) + super().set(section, option, value_str) return self @needs_values -- 2.35.6