Zum Hauptinhalt springen
LIVE
CVSS 8.7CVE-2026-138099 | A vulnerability was identified in Tenda AC10U 1.18.6. Affected by this vulnerability is the function readUsb of the component ATE Service. Such manipulation leads to out-of-bounds write. The attack can be executed remotely. The exploit is publicly available and might be used.CVSS 6.9CVE-2026-138098 | A vulnerability was determined in weison-tech yii2-cms up to 1.0.2. Affected is an unknown function of the file protected/core/config/common.php of the component RBAC Authorization. This manipulation causes improper authorization. Remote exploitation of the attack is possible.CVSS 6.9CVE-2026-138097 | A vulnerability was found in weison-tech yii2-cms up to 1.0.2. This impacts the function isActive of the file AccessControl.php of the component RBAC Admin Module. The manipulation results in missing authorization. The attack may be launched remotely.CVSS 6.9CVE-2026-138096 | A vulnerability has been found in weison-tech yii2-cms up to 1.0.2. This affects an unknown function of the file protected/core/config/web.php of the component Admin Auto-Login Identity Cookie. The manipulation leads to improper authentication. The attack may be initiated remotely.CVSS 4.8CVE-2026-138094 | A security vulnerability has been detected in ggml-org llama.cpp up to 0.6.0. Impacted is the function ggml_acc_impl of the file ggml/src/ggml.c of the component ggml Handler. Such manipulation leads to numeric truncation error. The attack can only be performed from a local environment. Upgrading to version 0.7.0 is recommended to address this issue. The name of the patch is 8ae386707bed05f02354dbfc6fa5ee0cf58e5f0f. It is recommended to upgrade the affectedCVSS 6.9CVE-2026-138093 | A weakness has been identified in alexander-torosh yona-cms up to 0.5.0. This issue affects the function loginAction of the file app/modules/Admin/Controller/IndexController.php of the component Admin Login Endpoint. This manipulation causes sql injection. It is possible to initiate the attack remotely.CVSS 4.8CVE-2026-138092 | A security flaw has been discovered in ggml-org llama.cpp up to 0.8.0. This vulnerability affects the function ggml_roll of the file ggml/src/ggml.c of the component Ggml Tensor Library Roll Operation. The manipulation results in integer overflow. The attack needs to be approached locally. Upgrading to version 0.9.0 is able to resolve this issue. The patch is identified as 0978a6e9022fb9bd6874b86154ee304e81929b9f. It is suggested to upgrade the affected compCVSS 10.0CVE-2026-138091 | A vulnerability was identified in Tenda AC10U 15.03.06.48. This affects the function TendaTelnet of the file /goform/telnet of the component Web UI. The manipulation leads to missing authentication. The attack is possible to be carried out remotely. The exploit is publicly available and might be used.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Put a Deterministic Gate Between Generated Code and Main

Generated code should enter a repository through the same narrow door as human code. That door is not “the agent said the task succeeded.” It is a det…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 5 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

Generated code should enter a repository through the same narrow door as human code.



That door is not “the agent said the task succeeded.” It is a deterministic sequence: inspect the patch, classify risky paths, run repository checks, require the right reviewer, and only then allow a merge.



This tutorial builds the first gate as a small POSIX shell script. It does not judge whether the implementation is correct. It rejects patches that are too large for the chosen review budget, touch sensitive paths without escalation, or contain whitespace and conflict-marker errors detected by Git.






Define what the gate owns



The gate answers three questions:




  1. Is the patch within a reviewable size budget?

  2. Does it touch a path that requires an explicit owner?

  3. Does the diff pass Git's structural checks?



It does not replace tests, type checks, security scanning, or human review. Keeping the scope small makes its result explainable.






Add the script



Save this as scripts/verify-patch.sh:




#!/bin/sh
set -eu

base_ref=${1:-HEAD^}
max_files=${MAX_FILES:-20}
max_lines=${MAX_LINES:-800}

files=$(git diff --name-only --diff-filter=ACMR "$base_ref"...HEAD)
file_count=$(printf '%s\n' "$files" | awk 'NF { count += 1 } END { print count + 0 }')
line_count=$(git diff --numstat "$base_ref"...HEAD | \
awk '{ added += $1; deleted += $2 } END { print added + deleted + 0 }')

if [ "$file_count" -gt "$max_files" ]; then
printf 'FAIL patch touches %s files (limit %s)\n' "$file_count" "$max_files" >&2
exit 1
fi

if
[ "$line_count" -gt "$max_lines" ]; then
printf 'FAIL patch changes %s lines (limit %s)\n' "$line_count" "$max_lines" >&2
exit 1
fi

if
printf '%s\n' "$files" | grep -Eq '(^|/)(\.env($|\.)|infra/|migrations/|CODEOWNERS$)'; then
printf 'FAIL sensitive path requires explicit review\n' >&2
printf '%s\n' "$files" >&2
exit 1
fi

git diff --check "$base_ref"...HEAD

printf 'PASS files=%s changed_lines=%s\n' "$file_count" "$line_count"






