CVE-2012-6684 RedCloth Cross-site Scripting vulnerability

Medium 4.3 Published Updated

Remote attackers can inject arbitrary web script or HTML via javascript URIs in the RedCloth Ruby library, requiring user interaction to execute.

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-2012-6684?

CVE-2012-6684 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 8 Jan 2015. 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

Cross-site scripting (XSS) vulnerability in the RedCloth library 4.2.9 for Ruby and earlier allows remote attackers to inject arbitrary web script or HTML via a javascript: URI.

Weakness: CWE-79

Which versions are affected by CVE-2012-6684?

2 open source packages ship an affected version, including RedCloth. It affects 2 products.

PackageAffectedFixed in
RedCloth RubyGemsAll versions4.3.0
RedCloth RubyGemsAll versions4.3.0

Products include Debian Debian Linux, Redcloth Redcloth Library.

How do I fix CVE-2012-6684?

Upgrade RedCloth to 4.3.0 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-2012-6684 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2012-6684, DLA-167-1, DSA-3168-1, GHSA-r23g-3qw4-gfh2, openSUSE-SU-2024:10401-1.

Is CVE-2012-6684 in your software?

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

Check your SBOMs for free