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

From Code to Output: What Really Happens When You Run Python?

"Python is an interpreted language." You've probably heard this phrase countless times while learning Python. But let’s pause for a second… What actually hap…

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

"Python is an interpreted language."




You've probably heard this phrase countless times while learning Python.



But let’s pause for a second…



What actually happens after you hit Run?



When you execute something as simple as:




print("Hello, World!")






How does your computer, built to understand only binary (0s and 1s), figure out what print() means?



The truth is, there’s a lot happening behind the scenes.



Let’s break it down in a simple and intuitive way.









The Hidden Workflow of Python



Here’s a simplified overview of what happens:




Python Source Code (.py)
│
▼
Compilation Step
│
▼
Bytecode (.pyc)
│
▼
Python Virtual Machine (PVM)
│
▼
Machine Instructions
│
▼
CPU Execution
│
▼
Program Output






Many beginners assume Python directly runs their code.



But in reality, Python follows a two-step process before execution.









Step 1, Writing Python Code



Let’s begin with a basic script:




# hello.py

print("Hello, World!")






At this stage, your file is just plain text.



Your computer doesn’t understand:




  • Functions like print()

  • Control structures like if, for, while

  • Variables or expressions



It only understands low-level machine instructions.



So Python needs to translate your code first.









Step 2, The Python Interpreter Steps In



When you run:




python hello.py






you’re invoking the Python Interpreter.



The most widely used implementation is CPython, written in C.



Its responsibilities include:




  • Reading your code

  • Checking for syntax errors

  • Converting it into bytecode

  • Executing that bytecode



So Python doesn’t directly interpret your source code, it first compiles it into an intermediate form.









Step 3, Bytecode: Python’s Internal Language



Instead of converting your code straight into machine instructions, Python transforms it into bytecode.



Think of bytecode as a simplified, platform-independent instruction set.



For example:




x = 5
y = 10

print(x + y)






might internally look like:




LOAD_CONST 5
STORE_NAME x

LOAD_CONST 10
STORE_NAME y

LOAD_NAME x
LOAD_NAME y

BINARY_ADD

PRINT






You don’t need to memorize this, it just shows how Python simplifies your code before execution.









What Are .pyc Files?



You might have seen a folder like this:




__pycache__






Inside it, files like:




hello.cpython-313.pyc






These .pyc files store compiled bytecode.



Python uses them to avoid recompiling unchanged files, making your programs start faster.









Curious? Inspect Bytecode Yourself



Python provides a module called dis to view bytecode.



Try this:




import dis

def add(a, b):
return a + b

dis.dis(add)






Example output:




LOAD_FAST 0 (a)
LOAD_FAST 1 (b)
BINARY_ADD
RETURN_VALUE






This is exactly what Python executes internally.









Step 4, The Python Virtual Machine (PVM)



Now comes execution.



The Python Virtual Machine (PVM) is the engine that runs bytecode.



It’s not hardware, it’s part of the interpreter.



It works in a loop:




Fetch → Decode → Execute







  • Fetch the next instruction

  • Decode what it means

  • Execute it



This cycle continues until your program finishes.









Walking Through Execution



Let’s revisit:




print("Hello, World!")






Here’s what happens step by step:






1. You run the script






python hello.py






↓






2. Python reads your code



↓






3. It compiles it into bytecode



↓






4. The PVM executes instructions like:






LOAD_CONST "Hello, World!"
CALL_FUNCTION print
RETURN_VALUE






↓






5. Output appears






Hello, World!






Done!









Why Isn’t Python as Fast as C?



Let’s compare:






C Execution






C Code → Compiler → Machine Code → CPU









Python Execution






Python Code → Bytecode → PVM → CPU






Python adds an extra layer (the PVM), which introduces overhead.



That’s why Python is generally slower for heavy computations.



But this design also makes Python:




  • Portable

  • Easy to use

  • Flexible









Memory Management in Python



Python handles memory automatically.



It stores objects in a region called the heap.



When objects are no longer needed, Python cleans them up using:




  • Reference counting

  • Garbage collection



This means you don’t have to manually manage memory like in C or C++.









A Simple Way to Think About It



Imagine you're speaking to someone who doesn’t understand your language.



You use a translator:




You → Translator → Listener






In Python terms:





  • You → Programmer


  • Python Code → Your language


  • PVM → Translator


  • CPU → Listener



The CPU never understands Python directly, the PVM bridges that gap.









Final Thoughts



Once you understand what happens behind the scenes, Python feels less like magic and more like a well-designed system.



So next time someone says:




"Python is an interpreted language."




You’ll know the full story.



Python first compiles your code into bytecode, then executes it using the Python Virtual Machine.



And that journey, from a simple .py file to actual output, is what makes Python both powerful and accessible.






Thanks for reading!



I’m sharing my learning journey in Python, backend development, and software engineering. If you found this helpful, feel free to follow along for more simple explanations of complex topics.

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-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar & Graph

CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität
Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Verwandte Story-Cluster & Quellen (Vektor-KI)

2 Cluster
2 Quellen
Barclays’ US banking arm confirms data breach
IT Security News vor 5 Std.
1 weitere Quelle
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten From Code to Output: What Really Happens When You Run Python?

Thematisch verwandte Begriffe: From, Code, Output, What · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag