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.0Related terms
- SBOM — A list of every software package and version inside an image, like an ingredients label.
- Log4j — Apache Log4j, a very widely used Java library for writing log messages, whose 2021 flaw Log4Shell let attackers run their own code on servers remotely.
- CycloneDX — An open standard format, usually written as JSON or XML, for a software bill of materials that lists every component inside a piece of software.
- semantic versioning — A version numbering scheme of three numbers, major.minor.patch, raised for breaking changes, new features and fixes respectively.
Taught in
- Vendor & Third-Party Risk Management Programs — Cybersecurity Fundamentals, GRC & Cryptography