SnakeYAML

A popular Java library for reading and writing .yaml configuration files, whose versions before 2.0 could run attacker code when loading untrusted input.

In more detail

The flaw, CVE-2022-1471, sits in its default loader, which could build any Java object named in the input, so loading a hostile file let an attacker run code. Version 2.0 made the safe behaviour the default. It is a typical hidden dependency: bundled inside other products, it only shows up when you read their software bill of materials.

Example

CVE-2022-1471 org.yaml:snakeyaml 1.33: affected below 2.0

Related terms

Taught in

References