CVE-2007-0242 Cross-site scripting in n/a

Medium 4.3 Published Updated

Remote attackers can exploit a UTF-8 decoding flaw in Qt to perform cross-site scripting and directory traversal attacks.

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-2007-0242?

CVE-2007-0242 is a medium-severity cross-site scripting vulnerability in Qt Qt, published on 3 Apr 2007. 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

The UTF-8 decoder in codecs/qutfcodec.cpp in Qt 3.3.8 and 4.2.3 does not reject long UTF-8 sequences as required by the standard, which allows remote attackers to conduct cross-site scripting (XSS) and directory traversal attacks via long sequences that decode to dangerous metacharacters.

Which versions are affected by CVE-2007-0242?

It affects 1 product.

Products include Qt Qt.

How do I fix CVE-2007-0242?

Upgrade to a fixed version.

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-2007-0242 being exploited?

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

All Qt Qt vulnerabilities

Sources

Also known as DSA-1292-1, GHSA-4hj5-9h7j-98c6.

Is CVE-2007-0242 in your software?

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

Check your SBOMs for free