HighGHSA-h4m5-qpfp-3mpvCVE-2021-42771PYSEC-2021-421
Directory Traversal in Babel
Published 21 Oct 2021 · Updated 12 Sept 2024
Is your project on an affected babel?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
babelPyPI
- Affected
- <2.9.1
- Fixed in
- 2.9.1
Update to the fixed version for your release line, for example:
pip install 'babel>=2.9.1'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.
Is GHSA-h4m5-qpfp-3mpv in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected babel, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-42771
- Linkgithub.com/python-babel/babel/pull/782
- Linkgithub.com/python-babel/babel/commit/412015ef642bfcc0d8ba8f4d05cdbb6aac98d9b3
- Advisorygithub.com/advisories/GHSA-h4m5-qpfp-3mpv
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/babel/PYSEC-2021-421.yaml
- Linkgithub.com/python-babel/babel
- Linklists.debian.org/debian-lts-announce/2021/10/msg00018.html
- Linklists.debian.org/debian-lts/2021/10/msg00040.html
- Linkwww.debian.org/security/2021/dsa-5018
- Linkwww.tenable.com/security/research/tra-2021-14
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.