Advisory

GHSA-m87f-9fvv-2mgg

Also known as: CVE-2021-24040, CVE-2021-39207, GHSA-mwgj-7x7j-6966, PYSEC-2021-330, PYSEC-2021-334

Summary

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-09-13 20:05 UTC
Modified
2026-07-08 06:29 UTC

Affected packages and fixes

parlai

PyPI · All systems

Affected

  • introduced 0, fixed 1.1.0 (ecosystem)

Fixed versions

1.1.0

Fix

  • Fixed version 1.1.0
    pip install --upgrade parlai==1.1.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences