# CVE-2023-46302: Deserialization of Untrusted Data in apache-submarine

Source: https://junglewise.ai/threats/cve-2023-46302-deserialization-of-untrusted-data-in-apache-submarine  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-11-20  
License: CC BY 4.0 with a link back

CVE-2023-46302 · Severity: low · CVSS 3.1 · Published 2023-11-20

Apache Software Foundation Apache Submarine has a bug when serializing against yaml. The bug is caused by snakeyaml  https://nvd.nist.gov/vuln/detail/CVE-2022-1471 .

Apache Submarine uses JAXRS to define REST endpoints.  In order to
handle YAML requests (using application/yaml content-type), it defines
a YamlEntityProvider entity provider that will process all incoming
YAML requests.  In order to unmarshal the request, the readFrom method
is invoked, passing the entityStream containing the user-supplied data in `submarine-server/server-core/src/main/java/org/apache/submarine/server/utils/YamlUtils.java`.
 
We have now fixed this issue in the new version by replacing to `jackson-dataformat-yaml`.
 This issue affects Apache Submarine: from 0.7.0 before 0.8.0. Users are recommended to upgrade to version 0.8.0, which fixes this issue.
If using the version smaller than 0.8.0  and not want to upgrade, you can try cherry-pick PR  https://github.com/apache/submarine/pull/1054  and rebuild the submart-server image to fix this.

Technologies: [apache-submarine (PyPI)](https://junglewise.ai/threats/technologies/apache-submarine). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-46302 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-46302 being exploited in the wild.

**How severe is CVE-2023-46302?** Low severity, with a CVSS score of 3.1, published 20 November 2023.

**Which products and versions are affected?** apache-submarine (PyPI) ECOSYSTEM:introduced=0.7.0,fixed=0.8.0.

**Is there a fix for CVE-2023-46302?** Yes. apache-submarine (PyPI): upgrade to 0.8.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-46302?** Check whether you run apache-submarine (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- apache-submarine (PyPI): upgrade to 0.8.0 or later

  ```sh
  pip install "apache-submarine>=0.8.0"
  ```


## Affected products

- apache-submarine (PyPI) ECOSYSTEM:introduced=0.7.0,fixed=0.8.0

## Identifiers

- CVE-2023-46302
- GHSA-8hcr-5x2g-9f7j
- PYSEC-2023-240

## Related threats

- [Apache Submarine Server Core Incorrect Authorization vulnerability](https://junglewise.ai/threats/cve-2024-36265-apache-submarine-server-core-incorrect-authorization)
- [Apache Submarine Commons Utils has a hard-coded secret](https://junglewise.ai/threats/cve-2024-36264-apache-submarine-commons-utils-has-a-hard-coded-secret)
- [SQL injection in Apache Submarine](https://junglewise.ai/threats/cve-2023-37924-sql-injection-in-apache-submarine)
