LiveActive security incident?Get immediate response
CVE Record

CVE-2021-38687: Stack Overflow Vulnerability in Surveillance Station

A stack buffer overflow vulnerability has been reported to affect QNAP NAS running Surveillance Station. If exploited, this vulnerability allows attackers to execute arbitrary code. We have already fixed this vulnerability in the following versions of Surveillance Station: QTS 5.0.0 (64 bit): Surveillance Station 5.2.0.4.2 ( 2021/10/26 ) and later QTS 5.0.0 (32 bit): Surveillance Station 5.2.0.3.2 ( 2021/10/26 ) and later QTS 4.3.6 (64 bit): Surveillance Station 5.1.5.4.6 ( 2021/10/26 ) and later QTS 4.3.6 (32 bit): Surveillance Station 5.1.5.3.6 ( 2021/10/26 ) and later QTS 4.3.3: Surveillance Station 5.1.5.3.6 ( 2021/10/26 ) and later

HighCVSS 8.1Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-38687 affects QNAP NAS devices running Surveillance Station. It is a stack buffer overflow that could let a remote attacker run arbitrary code. QNAP reports fixed Surveillance Station versions for multiple QTS branches. The business risk is highest for NAS systems exposed to untrusted networks or used for security camera operations.

Executive priority

Prioritize remediation for QNAP NAS devices that are internet-facing, remotely accessible, or operationally important for camera surveillance. No active exploitation is cited in the bundle, but arbitrary code execution on NAS infrastructure is a serious business risk.

Technical view

The vulnerability is CWE-120 stack-based buffer overflow in QNAP Surveillance Station. CVSS 3.1 is 8.1 with network attack vector, no privileges, no user interaction, high attack complexity, and high confidentiality, integrity, and availability impact. The sources do not provide affected version ranges beyond fixed release thresholds.

Likely exposure

Exposure is limited to QNAP NAS systems running Surveillance Station below the fixed versions listed by QNAP for QTS 5.0.0, 4.3.6, or 4.3.3. The bundle lists affected versions as unspecified, so inventory must rely on installed package and QTS branch comparison.

Exploitation context

The CVSS vector indicates remote unauthenticated exploitation is possible, but attack complexity is high. The source bundle does not cite public exploitation, exploit code, or CISA KEV listing. Treat internet-exposed systems as higher urgency because successful exploitation could allow arbitrary code execution.

Researcher notes

The advisory does not describe the vulnerable component, parsing path, or trigger conditions. Avoid exploit reproduction for validation; use version-based assessment. The fixed-version matrix is the strongest remediation evidence, while the affected-version range remains incomplete in the provided sources.

Mitigation direction

  • Upgrade Surveillance Station to QNAP’s fixed version for the installed QTS branch.
  • For QTS 5.0.0 64-bit, use Surveillance Station 5.2.0.4.2 or later.
  • For QTS 5.0.0 32-bit, use Surveillance Station 5.2.0.3.2 or later.
  • For QTS 4.3.6 or 4.3.3, use the listed 5.1.5 fixed builds or later.
  • Reduce untrusted network access to affected NAS services until updates are confirmed.

Validation and detection

  • Inventory QNAP NAS devices running Surveillance Station.
  • Record each device’s QTS branch, architecture, and Surveillance Station version.
  • Compare installed versions against QNAP’s fixed-version list.
  • Prioritize devices reachable from the internet or untrusted networks.
  • Confirm update completion through QNAP package/version reporting.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-120: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-38687 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.1 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.1CVSS 3.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H2.25.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

8.1High
CVSS 3.1 vector shape for CVE-2021-38687Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
QNAP Systems Inc.Surveillance StationunspecifiedListed
QNAP Systems Inc.Surveillance StationunspecifiedListed
QNAP Systems Inc.Surveillance StationunspecifiedListed
QNAP Systems Inc.Surveillance StationunspecifiedListed
QNAP Systems Inc.Surveillance StationunspecifiedListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-120 · source CWE mapping

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.