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

The Performance Illusion

Why Web Systems Collapse Under Real Load — and Why We Keep Believing the Benchmarks “In the lab, PHP served 12 million operations per second. In production, it …

Beitrag
0
Seite
0
↗ Quelle (dev.to)
CVE & Threat-Kontext · 6 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung




Why Web Systems Collapse Under Real Load — and Why We Keep Believing the Benchmarks




“In the lab, PHP served 12 million operations per second. In production, it barely reaches 500 requests per second.”




This is not an exaggeration. It is the difference between the controlled environment and the real world.



Every week, we are fed magical numbers: “Redis does 100,000 ops/sec”, “Node.js handles thousands of concurrent connections”, “Laravel is fast and secure.”



But when real users arrive, when network latency kicks in, when threads start fighting for resources — those numbers evaporate like a bad dream.



The question is not “which language is fastest?”


The real question is: “Why do we spend 90% of CPU time on preparation, and only 10% on execution?”







I. The Bootstrapping Tax





Rebuilding the house for every visitor



Imagine owning a house. Every time a visitor arrives, you demolish the entire building, reconstruct it from scratch, and then open the door. After they leave, you demolish it again.



This is exactly what modern frameworks do on every single request.





  • Laravel / Rails — loads 50+ Service Providers, builds a DI container, registers routes, initialises connections.


  • Spring Boot — loads context, scans annotations, builds beans, initialises data sources.


  • Django — loads apps, initialises middleware, builds the ORM, prepares templates.



The result: 70–90% of CPU time is spent on preparation, not on execution.




“Why do we design a system that consumes 90% of its resources on preparation and only 10% on execution?”








II. Threads — The Silent Killer





The thread that doesn’t work, but waits



If Bootstrapping is the wound, then Threads are what make that wound bleed to death.



Under load, threads are held hostage: they wait for I/O, they wait for locks, they wait for connection pools — they spend most of their life doing nothing.





  • Nginx/Apache — assigns a thread/process per request. Under high load, the thread pool exhausts, requests pile up.


  • PHP-FPM — fixed number of children. When requests arrive faster than children can process, they queue and then get refused.


  • Laravel Bootstrapping — happens inside the thread, preventing it from handling other requests.


  • Redis (Network I/O) — the thread blocks, waiting for Redis. Blocking I/O is the executioner.



The result: a slow, painful cascade of accumulation, contention, and collapse.





The deadly embrace: Threads + Connection Pools



Imagine: 10 Redis connections, 50 PHP-FPM children, and 100 concurrent requests.




  • 40 children grab the 10 connections and wait for Redis.

  • 10 children wait for a free connection (blocking).

  • New requests pile up in the queue.

  • The system enters a deadlock spiral.




“Threads are not bad. But we use them badly. We make them wait instead of work.”








III. Protocol Overhead





When protocols become the enemy of performance



HTTP was designed in the 1990s to serve HTML pages. Today we use it for JSON, WebSockets, streaming, and real-time data. Each layer we add, we pay for:





  • TCP Handshake — 1–3 ms (or more on slow networks)


  • TLS Handshake — 2–5 ms (HTTPS)


  • HTTP Headers — 0.5–2 ms


  • Request Parsing — 0.5–1 ms


  • Response Serialization — 1–3 ms





The Stateless trap



In the web, every request is a fresh start. No shared context between requests — even from the same user. This makes scaling easy, but performance abysmal.




“We re-introduce the user to the system 100 times per session, as if we’ve never met them before.”








IV. Why Current Solutions Fail





1. Serverless — shifting cost, not solving it



Serverless does not reduce bootstrapping. It hides it behind a “pay-per-use” curtain. And on cold starts, the nightmare returns — often worse, with added latency of several seconds.





2. Microservices — network hell



Instead of one codebase, you now have 20 services communicating over the network. Each request becomes a chain of network calls.




  • Auth service → network call

  • Users service → network call

  • Orders service → network call

  • Notifications service → network call



Result: total latency = sum of all network RTTs. Threads wait across services, multiplying the deadlock risk.





3. Persistent systems (RoadRunner, Swoole) — memory nightmares



