CVE-2026-110248
Sensitive repo credentials logged in CloudWatch when git clone fails (SageMaker SDK).
- CVSS 6.0
- CWE-532
- Information Leakage
- Remote
Insertion of sensitive information into log files in the git_utils[.]py component in Amazon SageMaker Python SDK V3 before 3.10.0 and V2 before 2.257.3 might allow an authenticated remote user to obtain plaintext repository credentials from CloudWatch Logs when a git clone operation fails, because the runclone_command() function does not redact credentials from subprocess error output. To remediate this issue, users should upgrade to Amazon SageMaker Python SDK V3 3.10.0 or V2 2.257.3.
- CWE
- CWE-532
- CVSS base score
- 6.0
- Published
- 2026-10-14
- OWASP
- A02 Cryptographic Failures
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Information Leakage
- Subcategory
- Information Disclosure
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- Amazon SageMaker Python SDK
- Fixed by upgrading
- Yes
Solution
Upgrade to Amazon SageMaker Python SDK V3 3.10.0 (or later) or V2 2.257.3 (or later).
Vulnerable code sample
import logging
import subprocess
logger = logging.getLogger(__name__)
def runclone_command(repo_url: str, branch: str = "main"):
"""
Clone a git repository. If the clone fails, the subprocess error output is logged directly,
potentially leaking embedded credentials.
"""
cmd = ["git", "clone", "--branch", branch, repo_url]
try:
subprocess.check_output(cmd, stderr=subprocess.STDOUT, text=True)
except subprocess.CalledProcessError as e:
# VULNERABLE: logs raw error output containing credentials
logger.error("Git clone failed: %s", e.output)
raisePatched code sample
import logging
import subprocess
import re
logger = logging.getLogger(__name__)
def _redact_credentials(text: str) -> str:
"""
Simple redaction of URLs that contain user:password@.
"""
# Replace any occurrence of user:pass@ with ***:***@
return re.sub(r'(?P<scheme>https?://)(?P<auth>[^/@]+:[^/@]+)@', r'\g<scheme>***:***@', text)
def runclone_command(repo_url: str, branch: str = "main"):
"""
Clone a git repository. On failure, logs error output after redacting possible credentials.
"""
cmd = ["git", "clone", "--branch", branch, repo_url]
try:
subprocess.check_output(cmd, stderr=subprocess.STDOUT, text=True)
except subprocess.CalledProcessError as e:
# FIX: redact credentials before logging
safe_output = _redact_credentials(e.output)
logger.error("Git clone failed: %s", safe_output)
raiseCite this entry
@misc{vaitp:cve2026110248,
title = {{Sensitive repo credentials logged in CloudWatch when git clone fails (SageMaker SDK).}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-110248},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-110248/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
