Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-137684 | A security flaw has been discovered in eosphoros-ai DB-GPT up to 0.8.3. This affects the function editor_sql_run of the file packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/editor/api_editor_v1.py of the component Editor SQL Run API. Performing a manipulation of the argument db_name results in authorization bypass. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks. The pull request to fixCVSS 8.7CVE-2026-137992 | libexpat through 2.11.0 contains a denial of service vulnerability in defineAttribute() of lib/xmlparse.c that fails to detect duplicate non-ID #IMPLIED or #REQUIRED attribute declarations. Attackers can supply a crafted XML document with repeated ATTLIST declarations in an internal DTD subset to cause quadratic CPU consumption in storeAtts() during parsing.CVSS 8.5CVE-2026-137994 | Leo through 6.8.10 contains an insecure deserialization vulnerability that allows attackers to execute code by embedding pickled data in unknown XML attributes of .leo outlines. Attackers can place a pickle __reduce__ gadget in a or element attribute that resolveUa passes to pickle.loads, executing code with user privileges when the outline is opened.CVSS 7.0CVE-2026-137995 | FOG Project before 1.6.0.119 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain host tokens from status/hostgetkey.php by supplying a host MAC address. Attackers can present the token to service/hostinfo.php to retrieve decrypted Active Directory join credentials and Windows product keys during deployment windows.CVSS 6.8CVE-2026-137996 | Zettlr before 4.11.0 fails to validate URI schemes in Markdown link targets, allowing attackers to launch arbitrary registered protocol handlers via Electron shell.openExternal without confirmation. Attackers can craft documents whose Ctrl/Cmd-clicked links use smb:// to leak NTLM credential hashes on Windows or invoke custom protocol handlers with attacker-controlled parameters.CVSS 8.5CVE-2026-137997 | HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py selects pickle by file extension and calls pickle.load, a __reduce__ gadget in a pupil, apodizer, PSF or mode-basis file runs code with the user's privileges.CVSS 8.5CVE-2026-137998 | Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file loaded via torch.load with weights_only=False to run code with the user's privileges.CVSS 8.5CVE-2026-137999 | JSONSchema2PoPo2 through 3.0.3 contains a code injection vulnerability that allows attackers to inject Python code by supplying JSON Schema default or format values that are written unescaped. Attackers can place a single quote in a string property default to break out of the literal in the generated __init__ signature, executing injected code when the generated module is imported.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Fix: Load Memory Sidecar Modules from Runtime Scripts

The hermes-memory-installer is a targeted utility for managing memory sidecars—plugin modules that extend memory management in distributed systems, often used w…

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

The hermes-memory-installer is a targeted utility for managing memory sidecars—plugin modules that extend memory management in distributed systems, often used within ReactiveUI or event-driven architectures. A recent patch, tagged with the commit message "fix: load memory sidecar modules from runtime scripts," addresses a subtle but critical loading issue. Here’s what changed, why it matters, and how it affects your deployment pipeline.






The Problem: Static Dependency Resolution



Prior to this fix, the installer resolved sidecar modules during its own initialization stage. The typical flow involved a configuration file ( JSON or YAML ) that listed module paths or URLs. The installer would then read this file at startup and attempt to load each module before any runtime scripts executed.




# previous_approach.py
from hermes_memory_installer import process_config

config = process_config('sidecars.json')
for module in config['modules']:
install_module(module['source'])






This approach created a brittle dependency chain. If the configuration file went missing, changed paths, or referenced modules that required runtime environment variables, the installer would fail early, blocking the entire process. Containerized environments, where filesystem layout varies between builds, were particularly prone to these failures. Additionally, any module update necessitated a configuration change and a full restart, which is counterproductive for ephemeral workloads.






The Fix: Deferred, Script-Driven Loading



The update shifts the responsibility of loading sidecar modules from the installer’s init phase to the runtime scripts themselves. Instead of pre-loading modules, the installer now exposes a simple API that scripts can call at any point during execution. This defers module resolution until the script is ready to use it, allowing for dynamic source selection, custom error handling, and environment-aware logic.




