CVE-2016-5681
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 · uneditedStack-based buffer overflow in dws/api/Login on D-Link DIR-850L B1 2.07 before 2.07WWB05, DIR-817 Ax, DIR-818LW Bx before 2.05b03beta03, DIR-822 C1 3.01 before 3.01WWb02, DIR-823 A1 1.00 before 1.00WWb05, DIR-895L A1 1.11 before 1.11WWb04, DIR-890L A1 1.09 before 1.09b14, DIR-885L A1 1.11 before 1.11WWb07, DIR-880L A1 1.07 before 1.07WWb08, DIR-868L B1 2.03 before 2.03WWb01, and DIR-868L C1 3.00 before 3.00WWb01 devices allows remote attackers to execute arbitrary code via a long session cookie.
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 confidenceStack-based buffer overflow in the dws/api/Login endpoint of multiple D-Link DIR-series wireless routers. The vulnerability is triggered by sending an overly long session cookie, which overflows a stack buffer and allows remote attackers to execute arbitrary code. This is a pre-authentication flaw affecting the login functionality.
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<= 2.03<= 3.00= 3.01<= 1.07<= 2.07<= 1.11<= jul.2016<= 2.05<= 1.09CVSS 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 router modelAccess the router's web interface or check the device label to confirm it is a D-Link DIR-series model (e.g., DIR-868L, DIR-822, DIR-880L, DIR-850L, DIR-895L, DIR-817L, DIR-818L, or DIR-890L)Affected if The device is not a D-Link DIR-series model from the affected product list
-
Check the installed firmware versionLog into the router web interface and navigate to Status or System settings to view the firmware version, or use the router's administration page to display firmware informationAffected if The firmware version falls within the affected ranges: DIR-868L <= 2.03 or <= 3.00, DIR-822 = 3.01, DIR-880L <= 1.07, DIR-850L <= 2.07, DIR-895L <= 1.11, DIR-817L <= July 2016, DIR-818L <= 2.05, or DIR-890L <= 1.09
-
Verify the web interface is accessibleAttempt to access the router's web login page (typically at http://192.168.0.1 or the router's LAN IP address) using a browser to confirm the dws/api/Login endpoint is reachableAffected if The web interface is accessible and responds to login requests
-
Confirm remote management exposureCheck the router's administration settings for remote management or WAN access options (often under Advanced > Remote Management or similar) to see if the web interface is reachable from the WAN/internetAffected if Remote management is enabled and the router's web interface is accessible from external networks
The device is affected if it is a D-Link DIR-series model listed above running a firmware version within the specified affected ranges and the web interface is accessible, particularly from external networks.
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 · scopedApply vendor-supplied firmware updates (e.g., DIR-850L B1 to 2.07WWB05, DIR-868L B1 to 2.03WWb01) to all affected devices. If firmware updates are unavailable, restrict external access to the router's web interface via firewall rules or disable remote management.
Upgrade to specific firmware versions: DIR-850L B1 to 2.07WWB05, DIR-818LW to 2.05b03beta03, DIR-822 C1 to 3.01WWb02, DIR-823 A1 to 1.00WWb05, DIR-895L A1 to 1.11WWb04, DIR-890L A1 to 1.09b14, DIR-885L A1 to 1.11WWb07, DIR-880L A1 to 1.07WWb08, DIR-868L B1 to 2.03WWb01, DIR-868L C1 to 3.00WWb01
- 1. Identify the exact model and current firmware version of the D-Link router from the affected list (DIR-850L, DIR-817, DIR-818LW, DIR-822, DIR-823, DIR-895L, DIR-890L, DIR-885L, DIR-880L, DIR-868L)
- 2. Access the router's web administration interface by navigating to the device's IP address
- 3. Navigate to the Administration or System settings section
- 4. Locate the Firmware Upgrade or Router Upgrade option
- 5. Download the appropriate fixed firmware version from D-Link's official support website
- 6. Upload the firmware file to the router and wait for the upgrade to complete
- 7. After reboot, verify the firmware version has been updated to the fixed release
- 8. Change the administrator password as a security best practice
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-2016-5681 — 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-2016-5681 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