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

Medium 4.3 Published Updated

Remote attackers can inject arbitrary web script or HTML via XSS vulnerabilities in the MapServer CGI program, potentially compromising user sessions.

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-4542?

CVE-2007-4542 is a medium-severity cross-site scripting vulnerability in n/a, published on 27 Aug 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

Multiple cross-site scripting (XSS) vulnerabilities in MapServer before 4.10.3 allow remote attackers to inject arbitrary web script or HTML via unspecified vectors involving the (1) processLine function in maptemplate.c and the (2) writeError function in mapserv.c in the mapserv CGI program.

Weakness: CWE-79

Which versions are affected by CVE-2007-4542?

It affects 1 product.

Products include University of Minnesota Mapserver.

How do I fix CVE-2007-4542?

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-4542 being exploited?

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

Sources

Also known as DEBIAN-CVE-2007-4542, GHSA-h6vv-phq2-pfpp.

Is CVE-2007-4542 in your software?

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

Check your SBOMs for free