USN-9438-1: ruby-rails-html-sanitizer vulnerabilities
It was discovered that Rails HTML Sanitizer used an inefficient regular expression when sanitizing certain attributes. A remote attacker could possibly use this issue to cause Rails HTML Sanitizer to use excessive resources, leading to a denial of service. (CVE-2022-23517)
It was discovered that Rails HTML Sanitizer did not properly sanitize certain URIs. A remote attacker could possibly use this issue to perform cross-site scripting attacks. This issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2022-23518)
It was discovered that Rails HTML Sanitizer did not properly sanitize content under certain configurations. A remote attacker could possibly use this issue to perform cross-site scripting attacks. (CVE-2022-23519)
It was discovered that Rails HTML Sanitizer did not properly sanitize content under certain other configurations. A remote attacker could possibly use these issues to perform cross-site scripting attacks. (CVE-2022-23520, CVE-2022-32209)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/ruby-rails-html-sanitizerto a version that resolves this vulnerability.Fixed in 1.0.3-2ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/ruby-rails-html-sanitizerto a version that resolves this vulnerability.Fixed in 1.0.4-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/ruby-rails-html-sanitizerto a version that resolves this vulnerability.Fixed in 1.3.0-1ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/ruby-rails-html-sanitizerto a version that resolves this vulnerability.Fixed in 1.4.2-2ubuntu0.1~esm1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What attacker interaction is required for exploitation?
The issues can be triggered remotely. For the denial-of-service issue, an attacker needs to cause sanitization of certain attributes; for the cross-site scripting issues, they need to supply content or URIs that reach affected sanitization paths.
Which Ubuntu releases are affected by the URI sanitization cross-site scripting issue?
The URI sanitization issue tracked as CVE-2022-23518 affects Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS only.
What impact should be prioritized during triage?
CVE-2022-23517 can cause excessive resource consumption and denial of service. CVE-2022-23518, CVE-2022-23519, CVE-2022-23520, and CVE-2022-32209 can allow cross-site scripting when affected sanitization behavior and configurations are used.
Are all of the cross-site scripting issues configuration-independent?
No. CVE-2022-23519 affects content sanitization under certain configurations, and CVE-2022-23520 and CVE-2022-32209 affect content sanitization under certain other configurations. The provided information does not identify the specific configurations.