Ubuntu CVE Tracker
UBUNTU-CVE-2022-40023
Details
Sqlalchemy mako before 1.2.2 is vulnerable to Regular expression Denial of Service when using the Lexer class to parse. This also affects babelplugin and linguaplugin.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:16.04:LTS | mako | All versions before 1.0.3+ds1-1ubuntu1+esm1 (fixed in 1.0.3+ds1-1ubuntu1+esm1) |
| Ubuntu:18.04:LTS | mako | All versions before 1.0.7+ds1-1ubuntu0.2 (fixed in 1.0.7+ds1-1ubuntu0.2) |
| Ubuntu:20.04:LTS | mako | All versions before 1.1.0+ds1-1ubuntu2.1 (fixed in 1.1.0+ds1-1ubuntu2.1) |
| Ubuntu:22.04:LTS | mako | All versions before 1.1.3+ds1-2ubuntu0.1 (fixed in 1.1.3+ds1-2ubuntu0.1) |
References
- https://ubuntu.com/security/CVE-2022-40023
- https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c
- https://github.com/sqlalchemy/mako/issues/366
- https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c
- https://pyup.io/vulnerabilities/CVE-2022-40023/50870/
- https://github.com/sqlalchemy/mako/blob/c2f392e0be52dc67d1b9770ab8cce6a9c736d547/mako/ext/extract.py#L21
- https://ubuntu.com/security/notices/USN-5625-1
- https://ubuntu.com/security/notices/USN-5625-2
- https://www.cve.org/CVERecord?id=CVE-2022-40023