← Vulnerability feed

Vulnerability record · CVE-2007-4744 · published 6 September 2007

CVE-2007-4744: AnyInventory environment.php remote file inclusion via DIR_PREFIX

Anyinventory · Anyinventory

AnyInventory 1.9.1 and 2.0 contains a remote file inclusion flaw in environment.php: when register_globals is enabled, the DIR_PREFIX parameter is not validated before being used in a file include. An attacker who can reach the script can point DIR_PREFIX at a remote URL and cause arbitrary PHP code to execute on the server.

6.8 CVSS 2.0 Medium EPSS 60% · top 0.9% CWE-20 · Improper input validationCWE-94 · Code injection
6.8CVSS 2.0 base score
60%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
10References
16 Jun 2026Last modified by NVD

Description

PHP remote file inclusion vulnerability in environment.php in AnyInventory 1.9.1 and 2.0, when register_globals is enabled, allows remote attackers to execute arbitrary PHP code via a URL in the DIR_PREFIX parameter.

AV:N/AC:M/Au:N/C:P/I:P/A:P

Automated analysis

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

high priorityRemote, unauthenticated code execution with public exploit code and a very high EPSS score, tempered only by the register_globals precondition and the age of the product.

What it is

AnyInventory 1.9.1 and 2.0 contains a remote file inclusion flaw in environment.php: when register_globals is enabled, the DIR_PREFIX parameter is not validated before being used in a file include. An attacker who can reach the script can point DIR_PREFIX at a remote URL and cause arbitrary PHP code to execute on the server.

Impact

Successful exploitation gives the attacker remote code execution in the context of the web server, allowing full compromise of the application and any data or host resources it can reach.

Attack surface

Reachable over the network via HTTP requests to environment.php; no authentication is required per the CVSS vector (Au:N), though the target PHP configuration must have register_globals enabled. No user interaction is indicated.

Exploitation

Not listed in CISA KEV, but EPSS is high (0.60095, ~99th percentile) and a public Exploit-DB entry (4365) exists, indicating exploit code is publicly available.

What to do

  • Upgrade or patch AnyInventory to a version that validates DIR_PREFIX; if no fixed release exists, treat the product as unsupported and migrate off it.
  • Disable register_globals in php.ini, which removes the precondition for this flaw.
  • Block outbound HTTP from the web server and disable allow_url_include/allow_url_fopen so remote URLs cannot be included.
  • Restrict network access to environment.php and the application to trusted clients only.
  • Run the web application under a low-privilege account with open_basedir set to limit file access.

Detection

  • Search web and PHP logs for requests to environment.php with a DIR_PREFIX parameter containing http://, https://, ftp:// or other URL schemes.
  • Alert on PHP include/require errors or unexpected outbound HTTP connections originating from the web server process.
  • Monitor for new or modified PHP files in web-accessible directories that could indicate dropped webshells.
  • Review PHP configuration baselines for register_globals=On and allow_url_include=On on hosts running AnyInventory.

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

Affected products

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

References

Track CVE-2007-4744 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.

9.5CVE-2026-88771Citrix NetScaler Improper Input Validation VulnerabilityImproper input validation vulnerability in Citrix NetScaler ADC and Citrix NetScaler Gateway. This issue affects ADC: before 14.1-73.37, before 13.1-…KEV9.5CVE-2026-93952Arista velocloud orchestrator improper input validation vulnerabilityVeloCloud Orchestrator (VCO) on-prem has a security issue where this issue may allow a remote attacker to access privileged internal functionality an…KEVEPSS 1.1%8.8CVE-2019-1068Microsoft SQL Server improper input validation remote code executionMicrosoft SQL Server mishandles processing of internal functions, allowing an authenticated remote attacker to execute code on the database server. T…KEVEPSS 58%analysed5.9CVE-2025-68686FortiOS symbolic link patch bypass exposes sensitive informationFortiOS contains an information exposure flaw (CWE-200) that lets a remote unauthenticated attacker bypass the patch for the symbolic link persistenc…KEVEPSS 30%analysed9.3CVE-2026-12569PTC Windchill PDMlink and FlexPLM deserialization RCEPTC Windchill PDMlink and FlexPLM contain a deserialization of untrusted data flaw (also classified as improper input validation) that allows remote …KEVEPSS 46%analysed10.0CVE-2026-34910Ubiquiti UniFi OS input validation flaw allows command injectionUniFi OS devices contain an improper input validation vulnerability (CWE-20) that lets a network-reachable attacker inject and execute commands. It a…KEVEPSS 46%analysed7.2CVE-2026-6973Ivanti EPMM improper input validation enables remote code executionIvanti Endpoint Manager Mobile (EPMM) before versions 12.6.1.1, 12.7.0.1, and 12.8.0.1 contains an improper input validation flaw (CWE-20) that lets …KEVEPSS 2.5%analysed7.5CVE-2026-20133Cisco Catalyst SD-WAN Manager insufficient file system restrictions expose dataCisco Catalyst SD-WAN Software has insufficient file system restrictions that let an attacker read sensitive files on the underlying operating system…KEVEPSS 32%analysed

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