HIGH 7.5

CVE-2026-40452: Apache IoTDB Authorization Bypass in fastLastQuery REST Endpoint

Apache IoTDB contains an authorization flaw in its REST API endpoint `/rest/v2/fastLastQuery` that allows authenticated users to access time-series data they should not be permitted to view. An attacker with valid credentials—but no legitimate access to specific datasets—can retrieve the latest values from sensors, devices, or other IoT sources, potentially exposing sensitive operational or environmental information. This is a classic privilege-escalation scenario where the application fails to enforce proper access controls before returning query results.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses (CWE)
CWE-284, CWE-863
Affected products
0 configuration(s)
Published / Modified
2026-07-10 / 2026-07-10

NVD description (verbatim)

Incorrect Authorization, Improper Access Control vulnerability in Apache IoTDB. Authorization bypass in /rest/v2/fastLastQuery exposes last-value data to unauthorized authenticated users. This issue affects Apache IoTDB: from 1.3.5 before 1.3.8, from 2.0.5 before 2.0.10. Users are recommended to upgrade to version 2.0.10, which fixes the issue.

2 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability resides in the REST API handler for the `/rest/v2/fastLastQuery` endpoint within Apache IoTDB. The root cause is improper authorization validation (CWE-284, CWE-863): the endpoint does not adequately check whether the authenticated user has permission to access the specific time-series or measurement data they request. Once an authenticated session is established, an attacker can craft REST API calls to retrieve last-value queries from any time-series in the database, bypassing the intended row-level or resource-level access controls. The flaw affects versions 1.3.5 through 1.3.7 and versions 2.0.5 through 2.0.9; version 2.0.10 resolves the issue by enforcing proper authorization checks before responding to queries.

Business impact

In production IoT and sensor environments, time-series databases store operational metrics that can reveal facility conditions, equipment status, production rates, or environmental readings. Unauthorized access via this flaw enables a malicious insider or compromised account to harvest sensitive telemetry without detection. For organizations in regulated industries (manufacturing, utilities, healthcare), this data exposure may trigger compliance violations and breach notification obligations. The confidentiality impact is direct and high: an attacker gains visibility into information they should never access, potentially enabling downstream attacks such as identifying maintenance schedules, detecting security gaps, or gathering intelligence for physical-world attacks.

Affected systems

Apache IoTDB installations running version 1.3.5 through 1.3.7 or version 2.0.5 through 2.0.9 are vulnerable. Deployments where the `/rest/v2/fastLastQuery` endpoint is exposed to authenticated users—either internal staff or external API consumers—carry active risk. Organizations using IoTDB for critical time-series collection (industrial IoT, monitoring, smart building systems) should prioritize inventory and patching.

Exploitability

The CVSS 3.1 score of 7.5 (HIGH) reflects high exploitability: the attack requires no user interaction, can be launched over the network, and requires only valid authentication credentials—a realistic threat in any organization. No privilege escalation is needed; a low-privilege authenticated user can trigger the flaw. However, the vulnerability is not in the KEV (Known Exploited Vulnerabilities) catalog, meaning active, weaponized exploitation in the wild has not yet been documented. Nevertheless, the attack is straightforward: an attacker simply needs to send authenticated REST requests to the endpoint with different query parameters to enumerate and exfiltrate time-series data.

Remediation

Upgrade to Apache IoTDB version 2.0.10 or later, which includes authorization fixes. For users on the 1.3.x branch, evaluate migration paths to 2.0.x; if that is not immediately feasible, apply vendor-recommended patches or access controls (such as network segmentation or API gateway rules) to restrict who can reach the `/rest/v2/fastLastQuery` endpoint. Additionally, review access logs for unauthorized query attempts and audit which users and service accounts have been granted REST API access.

Patch guidance

Apache IoTDB 2.0.10 is available and patches the authorization flaw. Users on 2.0.5–2.0.9 should upgrade without delay. For those on 1.3.5–1.3.7, verify against the vendor advisory whether a backported patch is available or if migration to 2.0.10 is the recommended path. Test patches in a non-production environment before rollout, particularly to ensure that legitimate access controls remain intact and that performance is not affected. Automated deployment tools and version pinning should be updated to enforce the minimum safe version.

Detection guidance

Monitor REST API logs for unusual patterns in `/rest/v2/fastLastQuery` requests: look for queries originating from unexpected IP ranges, requests for time-series that a user should not access, or abnormally high query volumes from a single account. Correlation rules can flag when a low-privilege user submits queries across many unrelated time-series. Network intrusion detection signatures may identify attempts to exploit the endpoint with unusual parameter values. Post-patch, baseline normal query patterns to establish anomaly baselines for ongoing monitoring.

Why prioritize this

This vulnerability merits urgent attention because it directly compromises data confidentiality in environments where time-series data is considered sensitive, and because the exploit path is trivial for any authenticated user. The absence of KEV status suggests that public exploits may not yet be widely available, creating a narrow window to patch before adversaries weaponize the flaw. Organizations should prioritize IoTDB instances that handle business-critical or regulated data, followed by general production deployments.

Risk score, explained

The CVSS 3.1 score of 7.5 (HIGH, vector: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) reflects: Network-accessible attack vector with low attack complexity; no special privileges or user interaction required; confidentiality impact is complete (attackers can read all requested time-series data), but no integrity or availability impact. The score appropriately captures the practical risk: easy exploitation coupled with meaningful data theft, but no system crash or data modification.

Frequently asked questions

Does this vulnerability allow an attacker to modify or delete time-series data?

No. The flaw is confined to read access. Attackers can query and retrieve last-value data, but the vulnerability does not grant write, delete, or modification capabilities. Integrity of the database is not directly compromised.

If we restrict network access to the REST API, are we protected until we patch?

Partial protection: if the `/rest/v2/fastLastQuery` endpoint is not accessible to any authenticated users—either through firewall rules, API gateway policies, or IP whitelisting—the attack surface is reduced. However, patching remains essential for comprehensive remediation, especially if legitimate internal or external services require REST API access.

How do we know if this vulnerability has already been exploited in our environment?

Review REST API audit logs and query history, looking for requests to `/rest/v2/fastLastQuery` from unexpected accounts or IP addresses, or queries targeting time-series outside a user's normal scope. Compare user-to-time-series access patterns against your role-based access control (RBAC) policies. If available, enable query auditing at the database layer and correlate with application-layer logs.

Is upgrading to 2.0.10 a drop-in replacement for earlier 2.0.x versions?

In most cases, yes. Version 2.0.10 is a patch release within the 2.0.x family and should be backward compatible. Nevertheless, always test in a staging environment and review release notes for any breaking changes or required configuration adjustments.

This analysis is provided for informational purposes and does not constitute professional security advice. Verify all technical details and patch availability against official Apache IoTDB vendor advisories and your own environment. CVE-2026-40452 has not been added to the CISA KEV catalog as of the knowledge cutoff; exploit availability may change. Organizations should conduct their own risk assessment and testing before applying patches or access controls. SEC.co makes no warranties regarding the completeness or accuracy of this analysis. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).