Summary
Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-1299: The email module, specifically the "BytesGenerator" class, didn't properly quote newlines for email headers when serializing an email message allowing for header injection when an email is serialized. This is only applicable if using "LiteralHeader" writing headers that don't respect email folding rules, the new behavior will reject the incorrectly folded headers in "BytesGenerator". CVE-2026-0865: User-controlled header names and values containing newlines can allow injecting HTTP headers. CVE-2026-0672: When using http.cookies.Morsel, user-controlled cookie values and parameters can allow injecting HTTP headers into messages. Patch rejects all control characters within cookie names, values, and parameters. CVE-2025-15282: User-controlled data URLs parsed by urllib.request.DataHandler allow injecting headers through newlines in the data URL mediatype. CVE-2025-11468: When folding a long comment in an email header containing exclusively unfoldable characters, the parenthesis would not be preserved. This could be used for injecting headers into email messages where addresses are user-controlled and not sanitized.
Fixed packages 8
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2 | python3 | 0:3.7.16-1.amzn2.0.23 |
| Amazon Linux · 2 | python3-debug | 0:3.7.16-1.amzn2.0.23 |
| Amazon Linux · 2 | python3-debuginfo | 0:3.7.16-1.amzn2.0.23 |
| Amazon Linux · 2 | python3-devel | 0:3.7.16-1.amzn2.0.23 |
| Amazon Linux · 2 | python3-libs | 0:3.7.16-1.amzn2.0.23 |
| Amazon Linux · 2 | python3-test | 0:3.7.16-1.amzn2.0.23 |
| Amazon Linux · 2 | python3-tkinter | 0:3.7.16-1.amzn2.0.23 |
| Amazon Linux · 2 | python3-tools | 0:3.7.16-1.amzn2.0.23 |
Vulnerabilities 5
-
Medium 6.0
Header injection via newlines in data URL mediatype
User-controlled data URLs parsed by urllib.request.DataHandler allow injecting headers through newlines in the data URL mediatype.
-
Medium 6.0
Header injection in http.cookies.Morsel
When using http.cookies.Morsel, user-controlled cookie values and parameters can allow injecting HTTP headers into messages. Patch rejects all control characters within cookie names, values, and parameters.
-
Medium 6.0
email BytesGenerator header injection due to unquoted newlines
The email module, specifically the "BytesGenerator" class, didn’t properly quote newlines for email headers when serializing an email message allowing for header injection when an email is serialized. This is only applicable if using "LiteralHeader" writing h…
-
Medium 5.9
wsgiref.headers.Headers allows header newline injection
User-controlled header names and values containing newlines can allow injecting HTTP headers.
-
Medium 5.7
Folding email comments of unfoldable characters doesn't preserve parenthesis
When folding a long comment in an email header containing exclusively unfoldable characters, the parenthesis would not be preserved. This could be used for injecting headers into email messages where addresses are user-controlled and not sanitized.
References
-
web
https://alas.aws.amazon.com/cve/html/CVE-2025-11468.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2025-15282.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2026-0672.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2026-0865.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2026-1299.html