Ubuntu 16.04 LTS / 18.04 LTS / 20.04 LTS / 22.04 LTS : ruby-loofah vulnerabilities (USN-9510-1)

medium Nessus Plugin ID 394235

Synopsis

The remote Ubuntu host is missing one or more security updates.

Description

The remote Ubuntu 16.04 LTS / 18.04 LTS / 20.04 LTS / 22.04 LTS host has a package installed that is affected by multiple vulnerabilities as referenced in the USN-9510-1 advisory.

It was discovered that Loofah did not properly sanitize certain SVG elements when they were republished. An attacker could possibly use this issue to inject arbitrary JavaScript into sanitized output. This issue only affected Ubuntu 18.04 LTS. (CVE-2018-16468, CVE-2019-15587)

It was discovered that Loofah used an inefficient regular expression when sanitizing certain SVG attributes. An attacker could possibly use this issue to cause Loofah to use excessive resources, leading to a denial of service. (CVE-2022-23514)

It was discovered that Loofah did not properly sanitize data URIs using the image/svg+xml media type. An 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-23515)

It was discovered that Loofah used recursion when sanitizing CDATA sections, which could lead to stack exhaustion. An attacker could possibly use this issue to cause Loofah to crash, resulting in a denial of service. (CVE-2022-23516)

Tenable has extracted the preceding description block directly from the Ubuntu security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the affected ruby-loofah package.

See Also

https://ubuntu.com/security/CVE-2018-16468

https://ubuntu.com/security/CVE-2019-15587

https://ubuntu.com/security/CVE-2022-23514

https://ubuntu.com/security/CVE-2022-23515

https://ubuntu.com/security/CVE-2022-23516

https://ubuntu.com/security/notices/USN-9510-1

Plugin Details

Severity: Medium

ID: 394235

File Name: ubuntu_USN-9510-1.nasl

Version: 1.1

Type: Local

Agent: unix

Published: 12/5/2026

Updated: 12/5/2026

Supported Sensors: Nessus Agent, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.18

CVSS v2

Risk Factor: Low

Base Score: 3.5

Temporal Score: 2.6

Vector: CVSS2#AV:N/AC:M/Au:S/C:N/I:P/A:N

CVSS Score Source: CVE-2019-15587

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS Score Source: CVE-2022-23515

Vulnerability Information

CPE: cpe:/o:canonical:ubuntu_linux:16.04:-:lts, cpe:/o:canonical:ubuntu_linux:18.04:-:lts, cpe:/o:canonical:ubuntu_linux:20.04:-:lts, cpe:/o:canonical:ubuntu_linux:22.04:-:lts, cpe:/o:canonical:ubuntu_linux:pro:-:lts, p-cpe:/a:canonical:ubuntu_linux:ruby-loofah

Required KB Items: Host/cpu, Host/Debian/dpkg-l, Host/Ubuntu, Host/Ubuntu/release

Exploit Ease: No known exploits are available

Patch Publication Date: 12/3/2026

Vulnerability Publication Date: 10/30/2018

Reference Information

CVE: CVE-2018-16468, CVE-2019-15587, CVE-2022-23514, CVE-2022-23515, CVE-2022-23516

USN: 9510-1