CVE-2003-1365: Input Validation

Published Dec 31, 2003
·
Updated

The escapedangerouschars function in CGI::Lite 2.0 and earlier does not correctly remove special characters including (1) "\" (backslash), (2) "?", (3) "~" (tilde), (4) "^" (carat), (5) newline, or (6) carriage return, which could allow remote attackers to read or write arbitrary files, or execute arbitrary commands, in shell scripts that rely on CGI::Lite to filter such dangerous inputs.

Affected Software

1 affected component
Perl Cgi Lite=2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    For applications using Perl CGI::Lite 2.0 and earlier, implement input validation/sanitization before using user-supplied data in shell commands, file paths, or other sensitive contexts: remove or percent-encode the following characters that CGI::Lite's escape_dangerous_chars fails to strip — backslash (\), question mark (?), tilde (~), caret (^), newline (LF, U+000A), and carriage return (CR, U+000D) — or outright reject requests containing these characters. Do not rely on CGI::Lite::escape_dangerous_chars for this filtering.

Event History

Dec 31, 2003
CVE Published
05:00 AM
Data Sourced
via NVD·05:00 AM
DescriptionSeverityWeaknessAffected Software
Oct 17, 2007
CVE Published
via MITRE·05:00 AM
Data Sourced
via MITRE·05:00 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2003-1365?

CVE-2003-1365 is considered a high-severity vulnerability due to the potential for arbitrary file access and execution.

2

How do I fix CVE-2003-1365?

To fix CVE-2003-1365, upgrade CGI::Lite to version 2.01 or later, which corrects the issue with escape_dangerous_chars.

3

What are the main vulnerabilities associated with CVE-2003-1365?

CVE-2003-1365 allows remote attackers to manipulate special characters, leading to arbitrary file reading or writing.

4

Which versions of CGI::Lite are affected by CVE-2003-1365?

CGI::Lite versions 2.0 and earlier are affected by CVE-2003-1365.

5

Can CVE-2003-1365 be exploited remotely?

Yes, CVE-2003-1365 can be exploited remotely, allowing attackers to execute arbitrary code or access files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203