Exploit database

Vulnerability

CVE-2022-1471

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

SnakeYaml's Constructor() class does not restrict types which can be instantiated during deserialization. Deserializing yaml content provided by an attacker can lead to remote code execution. We recommend using SnakeYaml's SafeConsturctor when parsing untrusted content to restrict deserialization. We recommend upgrading to version 2.0 and beyond.

NVD

Exploit source choices

6 sources
PyTorch Model Server Registration and Deserialization RCE
MSF-multi--http--torchserver_cve_2023_43654MetasploitJava / remotePreferred

The PyTorch model server contains multiple vulnerabilities that can be chained together to permit an unauthenticated remote attacker arbitrary Java code execution. The first vulnerability is that the management interface is bound to all IP addresses and not just the loop back interface as the documentation suggests. The second vulnerability (CVE-2023-43654) allows attackers with access to the management interface to register MAR model files from arbitrary servers. The third vulnerability is that when an MAR file is loaded, it can contain a YAML configuration file that when deserialized by snakeyaml, can lead to loading an arbitrary Java class.

2023-10-03torchserver_cve_2023_43654.rb
apimastery/snakeyaml-ext
GH-a7d298c158ed9c539cc528002df28482GitHubUnofficial GitHub source

A *copy* (not a mirror) of https://bitbucket.org/asomov/snakeyaml/ with extensions

2020-05-271,321 files · 0 stars
aykhan019/cve-2022-1471-jira-lab
GH-628d6497f2d7b7dd71226a6183f0ed3cGitHubUnofficial GitHub source

aykhan019/cve-2022-1471-jira-lab source repository

2026-08-1512 files · 0 stars
bw0101/bee004
GH-b46491d6036820476d0213c1aa17af52GitHubUnofficial GitHub source

Spring Boot 3 and java 17 Application

2023-08-1214 files · 0 stars
codescope-dev/duckyaml
GH-e48cb23c732efaa42a80de97112c1fe0GitHubUnofficial GitHub source

codescope-dev/duckyaml source repository

2023-01-0713 files · 0 stars