org.yaml:snakeyaml@1.12 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.yaml:snakeyaml package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Arbitrary Code Execution

org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.

Affected versions of this package are vulnerable to Arbitrary Code Execution in the Constructor class, which does not restrict which types can be deserialized. This vulnerability is exploitable by an attacker who provides a malicious YAML file for deserialization, which circumvents the SafeConstructor class.

The maintainers of the library contend that the application's trust would already have had to be compromised or established and therefore dispute the risk associated with this issue on the basis that there is a high bar for exploitation.

How to fix Arbitrary Code Execution?

Upgrade org.yaml:snakeyaml to version 2.0 or higher.

[0,2.0)
  • L
Stack-based Buffer Overflow

org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.

Affected versions of this package are vulnerable to Stack-based Buffer Overflow when supplied with untrusted input, due to improper limitation for incoming data.

How to fix Stack-based Buffer Overflow?

Upgrade org.yaml:snakeyaml to version 1.32 or higher.

[,1.32)
  • L
Stack-based Buffer Overflow

org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.

Affected versions of this package are vulnerable to Stack-based Buffer Overflow in org.yaml.snakeyaml.constructor.BaseConstructor.constructObject when parsing crafted untrusted YAML files, which can lead to a denial-of-service.

How to fix Stack-based Buffer Overflow?

Upgrade org.yaml:snakeyaml to version 1.31 or higher.

[,1.31)
  • L
Stack-based Buffer Overflow

org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.

Affected versions of this package are vulnerable to Stack-based Buffer Overflow when parsing crafted untrusted YAML files, which can lead to a denial-of-service.

How to fix Stack-based Buffer Overflow?

Upgrade org.yaml:snakeyaml to version 1.32 or higher.

[,1.32)
  • M
Stack-based Buffer Overflow

org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.

Affected versions of this package are vulnerable to Stack-based Buffer Overflow when parsing crafted untrusted YAML files, which can lead to a denial-of-service.

How to fix Stack-based Buffer Overflow?

Upgrade org.yaml:snakeyaml to version 1.31 or higher.

[,1.31)
  • H
Denial of Service (DoS)

org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.

Affected versions of this package are vulnerable to Denial of Service (DoS) due to missing nested depth limitation for collections.

NOTE: This vulnerability has also been identified as: CVE-2022-25857

How to fix Denial of Service (DoS)?

Upgrade org.yaml:snakeyaml to version 1.31 or higher.

[0,1.31)
  • H
Denial of Service (DoS)

org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.

Affected versions of this package are vulnerable to Denial of Service (DoS) due to missing nested depth limitation for collections.

NOTE: This vulnerability has also been identified as: CVE-2022-38749

How to fix Denial of Service (DoS)?

Upgrade org.yaml:snakeyaml to version 1.31 or higher.

[0,1.31)
  • M
Denial of Service (DoS)

org.yaml:snakeyaml is a YAML 1.1 parser and emitter for Java.

Affected versions of this package are vulnerable to Denial of Service (DoS). The Alias feature in SnakeYAML 1.18 allows entity expansion during a load operation, a related issue to CVE-2003-1564.

Note While the Maintainer acknowledges the existence of the issue, they believe it should be solved by sanitizing the inputStream to the parser

How to fix Denial of Service (DoS)?

Upgrade org.yaml:snakeyaml to version 1.26 or higher.

[,1.26)