← Vulnerability feed

Vulnerability record · CVE-2004-1037 · published 1 March 2005

CVE-2004-1037: TWiki search function allows remote command execution

Twiki · Twiki

The search function in TWiki 20030201 passes user-supplied search strings to a shell without sanitizing shell metacharacters, allowing command injection. Because the endpoint is reachable over the network with no authentication, this is a full remote code execution flaw in a wiki that is typically internet-facing.

10.0 CVSS 2.0 High EPSS 62% · top 0.9%
10.0CVSS 2.0 base score
62%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
16References, 2 tagged exploit
16 Jun 2026Last modified by NVD

Description

The search function in TWiki 20030201 allows remote attackers to execute arbitrary commands via shell metacharacters in a search string.

AV:N/AC:L/Au:N/C:C/I:C/A:C

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

critical priorityUnauthenticated network-reachable remote code execution with a CVSS 2.0 score of 10 and a very high EPSS probability, though the product version is old.

What it is

The search function in TWiki 20030201 passes user-supplied search strings to a shell without sanitizing shell metacharacters, allowing command injection. Because the endpoint is reachable over the network with no authentication, this is a full remote code execution flaw in a wiki that is typically internet-facing.

Impact

An unauthenticated attacker can execute arbitrary commands with the privileges of the web server user, leading to full compromise of the TWiki host and any data or credentials it can reach.

Attack surface

Reached over the network via the TWiki search function (AV:N/AC:L/Au:N per the CVSS 2.0 vector); no authentication and no user interaction are required.

Exploitation

Not listed in CISA KEV, but EPSS is 0.61668 (99.13th percentile) and a SecurityFocus reference is tagged Exploit, indicating public exploit code exists.

What to do

  • Upgrade TWiki to a version that fixes the search command injection; the vendor security alert and Gentoo GLSA-200411-33 list the fixed releases.
  • If immediate upgrade is not possible, disable or restrict the search function and remove shell metacharacters from search input at the web server or proxy.
  • Run TWiki under a low-privilege account with no shell access and restrict outbound network access from the web server.
  • Apply the vendor and distribution patches referenced in the advisory (Gentoo, Conectiva) if using packaged TWiki.

Detection

  • Inspect web server and TWiki logs for search requests containing shell metacharacters such as ;, |, `, $(), && or newlines.
  • Monitor for unexpected child processes spawned by the web server user (sh, bash, curl, wget, nc).
  • Alert on outbound connections or file writes originating from the TWiki process outside normal behavior.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2004-1037 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2008-5305Twiki code injection vulnerabilityEval injection vulnerability in TWiki before 4.2.4 allows remote attackers to execute arbitrary Perl code via the %SEARCH{}% variable.EPSS 4.6%10.0CVE-2005-3625Easy software products cups vulnerabilityXpdf, as used in products such as gpdf, kpdf, pdftohtml, poppler, teTeX, CUPS, libextractor, and others, allows attackers to cause a denial of servic…EPSS 3.8%10.0CVE-2004-0990Gd graphics library gdlib vulnerabilityInteger overflow in GD Graphics Library libgd 2.0.28 (libgd2), and possibly other versions, allows remote attackers to cause a denial of service and …EPSS 28%10.0CVE-2004-1034Kaffeine player vulnerabilityBuffer overflow in the http_open function in Kaffeine before 0.5, whose code is also used in gxine before 0.3.3, allows remote attackers to cause a d…EPSS 5.7%10.0CVE-2004-1052Bnc vulnerabilityBuffer overflow in the getnickuserhost function in BNC 2.8.9, and possibly other versions, allows remote IRC servers to execute arbitrary code via an…EPSS 3.6%10.0CVE-2004-0947Arj software inc. unarj vulnerabilityBuffer overflow in unarj before 2.63a-r2 allows remote attackers to execute arbitrary code via an arj archive that contains long filenames.EPSS 7.4%10.0CVE-2004-0980Angus mackay ez-ipupdate vulnerabilityFormat string vulnerability in ez-ipupdate.c for ez-ipupdate 3.0.10 through 3.0.11b8, when running in daemon mode with certain service types in use, …EPSS 3.8%10.0CVE-2004-0981Imagemagick vulnerabilityBuffer overflow in the EXIF parsing routine in ImageMagick before 6.1.0 allows remote attackers to execute arbitrary code via a certain image file.EPSS 5.8%

Source: NIST National Vulnerability Database (record CVE-2004-1037), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.