CVE-2026-44481: Cacti 1.2.x: Pre-auth Open Redirect via link.php Referer header (CWE-601)

CVE-2026-44481 affects 13 listed versions of Cacti in the Dawnsentry catalogue.

4.3CVSS medium
None knownexploitation
–EPSS (next 30 days)
29 November 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Cacti

13 of 50 listed versions are affected. Fixed in 1.2.31. The newest release, 1.2.32, is not affected.

1.2.30 1.2.29 1.2.28 1.2.27 1.2.26 1.2.25 1.2.24 1.2.23 1.2.22 1.2.21 1.2.20 1.2.19 1.2.18

What it is

### Summary Cacti 1.2.30 (and earlier 1.2.x releases) contains an unauthenticated open redirect in `link.php`. When a request specifies a non-existent `external_links` id, `link.php` reflects the value of the HTTP `Referer` header into the `Location:` response header without validating the URL scheme or host. The sanitiser `sanitize_uri()` in `lib/functions.php` strips a fixed character set (parentheses, quotes, brackets, semicolons, etc.) but allows the URL scheme and host intact, so attacker-supplied `https://` URLs survive untouched. An attacker who can cause a victim's browser to issue a request to `/link.php?id=<non-existent>` with a controlled `Referer` can have the Cacti server redirect the victim to any external URL, providing a credential phishing pivot through the trusted Cacti domain. **No authentication is required.** ### Details **Vulnerable file**: `link.php` (root of the Cacti webroot). **Vulnerable helper**: `lib/functions.php :: sanitize_uri()` at line 4435. `sanitize_uri()` removes only the following character set: ``` ^ $ < > ` ' " | + [ ] { } ; ! ( ) ``` It **keeps**: letters, digits, slash, colon, dot, hyphen, ampersand, percent, etc. So `http(s)://`, `ftp://`, and protocol-relative `//` schemes all survive intact, plus arbitrary host names and query strings. `link.php` looks up the requested `external_links.id`. When the row is missing, it falls through to a redirect that uses `$_SERVER['HTTP_REFERER']` (after passing through `sanitize_uri()`): ``` php header('Location: ' . sanitize_uri($_SERVER['HTTP_REFERER'])); ``` Because the sanitiser does not validate scheme or host, the redirect target is fully attacker-controlled. ### PoC Single curl reproduction against the running Cacti instance: ``` $ curl -s -D - -o /dev/null \ -H "Referer: https://attacker.example/phish?token=secret" \ "http://<cacti-host>/link.php?id=99999" HTTP/1.1 302 Found ... Location: https://attacker.example/phish?token=secret ``` `id=99999` (any id with no row in `external_links`) triggers the redirect fallback. The `Referer` value is reflected into `Location` verbatim. ### Impact - **Vulnerability type**: Open Redirect (CWE-601 URL Redirection to Untrusted Site). - **Who is impacted**: any Cacti 1.2.x deployment exposed to users who follow links from attacker-controlled pages. Phishing campaigns can use this to obtain a redirect that originates from the trusted Cacti domain, lending credibility to the attacker's destination page (typical impact: credential-harvesting forms styled to look like the victim's organisation). - **Auth not required**: the redirect fires before any authentication check. - **Side notes**: - The `javascript:` variant is partially neutralised by the existing sanitiser (parentheses are dropped, so `javascript:alert(1)` arrives as `javascript:alert1` and is inert), and modern browsers also block `javascript:` URLs in `Location` headers. The practical impact is the plain HTTP(S) phishing redirect described above. - No direct C/I/A on the Cacti instance itself. CVSS v3.1 base: **4.3 Medium** - `AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`. ### Mitigation suggestion In `link.php`, before issuing the redirect: 1. Validate the destination URL with `filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED)` and reject anything whose scheme is not in a small allow-list (`http`, `https` only). 2. Confirm the host equals the configured Cacti host, OR fall back to a fixed internal page (`index.php`) when the request looks suspicious. 3. Either drop the Referer-based redirect entirely (preferred) or sign the redirect target server-side and verify on inbound. ### References - `link.php` (1.2.30): https://github.com/Cacti/cacti/blob/release/1.2.30/link.php - `lib/functions.php :: sanitize_uri()` (1.2.30, line 4435): https://github.com/Cacti/cacti/blob/release/1.2.30/lib/functions.php#L4435 - CWE-601 - URL Redirection to Untrusted Site: https://cwe.mitre.org/da

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N (GitHub)

Published by GitHub on 29 November 2026.

Sources

Check one version you run: look CVE-2026-44481 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.