ADVISORIES

GitHub Advisory Database

GHSA-m87f-9fvv-2mgg

Deserialization of Untrusted Data in parlai

Details

Impact

Due to use of unsafe YAML deserialization logic, an attacker with the ability to modify local YAML configuration files could provide malicious input, resulting in remote code execution or similar risks.

Patches

The issue can be patched by upgrading to v1.1.0 or later. It can also be patched by replacing YAML deserialization with equivalent safe_load calls.

References

  • https://github.com/facebookresearch/ParlAI/commit/507d066ef432ea27d3e201da08009872a2f37725
  • https://github.com/facebookresearch/ParlAI/commit/4374fa2aba383db6526ab36e939eb1cf8ef99879
  • https://anon-artist.github.io/blogs/blog3.html

Affected packages

EcosystemPackageAffected versions
PyPIparlai
All versions before 1.1.0 (fixed in 1.1.0)

References