Skip to main content

CVE-2017-9785 — Deserialization of Untrusted Data in Nancy

CRITICAL

Deserialization of Untrusted Data in NancyFX Nancy

Published May 17, 2022Updated November 8, 2023Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (3.01%). Schedule for your next planned update.

Does your project use an affected Nancy version?

Paste your packages.lock.json to check it for CVE-2017-9785 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my packages.lock.json

Summary

Csrf.cs in NancyFX Nancy before 1.4.4 and 2.x before 2.0-dangermouse has Remote Code Execution via Deserialization of JSON data in a CSRF Cookie.

Advisory Timeline

  • First published May 17, 2022 (1654 days ago).
  • Last revised November 8, 2023 — 540 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update Nancy to 2.0.0 or later
dotnet add package Nancy --version 2.0.0
NuGet
Update Nancy to 1.4.4 or later
dotnet add package Nancy --version 1.4.4

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: NuGet (1).

PackageFixed In
Nancy NuGet · Affected: 2.0.0-alpha, 2.0.0-barneyrubble, 2.0.0-clienteastwood, 2.0.0-clinteastwood2.0.0
Nancy NuGet · Affected: 0.10.0, 0.11.0, 0.12.0, 0.12.1 (+37 more)1.4.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-502
    Deserialization of Untrusted DataMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2017-9785?
Deserialization of Untrusted Data in NancyFX Nancy. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2017-9785?
CVE-2017-9785 affects Nancy. It has a 3.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2017-9785 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
3.01%
EPSS percentile: 88.1

This places it in the top quartile of EPSS-scored vulnerabilities — 88.1% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.

Also Known As

GHSA-mx3q-j2g2-5qxq

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my packages.lock.json