Zum Hauptinhalt springen
LIVE
CVSS 7.0CVE-2026-138158 | libgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code execution.CVSS 7.7CVE-2026-138159 | edbrowse through 3.8.19 contains an integer overflow in stringAndBytes() that allows malicious servers to write past a heap buffer by sending response bodies larger than 2 GB. When a user browses to an attacker-controlled HTTP, FTP, or gopher server, the oversized body skips reallocation and corrupts the heap, causing crashes or potentially code execution.CVSS 8.5CVE-2026-138160 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ReadBackupTextLen() that allows attackers to overwrite stack memory via crafted backup files. Attackers can supply overlong quoted text values decoded into a 10,000-byte stack array during convertbackup, restore, or GSM_ReadBackupFile calls, causing crashes or potential code execution.CVSS 8.5CVE-2026-138161 | Gammu before 1.45.2 contains a buffer overflow vulnerability in LoadBackup() that allows attackers to corrupt memory by supplying an overlong MD5 value in a crafted backup file. Attackers can overwrite adjacent phonebook and calendar entry pointers via strcpy() into MD5Original when files are loaded with convertbackup or restore, causing crashes or potential code execution.CVSS 7.3CVE-2026-138162 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() that allows attackers to overwrite stack memory via oversized encoded phonebook text. Attackers can supply a crafted backup restored with gammu restore or addnew to an attached Alcatel phone, using GSM extension characters to crash Gammu or potentially execute code.CVSS 8.5CVE-2026-138163 | Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution.CVSS 4.8CVE-2026-138164 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in SaveBackupText() in backtext.c that allows attackers to corrupt stack memory by supplying long text fields. Attackers can craft a backup with long calendar or note fields that, when converted with gammu convertbackup, writes hex digits past the 10,000-byte stack buffer.CVSS 9.3CVE-2026-138154 | POSTAL 2 before build 26810491 contains a sandbox escape vulnerability that allows malicious Steam Workshop mods to execute code by calling ConsoleCommand with a start file URI. Attackers can ship a batch file in a mod at the predictable workshop install path and launch it via ShellExecuteW, executing commands as the player on Windows.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Stop Editing Prompts. Build a Context Compiler Instead

TL;DR— Most teams treat the final prompt string as the source of truth and hand-edit it like source code. That's the wrong abstraction. The prompt is a c…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 6 Min. Lesezeit
Quelle: dev.to
Rubrik: Secure Programming

TL;DR— Most teams treat the final prompt string as the source of truth and hand-edit it like source code. That's the wrong abstraction. The prompt is a compiled artifact assembled from templates, retrieved chunks, tool schemas, and history under a token budget— and it needs the same build discipline as any compiler: versioned sources, deterministic assembly, unit tests, and traces of what actually shipped.




Open the debug panel on most production LLM systems and you'll find a giant string: system instructions, a pile of retrieved chunks, some tool schemas, a truncated conversation history, all concatenated into one blob. Now watch what the team does when the model misbehaves. They open that string, tweak a sentence, redeploy, and call it a fix. That's not engineering. That's editing a compiled binary with a hex editor because you don't trust the build.



The actual discipline of context engineering starts with a simple reframing: the prompt is not source code. It's an artifact. It's the output of a build process— templates plus retrieved documents plus tool definitions plus history plus truncation logic— compiled down into tokens right before the API call. If you're editing that final string directly, you're editing generated code and hoping the generator doesn't overwrite you next deploy. It always does.






The source is upstream of the string



Every mature LLM system has real source material: a template with slots, a retrieval query, a ranking function, a token budget, an eviction policy for when things don't fit. The string that gets sent to the model is the compiled output of that pipeline. Treat it as such. Version the templates, not the rendered text. Diff the retrieval logic, not the chunk contents. When someone says "the prompt changed," the correct question is which upstream component changed— the template, the retriever, the ranker, the truncation rule— because that's where the actual bug or improvement lives.



This matters because rendered prompts are not diffable in any useful way. Two runs of the same template against slightly different retrieved context produce wildly different strings with no structural relationship between them. If your only artifact is the final string, you have no way to distinguish "the template is wrong" from "the retriever returned garbage" from "the truncation policy cut the important part." You just have a string that didn't work, and the fix-by-vibes loop begins.






