CVE-2024-51138
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 · uneditedVigor165/166 4.2.7 and earlier; Vigor2620/LTE200 3.9.8.9 and earlier; Vigor2860/2925 3.9.8 and earlier; Vigor2862/2926 3.9.9.5 and earlier; Vigor2133/2762/2832 3.9.9 and earlier; Vigor2135/2765/2766 4.4.5. and earlier; Vigor2865/2866/2927 4.4.5.3 and earlier; Vigor2962 4.3.2.8 and earlier; Vigor3912 4.3.6.1 and earlier; Vigor3910 4.4.3.1 and earlier a stack-based buffer overflow vulnerability has been identified in the URL parsing functionality of the TR069 STUN server. This flaw occurs due to insufficient bounds checking on the amount of URL parameters, allowing an attacker to exploit the overflow by sending a maliciously crafted request. Consequently, a remote attacker can execute arbitrary code with elevated privileges.
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 confidenceA stack-based buffer overflow vulnerability exists in the TR069 STUN server's URL parsing functionality across multiple DrayTek Vigor router models. The flaw stems from insufficient bounds checking when processing URL parameters, allowing an attacker to overflow a stack-allocated buffer by sending a maliciously crafted request with excessive parameters. This enables remote code execution with elevated privileges.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 4.4.3.2< 3.9.9.1< 3.9.9.1< 3.9.8.3< 3.9.8.3< 3.9.9.8< 3.9.9.8< 3.9.9.2CVSS 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
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/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 checksWork through these to decide whether this CVE applies to you.
-
Identify the DrayTek router modelAccess the router admin web interface or check the device label to determine the exact model number (e.g., Vigor3912, Vigor2620, Vigor2860, Vigor2925, Vigor2862, Vigor2926, Vigor2133, or Vigorlte200)Affected if The router model matches one of the affected models listed in the CVE
-
Check the installed firmware versionLog into the router web interface and navigate to System Maintenance > Firmware Upgrade, or use the CLI command 'sys fwup' or check the status page for the current firmware build numberAffected if The firmware version is lower than the threshold for your model (Vigor3912: < 4.4.3.2, Vigor2620/Vigorlte200: < 3.9.9.1, Vigor2860/Vigor2925: < 3.9.8.3, Vigor2862/Vigor2926: < 3.9.9.8, Vigor2133: < 3.9.9.2)
-
Verify if TR069 STUN server is enabledIn the router web interface, navigate to Application > TR069 STUN Server or similar path under WAN or Application settings, and check if the STUN server functionality is turned onAffected if The TR069 STUN server is enabled on the device
-
Confirm network accessibility of the STUN serverCheck firewall or access control rules to determine if the TR069 STUN server UDP port (typically 3478) is exposed to untrusted networks or the internetAffected if The STUN server port is reachable from untrusted external networks without proper access restrictions
The device is affected if it is a DrayTek Vigor model listed in the CVE, runs firmware below the specified threshold, and has the TR069 STUN server enabled and accessible.
Generated from the published advisory. Verify against your own configuration.
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.
dbcve · scoped3.9.8.33.9.9.13.9.9.2
Apply vendor-supplied firmware updates for the specific Vigor model to address the bounds checking deficiency in the TR069 STUN server URL parsing code.
Vigor3912: 4.4.3.2+ | Vigor2620: 3.9.9.1+ | Vigorlte200: 3.9.9.1+ | Vigor2860: 3.9.8.3+ | Vigor2925: 3.9.8.3+ | Vigor2862: 3.9.9.8+ | Vigor2926: 3.9.9.8+ | Vigor2133: 3.9.9.2+ (refer to DrayTek for complete model-specific releases)
- 1. Identify the exact DrayTek Vigor router model from the affected product list (Vigor3912, Vigor2620, Vigorlte200, Vigor2860, Vigor2925, Vigor2862, Vigor2926, Vigor2133)
- 2. Access the router's web administration interface or CLI
- 3. Navigate to the Firmware Upgrade or System Maintenance section
- 4. Download the appropriate fixed firmware version from the official DrayTek support website (draytek.com)
- 5. Upload and apply the firmware update, ensuring uninterrupted power during the process
- 6. After reboot, verify the new firmware version matches or exceeds the fixed release for your model
- 7. Consider resetting to factory defaults and reconfiguring after major firmware upgrades to ensure clean configuration
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,600.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-51138 — 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-51138 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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