CVE-2018-0499 xapian-core Cross-site Scripting vulnerability

Medium 6.1 Published Updated

An attacker can inject malicious scripts via incomplete HTML escaping in Xapian's snippet generation, potentially leading to code execution in the context of the application using the library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-0499?

CVE-2018-0499 is a medium-severity cross-site scripting vulnerability in Canonical Ubuntu Linux, published on 2 Jul 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A cross-site scripting vulnerability in queryparser/termgenerator_internal.cc in Xapian xapian-core before 1.4.6 exists due to incomplete HTML escaping by Xapian::MSet::snippet().

Weakness: CWE-79

Which versions are affected by CVE-2018-0499?

2 open source packages ship an affected version, including xapian-core. It affects 2 products.

PackageAffectedFixed in
xapian-core RubyGemsAll versions1.4.6
xapian-core RubyGemsAll versions1.4.6
Linux distribution packages (1)
xapian openSUSE:TumbleweedAll versions1.4.18-1.6

Products include Canonical Ubuntu Linux, Xapian Xapian-Core.

How do I fix CVE-2018-0499?

Upgrade xapian-core to 1.4.6 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2018-0499 being exploited?

There is no known exploitation of CVE-2018-0499 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-0499, DEBIAN-CVE-2018-0499, GHSA-7qw4-w7hf-22q3, UBUNTU-CVE-2018-0499, USN-3709-1, openSUSE-SU-2024:11516-1.

Is CVE-2018-0499 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free