SageMaker Python SDK replaced eval() with safe parser in JumpStart search functionality
## Summary This advisory addresses the use of the search_hub() function within the SageMaker Python SDK's JumpStart search functionality. An actor with the ability to control query parameters passed to the search_hub() function could potentially provide malformed input that causes the eval() function to execute arbitrary commands, access sensitive data, or compromise the execution environment. A defense-in-depth enhancement has been implemented to replace code evaluation with safe string operations when processing search query parameters. This enhancement removes the use of eval() from the execution path, replacing it with a safe recursive descent parser. The change was released in SageMaker Python SDK version 3.4.0 on January 23, 2026. This advisory is informational to help customers understand their responsibilities regarding input validation and configuration security under the [AWS Shared Responsibility Model](https://aws.amazon.com/compliance/shared-responsibility-model/). ## Impact Customer applications that pass unsanitized or untrusted input directly to the search_hub() function's query parameter could be prone to Remote Code Execution (RCE), potentially allowing attackers to execute arbitrary commands, access sensitive data, or compromise the execution environment. While the SDK was functioning within the requirements of the shared responsibility model—where input sanitization falls on the customer side—additional safeguards have been added to support secure customer
GHSA-5r2p-pjr8-7fh7
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-5r2p-pjr8-7fh7
sagemaker
Source reference: /affected/0/package/name
- Affected versions
- 3.0
Source reference:
/affected/0/versions3.0.1Source reference:
/affected/0/versions3.1.0Source reference:
/affected/0/versions3.1.1Source reference:
/affected/0/versions3.2.0Source reference:
/affected/0/versions3.3.0Source reference:
/affected/0/versions3.3.1Source reference:
/affected/0/versions - Fixed versions
- 3.4.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.4.0"
}
]
}
],
"package": {
"name": "sagemaker",
"purl": "pkg:pypi/sagemaker",
"ecosystem": "PyPI"
},
"versions": [
"3.0",
"3.0.1",
"3.1.0",
"3.1.1",
"3.2.0",
"3.3.0",
"3.3.1"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-5r2p-pjr8-7fh7/GHSA-5r2p-pjr8-7fh7.json"
}
}
]Publisher severity
high
Source reference: /database_specific/severity
- Event
- #71348 · Revision 1
- Added to Heist Feed
- Publisher date