testcontainers-java icon indicating copy to clipboard operation
testcontainers-java copied to clipboard

SnakeYaml SafeConstructor restricting deserialization

Open julianladisch opened this issue 2 years ago • 0 comments

ParsedDockerComposeFile is vulnerable to deserialization gadget chain attacks that can lead to remote code execution when the file has untrusted content: https://nvd.nist.gov/vuln/detail/CVE-2022-1471

This should be fixed by using SafeConstructor as suggested by the SnakeYaml developers.

Deserialization of arbitrary Java types is not used by the Compose file spec and therefore can be disabled without any loss of functionality: https://docs.docker.com/compose/compose-file/

julianladisch avatar Dec 22 '22 11:12 julianladisch