CVE-1999-0067: NCSA/Apache phf CGI program OS command injection

CVE-1999-0067 · Severity: critical · CVSS 10 · Published 1996-03-20

The phf CGI program, an example script included with early web servers, contains a flaw that allows remote attackers to execute arbitrary commands on the server. By sending specially crafted web requests, an attacker can gain full control over the web server, potentially leading to the theft of sensitive data or a complete system takeover. This vulnerability is historically significant as one of the earliest widely exploited web-based command injection flaws.

Technologies: Apache HTTP Server. Vendors: Apache.

Quick answers

Is CVE-1999-0067 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-1999-0067 being exploited in the wild.
How severe is CVE-1999-0067?
Critical severity, with a CVSS score of 10, published 20 March 1996.
Which products and versions are affected?
NCSA/Apache phf CGI program.
Is there a fix for CVE-1999-0067?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-1999-0067 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-1999-0067?
Check whether you run Apache HTTP Server or Apache phf CGI program. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The phf CGI program fails to properly sanitize user input before passing it to a shell command, leading to an OS command injection vulnerability (CWE-78). Specifically, the program does not neutralize shell metacharacters (such as the newline character or semicolons) in the input fields. A remote, unauthenticated attacker can exploit this by submitting a crafted HTTP request containing these characters followed by arbitrary shell commands. This allows the attacker to execute commands with the privileges of the web server user (e.g., 'nobody' or 'www-data'), which can be leveraged for further privilege escalation or data exfiltration.

Affected products

  • NCSA/Apache phf CGI program

Timeline

  • 1996-03-20: disclosed: Initial public disclosure and NVD publication.
  • 1996-12-31: advisory: Included in the 1996 CERT advisory summary.

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.