LiveActive security incident?Get immediate response
CVE Record

CVE-2022-1471: Remote Code execution in SnakeYAML

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.

HighCVSS 8.3Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

SnakeYAML can run attacker-controlled code when an application parses untrusted YAML with the unsafe Constructor class. The main business risk is in Java services or products that accept YAML through uploads, APIs, configuration, or integrations. Prioritize systems where untrusted users can influence YAML input.

Executive priority

High priority for internet-facing or authenticated services that accept YAML input. Lower urgency for isolated internal use where YAML is fully trusted, but still track upgrades because affected libraries may be embedded in third-party products.

Technical view

CVE-2022-1471 is unsafe deserialization in SnakeYAML: Constructor() does not restrict which types can be instantiated during YAML parsing. CVSS is 8.3 high, with network attack vector, low complexity, privileges required, no user interaction, and high confidentiality and integrity impact. Sources recommend SafeConstructor for untrusted YAML and upgrading to SnakeYAML 2.0 or later.

Likely exposure

Exposure is most likely in applications or embedded products using SnakeYAML to parse attacker-provided YAML. Downstream vendor advisories show supply-chain relevance. The bundle does not prove every SnakeYAML deployment is exploitable; reachability of untrusted YAML parsing is the key condition.

Exploitation context

CVE-2022-1471 is not listed as KEV in the provided bundle. Public research and downstream advisories exist, but the bundle does not establish active exploitation in the wild. Avoid assuming exploitation without separate evidence.

Researcher notes

Focus validation on reachability, not just dependency presence. The CVE hinges on unsafe Constructor-based deserialization of attacker-controlled YAML. Sources name SafeConstructor and version 2.0+ as remediation direction; do not infer product-specific fixes beyond cited advisories.

Mitigation direction

  • Upgrade SnakeYAML to version 2.0 or later where supported.
  • Use SafeConstructor when parsing untrusted YAML content.
  • Identify downstream products that bundle SnakeYAML and follow vendor advisories.
  • Restrict who can submit YAML until affected parsing paths are remediated.
  • Check vendor guidance when a product cannot be directly upgraded.

Validation and detection

  • Inventory Java applications and dependencies for SnakeYAML usage.
  • Find code paths using Constructor() on untrusted YAML input.
  • Confirm deployed dependency versions are SnakeYAML 2.0 or later.
  • Review product vendor advisories for embedded SnakeYAML exposure.
  • Add regression tests covering untrusted YAML parsing behavior.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-20: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-1471 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.3 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
10Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.3CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L2.85.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

8.3High
CVSS 3.1 vector shape for CVE-2022-1471Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
SnakeYAMLSnakeYAML0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.