Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113507 Overview
CVE-2026-113507 is an improper access control vulnerability in aaPanel through version 8.25.0. The flaw resides in the GetClientIp function of class/public/common.py, which trusts the client-supplied X-Real-Ip HTTP header without validation. An unauthenticated remote attacker can manipulate this header to spoof their source IP address and bypass IP-based access controls. The vendor has confirmed the issue and states that the X-Real-Ip IP-bypass vulnerability has been fixed. A public proof-of-concept is available, increasing the likelihood of opportunistic exploitation against exposed aaPanel instances.
Critical Impact
Remote attackers can spoof their source IP via the X-Real-Ip header to bypass IP allowlists and access controls protecting the aaPanel administrative interface.
Affected Products
- aaPanel versions up to and including 8.25.0
- Deployments relying on IP-based access restrictions in class/public/common.py
- Internet-facing aaPanel management consoles behind reverse proxies
Discovery Timeline
- 2026-10-20 - CVE-2026-113507 published to the National Vulnerability Database (NVD)
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-113507
Vulnerability Analysis
The vulnerability stems from unsafe handling of HTTP request headers inside the GetClientIp function in class/public/common.py. The function returns the value of the X-Real-Ip header as the authoritative client IP address without verifying that the request originated from a trusted upstream proxy. Downstream authorization logic uses that returned value when enforcing IP allowlists or administrative access rules.
Because the HTTP header is attacker-controlled, any remote client can inject an arbitrary IP string into the request. aaPanel then treats the request as if it originated from the spoofed address. The weakness is tracked as [CWE-266: Incorrect Privilege Assignment], and the attack can be launched over the network without authentication or user interaction.
Root Cause
The root cause is reliance on an unauthenticated, client-controlled HTTP header for a security-sensitive decision. GetClientIp should prefer the TCP socket peer address and only consult forwarding headers when the immediate peer is an explicitly trusted proxy. Without that trust check, the application cannot distinguish between a legitimate proxy and a malicious client forging headers.
Attack Vector
An attacker sends an HTTP request to the aaPanel service and includes an X-Real-Ip header containing an IP address that satisfies an allowlist, for example 127.0.0.1 or an internal management subnet. The GetClientIp function returns the forged value, and aaPanel authorizes the request as if it came from the trusted source. This permits reconnaissance of restricted endpoints and potential access to administrative functionality that was supposed to be reachable only from specific IPs. A public proof-of-concept is hosted in the GitHub PoC Repository.
No verified code examples are available. Technical details are documented in the VulDB entry for CVE-2026-113507.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-113507
Indicators of Compromise
- Inbound HTTP requests to aaPanel endpoints containing an X-Real-Ip header set to loopback (127.0.0.1) or RFC1918 addresses from external sources
- Successful access to administrative routes without a corresponding authenticated session from an allowlisted range
- Repeated requests from a single external source address iterating different X-Real-Ip values
Detection Strategies
- Inspect web server and reverse-proxy access logs for X-Real-Ip headers that do not match the real TCP source address
- Alert on requests to aaPanel management paths where the TCP peer is not an authorized proxy but a forwarding header is present
- Correlate authentication and administrative actions against the actual socket peer IP rather than the application-reported client IP
Monitoring Recommendations
- Enable verbose request logging on the aaPanel host and any upstream reverse proxy, capturing both the TCP peer and all forwarding headers
- Forward aaPanel and proxy logs to a centralized analytics platform for header anomaly detection
- Monitor for new administrative account creation, SSH key changes, or site configuration modifications following suspicious header activity
How to Mitigate CVE-2026-113507
Immediate Actions Required
- Upgrade aaPanel to the fixed release published by the vendor as referenced in the VulDB advisory
- Restrict network-level access to the aaPanel management port using host firewalls or security groups rather than relying solely on application-layer IP checks
- Audit class/public/common.py and any custom patches to ensure GetClientIp validates the upstream proxy before honoring forwarding headers
Patch Information
The vendor confirms the X-Real-Ip IP-bypass vulnerability has been fixed. Administrators should apply the latest aaPanel update beyond version 8.25.0. Refer to the VulDB CVE-2026-113507 record for additional references.
Workarounds
- Configure the upstream reverse proxy (Nginx or similar) to strip or overwrite inbound X-Real-Ip and X-Forwarded-For headers before forwarding to aaPanel
- Bind the aaPanel administrative interface to localhost or a management VLAN and require VPN access from administrators
- Place aaPanel behind a Web Application Firewall rule that rejects requests containing X-Real-Ip headers from untrusted sources
# Nginx example: discard client-supplied X-Real-Ip and set it from the real socket peer
location / {
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://127.0.0.1:7800;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

