ALAS2023-2023-034 --- python-lxmlID: oval:org.secpod.oval:def:19500159 | Date: (C)2023-06-12 (M)2024-01-23 |
Class: PATCH | Family: unix |
There's a flaw in python-lxml's HTML Cleaner component, which is responsible for sanitizing HTML and Javascript. An attacker who is able to submit a crafted payload to a web service using python-lxml's HTML Cleaner may be able to trigger script execution in clients such as web browsers. This can occur because the HTML Cleaner did not remove scripts within SVG images in data URLs such as less than img src=greater than. XSS can result in impacts to the integrity and availability of the web page, as well as a potential impact to data confidentiality in some circumstances. NULL Pointer Dereference allows attackers to cause a denial of service . This only applies when lxml is used together with libxml2 2.9.10 through 2.9.14. libxml2 2.9.9 and earlier are not affected. It allows triggering crashes through forged input data, given a vulnerable code sequence in the application. The vulnerability is caused by the iterwalk function . Such code shouldn't be in wide-spread use, given that parsing + iterwalk would usually be replaced with the more efficient iterparse function. However, an XML converter that serialises to C14N would also be vulnerable, for example, and there are legitimate use cases for this code sequence. If untrusted input is received and processed via iterwalk function, a crash can be triggered
Platform: |
Amazon Linux 2023 |
Product: |
python-lxml |
python3-lxml |