CapnprotoApplication

CVE-2017-7892

HIGH · 7.5 CVSS v3.0 Published 2017-04-17
Fix available
A fix is available. Upgrade to after 0.5.3 or later.
See remediation →
84/100
Remediation priority · High
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
Sandstorm Cap'n Proto before 0.5.3.1 allows remote crashes related to a compiler optimization. A remote attacker can trigger a segfault in a 32-bit libcapnp application because Cap'n Proto relies on pointer arithmetic calculations that overflow. An example compiler with optimization that elides a bounds check in such calculations is Apple LLVM version 8.1.0 (clang-802.0.41). The attack vector is a crafted far pointer within a message.

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

A remote attacker can cause a segfault in 32-bit libcapnp applications by sending a crafted far pointer within a message. The vulnerability exists because Cap'n Proto relies on pointer arithmetic calculations that overflow, and certain compiler optimizations (like Apple LLVM 8.1.0) elide bounds checks in these calculations.

MitigationUpgrade Cap'n Proto library to version 0.5.3.1 or later to patch the integer overflow vulnerability in pointer arithmetic calculations.

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
CapnprotoApplication
Affected:<= 0.5.3

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
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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 installed Cap'n Proto version
    Run 'capnp --version' or check the library version via your system's package manager (dpkg, rpm, brew) or examine the libcapnp shared object file metadata
    Affected if The version is 0.5.3 or earlier
  2. Confirm 32-bit architecture is in use
    Check if the process or application using Cap'n Proto is running as a 32-bit executable (file <binary> on Linux or Task Manager details on Windows)
    Affected if The application or library is compiled for 32-bit (i386, i686, x86)
  3. Identify if libcapnp handles network messages
    Review application configuration or code to determine if it uses Cap'n Proto for deserializing messages received over the network
    Affected if The application accepts Cap'n Proto messages from untrusted network sources
  4. Check for exposed Cap'n Proto network services
    Audit listening network services (netstat, ss, or similar tools) for any services using Cap'n Proto protocol
    Affected if There is a network service that processes incoming Cap'n Proto messages

You are affected if your installed Cap'n Proto library version is 0.5.3 or earlier AND you run 32-bit applications that receive Cap'n Proto messages from network sources.

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
Upgrade available Upgrade to a release after 0.5.3
Interim mitigation

Upgrade Cap'n Proto library to version 0.5.3.1 or later to patch the integer overflow vulnerability in pointer arithmetic calculations.

Fix this in Capnproto Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing3.0 h
  • Review / QA2.0 h
9.0 hours of engineering $1,570
Get the upgrade done

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

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2017-7892 — 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-2017-7892 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