Context is a budget, not a container



The second failure mode is treating the context window like unlimited shelf space instead of a scarce, priced resource. Teams add another retrieval call, another few examples, another paragraph of instructions, because there's room. There's almost always room— until there isn't, and the failure is silent. The model doesn't throw an exception when it's given too much irrelevant context. It just gets quietly worse: it misses the instruction buried on page three of the prompt, it anchors on the wrong example, it starts ignoring the system message because forty retrieved chunks are competing for attention.



This is a resource allocation problem, and resource allocation problems have known engineering patterns. Cache systems don't ask "do we have space for this entry"— they ask "what's the eviction policy, and what's the priority of this entry relative to what's already there." Context assembly needs the same explicit policy. What gets guaranteed placement (system instructions, the current turn, the tool schema)? What gets ranked and truncated (retrieved chunks, history)? What gets dropped entirely under pressure, and in what order? If that policy lives only in someone's head and gets re-litigated ad hoc every time the prompt gets "too long," you don't have a system. You have a habit.






The bugs that get blamed on the model



Here's the part that should worry senior engineers more than it does: context assembly bugs are indistinguishable from model failures unless you're specifically looking for them, and they get misdiagnosed constantly. A retriever that silently returns stale embeddings. A template that interpolates the wrong variable when a field is empty. A truncation function that cuts context mid-sentence and leaves a dangling instruction. A history window that drops the one message containing the user's actual constraint. None of these look like pipeline bugs from the outside. They look like the model being unreliable, and the response is almost always to blame the model and compensate with more prompt engineering— more caveats, more repeated instructions, more defensive phrasing— layered on top of a broken assembly step nobody actually inspected.



This is the same failure pattern as blaming a flaky test on "the test being flaky" when the real cause is a race condition in the code under test. The fix isn't a better test. The fix isn't a better prompt. It's fixing the thing that generates the input.






What the discipline actually requires



Real context engineering looks less like prompt tweaking and more like build engineering. It needs source control for templates and retrieval logic, separate from the model-facing eval suite. It needs unit tests for the assembly step specifically: given this state, does the compiler produce context with the right sections, in the right order, under the right token budget, with the right things evicted first? That's testable without ever calling a model, and almost nobody tests it, because it's boring and doesn't show up in a benchmark leaderboard.



It needs traces— not "did the prompt render," but a token-level record of what was actually sent for every production call, retained the way you'd retain a request log. When something goes wrong three weeks later, you want to reconstruct exactly what context the model saw, not what you assume your template would have produced. Rendered-prompt logging is the single highest-leverage observability investment most LLM teams haven't made, because it feels like logging noise until it's the only thing that explains an incident.



And it needs a real separation of concerns between two different eval questions that keep getting collapsed into one: did the context compiler assemble correct, well-prioritized, budget-respecting input, and did the model produce a good output given that input. Conflating those means every bug gets triaged as a model problem, every fix gets attempted as a prompt edit, and the actual defect— a broken build step upstream— survives indefinitely because nobody ever looks at it directly.



Prompt engineering as a craft is real and worth taking seriously. But craft without a build system doesn't scale past the first few thousand tokens of complexity, and every serious LLM application blows past that within a quarter. The teams that stop treating the rendered prompt as ground truth, and start treating it as compiled output of a system they can version, test, and trace, are the ones whose "model got worse" incidents actually get fixed instead of re-prompted into temporary submission.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

Community Rating & Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness
Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Related story clusters & sources (vector AI)

4 Cluster
2 sources
GitHub RCE Vulnerability Allows Hackers to Compromise Servers With a Single Git Push Command
tsecurity.de 1 day ago
1 more source
2 sources
Critical Danfoss Refrigeration Controller Vulnerability Could Let Hackers Execute Arbitrary Code Remotely
tsecurity.de 1 day ago
1 more source
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten Stop Editing Prompts. Build a Context Compiler Instead

Thematisch verwandte Begriffe: Stop, Editing, Prompts, Build · 6 Treffer

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & Topics
Loading widgets…
Nächster Beitrag