Advisory

GHSA-h4m5-qpfp-3mpv

Also known as: CVE-2021-42771, PYSEC-2021-421

Summary

Directory Traversal in Babel

Details

Babel.Locale in Babel before 2.9.1 allows attackers to load arbitrary locale .dat files (containing serialized Python objects) via directory traversal, leading to code execution.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-10-21 17:49 UTC
Modified
2024-09-12 21:07 UTC

Affected packages and fixes

babel

PyPI · All systems

Affected

  • introduced 0, fixed 2.9.1 (ecosystem)

Fixed versions

2.9.1

Fix

  • Fixed version 2.9.1
    pip install --upgrade babel==2.9.1

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