# CVE-2006-1688: Code injection in n/a

> Remote attackers can execute arbitrary PHP code via URL injection in libpath parameters, affecting SQuery and related game server tools.

- **Severity:** High 7.5 (`AV:N/AC:L/Au:N/C:P/I:P/A:P`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 10 Apr 2006
- **Updated:** 7 Aug 2024
- **Also known as:** GHSA-r44w-x6h3-gc9x

## What is CVE-2006-1688?

CVE-2006-1688 is a high-severity code injection vulnerability in n/a, published on 10 Apr 2006. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Multiple PHP remote file inclusion vulnerabilities in SQuery 4.5 and earlier, as used in products such as Autonomous LAN party (ALP), allow remote attackers to execute arbitrary PHP code via a URL in the libpath parameter to scripts in the lib directory including (1) ase.php, (2) devi.php, (3) doom3.php, (4) et.php, (5) flashpoint.php, (6) gameSpy.php, (7) gameSpy2.php, (8) gore.php, (9) gsvari.php, (10) halo.php, (11) hlife.php, (12) hlife2.php, (13) igi2.php, (14) main.lib.php, (15) netpanzer.php, (16) old_hlife.php, (17) pkill.php, (18) q2a.php, (19) q3a.php, (20) qworld.php, (21) rene.php, (22) rvbshld.php, (23) savage.php, (24) simracer.php, (25) sof1.php, (26) sof2.php, (27) unreal.php, (28) ut2004.php, and (29) vietcong.php. NOTE: the lib/armygame.php vector is already covered by CVE-2006-1610. The provenance of most of these additional vectors is unknown, although likely from post-disclosure analysis.  NOTE: this only occurs when register_globals is disabled.

Weakness: CWE-94 (Improper Control of Generation of Code)

## Which versions are affected by CVE-2006-1688?

It affects 1 product.


Products: Squery Squery.

## How do I fix CVE-2006-1688?

No fix has been published for CVE-2006-1688 yet. Limit exposure of the affected software until one is available.

## Is CVE-2006-1688 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-1688 exists.

Public exploit code:

- SQuery 4.5 - 'libpath' Remote File Inclusion (exploitdb)

## Other vulnerabilities in n/a

- [CVE-2006-1610](https://insights.sbomify.com/CVE-2006-1610/): Code injection in n/a (medium 5.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2006-1688 and fix it if it is affected.

What it is: CVE-2006-1688 is a high-severity code injection vulnerability in n/a, published on 10 Apr 2006. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-1688 exists.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2006-1688/ (Markdown: https://insights.sbomify.com/CVE-2006-1688/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2006-1688
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2006-1688
- OSV: https://osv.dev/vulnerability/CVE-2006-1688

---
From sbomify Insights: https://insights.sbomify.com/CVE-2006-1688/
Summaries are generated and may contain mistakes; the official description above is the record.
