| Name | CVE-2022-40023 | 
| Description | 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. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| References | DLA-3116-1 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| mako (PTS) | bullseye | 1.1.3+ds1-2 | vulnerable | 
|  | bookworm | 1.2.4+ds-1 | fixed | 
|  | trixie | 1.3.9-1 | fixed | 
|  | forky, sid | 1.3.10-3 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|
| mako | source | buster | 1.0.7+ds1-1+deb10u1 |  | DLA-3116-1 |  | 
| mako | source | (unstable) | 1.2.2+ds1-1 |  |  |  | 
Notes
[bullseye] - mako <no-dsa> (Minor issue)
https://github.com/sqlalchemy/mako/commit/925760291d6efec64fda6e9dd1fd9cfbd5be068c (rel_1_2_2)
https://github.com/sqlalchemy/mako/issues/366