[high] semgrep: A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a… #839

Closed
opened 2026-11-04 16:32:30 +00:00 by pruefwerk · 2 comments
Member

high Finding

Scanner: semgrep
Severity: high
Rule: 0xdea-raptor-insecure-api-strcpy-strcat
CWE: CWE-676
CRA: cra-ai-20 — Automatisierte Sicherheitstests (Annex I)

Description

A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.

Location

File: fixtures/nightly/firmware/c-sensor-node/Core/Src/comms.c (line 20)

Code

    strcpy(command, rx_buffer);

Remediation

Exclude fixtures/nightly from security scanning or mark it as test code.


Fingerprint: 2550252bcaa6a55b86802e3ec71c53aa760a0316f387f7d28eb8344a82262a92
Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen

## high Finding **Scanner:** semgrep **Severity:** high **Rule:** 0xdea-raptor-insecure-api-strcpy-strcat **CWE:** CWE-676 **CRA:** cra-ai-20 — Automatisierte Sicherheitstests (Annex I) ### Description A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer. ### Location **File:** `fixtures/nightly/firmware/c-sensor-node/Core/Src/comms.c` (line 20) ### Code ``` strcpy(command, rx_buffer); ``` ### Remediation Exclude fixtures/nightly from security scanning or mark it as test code. --- *Fingerprint:* `2550252bcaa6a55b86802e3ec71c53aa760a0316f387f7d28eb8344a82262a92` *Generated by compliance-scanner* [Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
pruefwerk added the cra:annex-ipruefwerkseverity:high labels 2026-11-04 16:32:30 +00:00
Author
Member

Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.

The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.

**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind. The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Author
Member

Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.

The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.

**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind. The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#839