Make it executable:




chmod +x scripts/verify-patch.sh






Then compare the current branch with the target branch:




MAX_FILES=20 MAX_LINES=800 ./scripts/verify-patch.sh origin/main






The triple-dot diff means “changes on this branch since its merge base with the target.” That is usually the patch a pull request reviewer needs to inspect.






Test the gate in a disposable repository



The script should prove both acceptance and rejection. From an empty temporary directory:




git init
git config user.email test@example.com
git config user.name PatchGateTest
mkdir -p scripts src
cp /path/to/verify-patch.sh scripts/verify-patch.sh
printf 'export const answer = 41;\n' > src/value.js
git add . && git commit -m baseline

printf 'export const answer = 42;\n' > src/value.js
git add . && git commit -m safe-change
./scripts/verify-patch.sh HEAD^






Expected result:




PASS files=1 changed_lines=2






Now test a sensitive path:




mkdir -p infra
printf 'resource "example" {}\n' > infra/main.tf
git add . && git commit -m sensitive-change
./scripts/verify-patch.sh HEAD^






Expected result and exit status 1:




FAIL sensitive path requires explicit review
infra/main.tf






I ran these paths on macOS with Git 2.50.1 and the system POSIX shell. The safe patch passed; the infrastructure patch failed as intended.






Wire it into CI



For GitHub Actions, fetch enough history to identify the merge base and call the same repository script:




name: patch-policy
on: [pull_request]

jobs:
verify-patch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: ./scripts/verify-patch.sh "origin/${{ github.base_ref }}"






Pin third-party actions to a full commit SHA in a security-sensitive repository. The version tag above keeps the example readable but is a mutable reference.



After this patch-policy job, run the repository's normal formatter, type checker, tests, dependency review, secret scanning, and build. Use CODEOWNERS or an equivalent rule to route sensitive changes rather than merely blocking them forever.






Choose budgets from review behavior



The example limits are not universal safety numbers. Start with the distribution of recent pull-request sizes and the team's review capacity. A generated dependency lockfile may add thousands of legitimate lines; a one-line authorization change may be high risk.



Useful extensions include:




  • separate limits for generated and hand-maintained files;

  • deny binary additions unless explicitly approved;

  • require tests when application code changes;

  • require migration rollback notes when schema files change;

  • identify newly executable files or permission changes;

  • emit a machine-readable result for the pull-request UI.



The gate should tell the author what happened and how to escalate. A mysterious red check encourages bypasses.






Apply it to an AI development platform



The MonkeyCode repository describes AI tasks running in managed development environments. If a team uses MonkeyCode—or any coding agent—to create repository changes, this gate belongs in the target repository's CI. That keeps the merge policy independent from whichever model or task interface produced the patch.



This article does not test MonkeyCode's generated patches or claim that it lacks these controls. The verified artifact is the repository gate and its disposable Git test.




Disclosure: I contribute to the MonkeyCode project. The workflow connection is based on public product documentation; the patch-policy script is tool-independent.




Developers evaluating that workflow can join the MonkeyCode Discord. The team can discuss integration questions and current availability, eligibility, and limits for free model credits.



Generated code becomes ordinary code at the repository boundary. That is a feature: deterministic policy, project-owned tests, and accountable review remain useful even when the generator changes next month.

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:

💬 Topluluk tartışması ve yorumlar

🌐 Ana sohbete katıl

Tartışmayı başlat: Social Chat yayın akışı veya yukarıdaki ekleme formuyla uzman katkısı gönder.

Community Rating & Social Proof
⭐ Okuyucu Puanı
–
Ø / 5.0
Hiçbir okuyucu henüz yorum yok
Bu makale yararlı mıydı?
0
Değerlendirmenizi gönderin
Detaylı değerlendirme (isteğe bağlı)
İçerik ve Kalite
Kaynak ve Güvenilirlik
Güncellik
Security Briefing Ücretsiz · Tek tıkla abonelikten çıkma

Zeka Digest - ücretsiz

Günlük en önemli güvenlik haberi · herhangi bir zamanda alınabilir

İlgili Story Cluster & Kaynaklar (vector AI)

4 Cluster
3 Kaynaklar
GitHub Release: can1357/oh-my-pi v19.3.0 (29.11.2026)
GitHub · can1357/oh-my-pi 20 saat önce
2 diğer kaynaklar
2 Kaynaklar
Mozilla Thanks Users For New Features in Firefox 161: Site-Specific VPN and Keyboard Shortcuts
Slashdot 1 gün önce
1 başka bir kaynak
Benzer katkılar
🔍 Verwandte News

Auch interessante Nachrichten Put a Deterministic Gate Between Generated Code and Main

Thematisch verwandte Begriffe: Deterministic, Gate, Between, Generated · 6 Treffer

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Laden...

Contributions yüklenir ...

Laden...

Videolar yükleniyor...

Yorumlar yüklenir..
Update to Update
Widget & konular
Widget yükleniyor…
Sonraki gönderi