# runtime_install.py
from hermes_memory_installer import load_sidecar

def get_module_source():
if os.getenv('DEPLOY_ENV') == 'prod':
return 'https://cdn.hermes.io/modules/cache-sync-v2.1.0.sidecar'
return './local/cache-sync-dev.sidecar'

load_sidecar(get_module_source(), config={'pool_size': '512MB'})









Code Example: Before vs. After



The practical difference is evident in deployment scripts. Consider the old behavior that relied on a static configuration:




# old_deploy.py — depends on config file
from hermes_memory_installer import init_sidecars
init_sidecars() # reads sidecars.json, fails if config is absent






With the fix, the same deployment is written as a runtime script:




# new_deploy.py — loads sidecar on demand
from hermes_memory_installer import load_sidecar
import json

with open('/etc/hermes/sidecar_sources.json') as f:
sources = json.load(f)

for source in sources['sidecars']:
load_sidecar(source) # fails gracefully per module






This pattern gives the developer control over loading order, error recovery, and logging.






Why Runtime Scripts Fix the Architecture



Deferring to runtime scripts aligns with the principle of delayed binding in distributed systems. The key technical implications are:





  • Environment Awareness: Scripts can inspect environment variables, detect cloud metadata, or query service discovery before deciding what to load.


  • Granular Failure Handling: A failed sidecar load no longer kills the entire process. The script can catch exceptions, log, and fall back to a default module.


  • Simplified Testing: Unit tests can mock load_sidecar directly, rather than mocking file system and configuration parsing logic.



The fix also removes the need for the installer to maintain a global module registry at startup. Modules are loaded exactly when they are required, reducing memory footprint and initialization latency.






Practical Outcomes



For experienced developers, this update eliminates a class of runtime errors. Previously, a typo in a configuration path would crash the installer during the early bootstrap phase—often before logging was initialized. Now, the error surfaces in the context of the calling script, making it easier to diagnose. Additionally, rolling updates become simpler: a sidecar version can be changed in the script without editing a separate configuration and restarting the installer daemon.






Conclusion



The "fix: load memory sidecar modules from runtime scripts" patch is precisely the kind of incremental change that sharpens a tool for production use. It trades immutable initialization for script-driven flexibility, reducing coupling between the installer and the modules it manages. If you rely on hermes-memory-installer for sidecar deployment, this fix is not optional—it resolves a fundamental design limitation and should be adopted immediately. Update your runtime scripts accordingly and remove any pre-loading configuration files that are no longer needed.

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:

💬 Communitydiscussie & reacties

🌐 Naar de hoofdchat

Start de discussie in de Social Chat broadcaststream of dien hierboven een vakbijdrage in via het aanvulformulier.

Community Rating & Social Proof
⭐ Lezersbeoordeling
–
Ø / 5.0
Nog geen recensies van lezers
Was dit artikel nuttig?
0
Geef uw beoordeling
Detailbeoordeling (optioneel)
Inhoud & Kwaliteit
Bron & Geloofwaardigheid
Actualiteit
Security Briefing Gratis · 1-klik uitschrijven

Intelligence Digest gratis

Dagelijks het belangrijkste beveiligingsnieuws · kan op elk moment worden opgehaald

Verwant Story Cluster & Sources (vector AI)

2 Cluster
2 Bronnen
OpenAI counter-sues Apple over trade secret theft
AppleInsider News 1 uur geleden
1 een andere bron
Soortgelijke bijdragen
🔍 Verwandte News

Auch interessante Nachrichten Fix: Load Memory Sidecar Modules from Runtime Scripts

Thematisch verwandte Begriffe: Load, Memory, Sidecar, Modules · 6 Treffer

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

💬 Reacties worden geladen…
Trek om te vernieuwen
Widgets & Topics
Loading widgets…
Nächster Beitrag