Security mailing lists by PureSourceCode

CVE-2022-1471

CRITICAL 9.8CVSS 3.1

SnakeYaml Constructor Deserialization Remote Code Execution

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.

Published
1 Dec 2022
Last modified
10 Sep 2026
Assigned by
cve-coordination@google.com
NVD status
Modified
Weakness
CWE-20CWE-502
Also known as
GHSA-mjmj-j48q-9wg2
Sources
NVDJSONOSV GHSA-mjmj-j48q-9wg2JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD cve-coordination@google.com (Secondary) CVSS 3.1 HIGH 8.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
OSV GitHub CVSS 3.1 HIGH 8.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD snakeyaml_project snakeyaml
cpe:2.3:a:snakeyaml_project:snakeyaml:*:*:*:*:*:*:*:*
< 2.0 2.0
OSV Maven org.yaml:snakeyaml < 2.0 2.0

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 1 Dec 2022)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Dec 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.