They solve bootstrapping, but introduce memory management hell:




  • Memory leaks accumulate fatally.

  • Code reload needs careful orchestration.

  • State management across threads requires locks, increasing contention.




“Microservices are not a solution to performance. They are a transfer of the problem from one codebase to an entire network.”








V. The Performance Decay Graph



Before we look at the numbers, picture this:




        OPERATIONS PER SECOND
──────────────────────►
10M │ ████ (Raw Sockets)
│ ████
1M │ ███ (+PHP)
│ ███
100K │ ██ (+HTTP)
│ ██
10K │ █ (+PHP-FPM)
│ █
1K │ ░ (+Laravel Boot)
│ ░
500 │ ░ (+Redis/ORM)
└─────────────────────►
C1 C2 C3 C4 C5






Each step to the right is a new layer of “convenience”.


Each step upward is lost performance.



This is the graveyard of modern web engineering.






Latency per Layer (ms)








































Layer Latency (ms)
0. Raw Sockets (C) 0.0001
1. + PHP (Sockets) 0.1
2. + HTTP (Nginx) 1.0
3. + PHP-FPM 5.0
4. + Laravel Boot 20.0
5. + Redis (Network) 25.0
6. + Eloquent (ORM) 50.0





Thread Multiplication Factor (real vs theoretical)








































Layer Threads (real)
0. Raw Sockets (C) 1
1. + PHP (Sockets) 3
2. + HTTP (Nginx) 12
3. + PHP-FPM 48
4. + Laravel Boot 192
5. + Redis (Network) 384
6. + Eloquent (ORM) 768





Throughput Collapse (requests/sec)








































Layer Throughput (req/s)
0. Raw Sockets (C) 10,000,000
1. + PHP (Sockets) 200,000
2. + HTTP (Nginx) 50,000
3. + PHP-FPM 10,000
4. + Laravel Boot 2,000
5. + Redis (Network) 1,500
6. + Eloquent (ORM) 500


Interpretation: From 10 million ops/sec at the bare metal down to ~500 requests/sec with Laravel + ORM + Redis.


Each layer adds latency, consumes threads, and collapses throughput.









VI. Towards a New Engineering — Principles Only



All current solutions try to improve the existing stack. But the stack itself is the problem.






Core principles for a different path





  1. Minimise Bootstrapping — load code and resources once. Reuse context across requests.


  2. Eliminate Blocking I/O — prefer non-blocking I/O. Reduce network dependency for data access.


  3. Manage threads intelligently — reduce contention. Use atomic operations over locks.


  4. Data Locality — bring compute to data, not data to compute. Zero-copy where possible.


  5. Stateless for scale — but be aware of the trade-offs.




“The solution is not to make the language faster. It is to change how we access data. Not to improve tools, but to redesign the system.”










Conclusion: The Coming Battle




“If bootstrapping is the number one enemy of performance, why do we still rebuild the house for every visitor?”




We stand at a crossroads:





  • Path one: Keep buying more servers to compensate for bloated code.


  • Path two: Redesign the way we access data.



The coming battle is not between programming languages. It is between deliberate engineering and blind assembly.




“We buy servers with 32 cores and 64 GB RAM, yet we use them as if they were machines from the 1990s. Not because the CPU is slow, but because we make threads wait. We wait for bootstrapping. We wait for the network. We wait for connections. The thread does not work. It waits. And in the world of the web, waiting is death.”




Principles alone are not enough to build a system. But they are enough to change how you think.









About the author



Ez Eldeen A. Mushtaha deconstructs dogmatic models, cosmological dogmas, and messy code. He believes that real engineering begins when you stop believing marketed numbers and start measuring reality.






Originally published on Medium — all rights reserved.

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:

💬 Dyskusja społeczności i komentarze

🌐 Dołącz do głównego czatu

Rozpocznij dyskusję w strumieniu transmisji Social Chat lub prześlij wyżej wkład ekspercki przez formularz uzupełnień.

Cyber Threat Intelligence i Kryminalistyka

Navigator ATT&CK · Radar IoC i Graf

