Stack-based Buffer OverflowWeakness · CWE-121

CVE-2024-45413

HIGH · 8.1 CVSS v3.1 Published 2024-09-16
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
90/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
The HTTPD binary in multiple ZTE routers has a stack-based buffer overflow vulnerability in rsa_decrypt function. This function is an API wrapper for LUA to decrypt RSA encrypted ciphertext, the decrypted data is stored on the stack without checking its length. An authenticated attacker can get RCE as root by exploiting this vulnerability.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Stack-based buffer overflow in the rsa_decrypt function of the HTTPD binary in multiple ZTE routers. The function, which serves as a LUA API wrapper for RSA decryption, stores decrypted data on the stack without validating the output length, allowing an authenticated attacker to achieve root-level RCE.

MitigationApply vendor-supplied firmware patches when available; in the interim, restrict access to the affected management interface and implement network segmentation to limit exposure.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify the ZTE router model and firmware version
    Access the router's web interface or check the administrative console for the device model number and firmware version under 'System Info' or 'Device Status'. Alternatively, use SNMP or check the startup banner of the HTTPD service.
    Affected if The device is a ZTE router model known to contain the HTTPD binary with the vulnerable rsa_decrypt function, and the firmware version falls within the unpatched range.
  2. Verify the HTTPD management interface is network-accessible
    Attempt to reach the router's web interface on common ports (80/443) from a non-local network segment. Check firewall rules or NAT configurations that may expose the management interface externally.
    Affected if The HTTPD service listening on the management port is reachable from an untrusted network, increasing attack surface.
  3. Confirm the rsa_decrypt LUA API endpoint exists
    Probe the router for LUA API endpoints by accessing paths such as /cgi-bin/ or similar administrative paths and look for RSA decryption-related API functions. Review any accessible API documentation or intercept HTTP requests during normal administrative use.
    Affected if The rsa_decrypt LUA API wrapper function is exposed and accessible without additional hardening.
  4. Verify authentication is enforced on the management interface
    Attempt to access the router's management pages or API endpoints without providing valid credentials. Observe whether the device returns an authentication prompt, redirects to a login page, or denies access.
    Affected if The management interface or specific API endpoints do not require valid authentication, allowing an attacker to reach the vulnerable function.
  5. Check for signs of exploitation or anomalous behavior
    Review router logs, especially those from the HTTPD binary, for unexpected RSA decryption operations, buffer overflow indicators, or unexpected process execution. Monitor for new user accounts or unexpected changes to the device configuration.
    Affected if Logs show unauthorized RSA decryption calls, stack corruption errors, or indicators that the vulnerability has been exploited.

The environment is affected if the device is a ZTE router running a firmware version containing the vulnerable rsa_decrypt function in the HTTPD binary, the management interface is accessible to the attacker, and the attacker can authenticate to reach the vulnerable API endpoint.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Apply vendor-supplied firmware patches when available; in the interim, restrict access to the affected management interface and implement network segmentation to limit exposure.

Have this fixed Scoped from the published advisory
  • Consultation8.0 h
  • Implementation4.0 h
  • Testing6.0 h
  • Review / QA4.0 h
22.0 hours of engineering $3,940
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,304.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-45413 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-45413 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data