Directory Traversal Affecting py3-babel package, versions <2.9.1-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.77% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE324-PY3BABEL-17298041
  • published11 Jun 2026
  • disclosed20 Oct 2021

Introduced: 20 Oct 2021

CVE-2021-42771  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Alpine:3.24 py3-babel to version 2.9.1-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-babel package and not the py3-babel package as distributed by Alpine. See How to fix? for Alpine:3.24 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1