MITRE ATT&CK Matrix Navigator
1 belegte Technik
T1071TA0011 · Command and Control
Application Layer Protocol (C2)
Mitigation: M1031 Network Intrusion Prevention & Egress Filtering
Quelle: Kontext-Klassifikation des Artikeltextes · Konfidenz 80%
Wprowadzić filtrowanie egress, wznieść monitoring DNS, logi sieci wyszukiwania wzorców sygnalizacji C2.
Command and Control
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
4 Knoten · 3 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Community Rating & Social Proof
⭐ Ocena czytelników
–
Ø / 5.0
Brak recenzji czytelników
Czy ten artykuł był pomocny?
0
Dodaj swoją ocenę
Ocena szczegółowa (opcjonalnie)
Treść i jakość
Źródło i wiarygodność
Aktualność
Security Briefing Bezpłatnie · Wypisanie 1 kliknięciem

Intelligence Digest - bezpłatnie

Codziennie najważniejsze wiadomości bezpieczeństwa · można pobrać w każdej chwili

Powiązany klaster opowieści i źródła (wektor AI)

6 Cluster
22 źródeł
CVE-2026-72109 | Linux Kernel up to 7.1.4 sparx5 sparx5_register_notifier_blocks allocation of resources (WID-SEC-2026-2852)
VulDB Updates 1 godzinę temu
21 kolejnych źródeł
VulDB Updates1 godzinę temuCVE-2026-72110 | Linux Kernel up to 7.2-rc1 BPF bpf_local_storage_destroy use after free (WID-SEC-2026-2852) VulDB Updates1 godzinę temuCVE-2026-72111 | Linux Kernel up to 6.12.102/6.18.39/7.1.4 BPF Verifier check_mem_access memory corruption (Nessus ID 339550 / WID-SEC-2026-2852) VulDB Updates1 godzinę temuCVE-2026-72112 | Linux Kernel up to 7.1.4/7.2-rc3 BPF Ops io_uring io_install_bpf priv/ring_fd use after free (WID-SEC-2026-2852) VulDB Updates1 godzinę temuCVE-2026-72113 | Linux Kernel up to 7.2-rc3 bcm bcm.c bcm_release/bcm_delete_rx_op/bcm_notifier rx_reg_dev use after free (WID-SEC-2026-2852) VulDB Updates1 godzinę temuCVE-2026-72114 | Linux Kernel up to 7.2-rc3 bcm bcm_rx_setup len buffer overflow (WID-SEC-2026-2852) VulDB Updates1 godzinę temuCVE-2026-72115 | Linux Kernel up to 7.2-rc3 bcm bcm_rx_handler race condition (WID-SEC-2026-2852) VulDB Updates1 godzinę temuCVE-2026-72116 | Linux Kernel up to 7.2-rc3 bcm bcm_rx_setup race condition (WID-SEC-2026-2852) VulDB Updates1 godzinę temuCVE-2026-72117 | Linux Kernel up to 7.2-rc3 bcm bcm_rx_handler locking (WID-SEC-2026-2852) VulDB Updates1 godzinę temuCVE-2026-72118 | Linux Kernel up to 7.2-rc3 bcm bcm_rx_handler race condition (WID-SEC-2026-2852) VulDB Updates1 godzinę temuCVE-2026-72119 | Linux Kernel up to 7.2-rc3 bcm net/can/bcm.c bcm_tx_setup race condition (WID-SEC-2026-2852) DEV Community3 godziny temuKnuth's moratorium on error reports: what his page says, why repeats cost time, and what curl and the Linux kernel did VulDB Updates3 godziny temuCVE-2026-72099 | Linux Kernel up to 7.2-rc2 dm-integrity infinite loop (Nessus ID 364704 / WID-SEC-2026-2852) VulDB Updates3 godziny temuCVE-2026-72100 | Linux Kernel up to 6.12.96/6.18.39/7.1.4/7.2-rc2 dm-integrity deadlock (WID-SEC-2026-2852) VulDB Updates3 godziny temuCVE-2026-72101 | Linux Kernel up to 6.12.100/6.18.39/7.1.4/7.2-rc2 dm-integrity uninitialized pointer (WID-SEC-2026-2852) VulDB Updates3 godziny temuCVE-2026-72103 | Linux Kernel up to 6.12.100/6.18.41/7.1.4/7.2-rc2 dm-crypt crypt_set_keyring_key information disclosure (WID-SEC-2026-2852) VulDB Updates3 godziny temuCVE-2026-72102 | Linux Kernel up to 7.2-rc2 Device Mapper dm_early_create use after free (WID-SEC-2026-2852) VulDB Updates3 godziny temuCVE-2026-72104 | Linux Kernel up to 6.18.39/7.1.4/7.2-rc2 dm-pcache parse_cache_opts null pointer dereference (WID-SEC-2026-2852) VulDB Updates3 godziny temuCVE-2026-72105 | Linux Kernel up to 7.2-rc2 dm-log out-of-bounds write (WID-SEC-2026-2852) VulDB Updates3 godziny temuCVE-2026-72107 | Linux Kernel up to 7.2-rc2 dm era writeset_marked out-of-bounds (WID-SEC-2026-2852) VulDB Updates3 godziny temuCVE-2026-72106 | Linux Kernel up to 7.2-rc2 dm-ioctl list_version_get_info buffer overflow (Nessus ID 335743 / WID-SEC-2026-2852) VulDB Updates3 godziny temuCVE-2026-72108 | Linux Kernel up to 7.2-rc2 dm thin metadata __reserve_metadata_snap/__release_metadata_snap reference count (WID-SEC-2026-2852)
20 źródeł
'King-sized' Black Friday deal: Save 79% off Paramount+
Latest from TechRadar 32 minuty temu
19 kolejnych źródeł
Latest from TechRadar22 minuty temuBig features, tiny price tags: The 4 best-value VPN deals of Black Friday 2026 Latest from Windows Central1 godzinę temuThe best Xbox and PC Black Friday deals you need to know about without the fluff WIRED2 godziny temuHexClad Pans Black Friday Sale: Save Up to $70 (2026) WIRED2 godziny temuOura Ring 5 Is $100 Off This Black Friday and Cyber Week (2026) Latest from TechRadar3 godziny temuI tried 20+ Android TV VPNs this year and these are the ones I’d save on this Black Friday — VPNs for beginners, 4K streaming, and good savings CNET3 godziny temuI Love This Fender Speaker for Its Looks and Its Bass, and It’s Still $45 Off After Black Friday WIRED3 godziny temuAir Purifier Black Friday Sale: Levoit, Blueair (2026) Latest from TechRadar3 godziny temuBlack Friday MacBook deals 2026: even bigger savings on MacBook Neo, MacBook Pro M6, and the new PROLED MacBook Pros as Cyber Monday draws near WIRED3 godziny temuThe Best Black Friday MacBook Deals Take Up to $300 Off The Verge3 godziny temuA tech girlie’s Black Friday guide to fabulous nails WIRED3 godziny temuThe Best Black Friday Action Camera Deals (2026) Latest from Windows Central3 godziny temuBought a new PC or monitor on Black Friday? Don't plug it into a cheap power strip Latest from TechRadar3 godziny temuHere’s the best Black Friday MacBook Air deal available right now Latest from TechRadar4 godziny temuI've reviewed a whole host of docking stations — here are the 8 worth buying in the holiday deals now Black Friday is done Latest from TechRadar4 godziny temuFastestVPN vs PrivadoVPN vs Windscribe: which cheap VPN should you buy this Black Friday? Latest from TechRadar4 godziny temuWalmart's Black Friday event ends tomorrow — see the 20 best last chance deals on TVs, appliances, laptops, headphones, ahead of Cyber Monday WIRED4 godziny temuBest JBL Black Friday Deals (2026): Save on JBL Flip 7 and More The Verge4 godziny temuBirdbuddy’s latest smart feeders are still at their low Black Friday prices WIRED4 godziny temuBest Black Friday Meal Kit Deals: CookUnity, Green Chef, & More
Podobne wkłady
🔍 Verwandte News

Auch interessante Nachrichten The Performance Illusion

Thematisch verwandte Begriffe: Performance, Illusion · 6 Treffer

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Uwagi Komentarze są ładowane..
Rysunek do aktualizacji
Widgets & Topics
Loading widgets…
Nächster Beitrag