Bug 2016686

Summary: python-babel: allows attackers to load arbitrary locale .dat files via directory traversal leading to code execution
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: apevec, bdettelb, dbecker, fschwarz, hhorak, hvyas, jjoyce, jnakfour, jorton, jschluet, lhh, lpeer, mburns, nphilipp, puebele, python-maint, python-sig, rhos-maint, sclewis, slinaber
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-babel 2.9.1 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in python-babel. A path traversal vulnerability in how locale data files are checked and loaded within python-babel allows a local attacker to trick an application that uses python-babel to load a file outside of the intended locale directory. The highest threat from this vulnerability is to data confidentiality and integrity as well as service availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 05:00:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2016687    

Description Guilherme de Almeida Suckevicz 2021-10-22 16:56:44 UTC
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.

Reference:
https://www.tenable.com/security/research/tra-2021-14

Upstream patch:
https://github.com/python-babel/babel/pull/782

Comment 1 Sandipan Roy 2021-10-25 05:00:22 UTC

*** This bug has been marked as a duplicate of bug 1955615 ***

Comment 5 Tomas Hoger 2021-11-05 10:33:20 UTC
Moving the CVE alias to flaw bug 1955615 for easier tracking.