Zum Hauptinhalt springen
LIVE
CVSS 7.4CVE-2026-138376 | AsyncSSH 1.13.1 before 2.24.2 contains an improper authentication vulnerability in SSHConnection._match_known_hosts that accumulates trusted client host keys across host-based authentication attempts on one connection. With trust_client_host enabled, attackers holding one known client host's private key can retry naming another known host and log in as users authorized only from that host.CVSS 7.6CVE-2026-138377 | AsyncSSH 1.13.1 before 2.24.2 contains an improper certificate validation vulnerability that allows remote clients to authenticate as users by abusing X.509 certificates matched in known_client_hosts. Attackers can make a failed host-based authentication attempt with any host key, adding host-only CA certificates to the trust anchors, then authenticate using user certificates issued under those CAs.CVSS 9.1CVE-2026-138378 | react-native-pure-jwt before 3.1.1 on Android contains a signature verification bypass vulnerability that allows unauthenticated attackers to forge tokens because RNPureJwtModule decode() calls JJWT parse() without algorithm pinning. Attackers can craft a token with header alg none and an empty signature to have arbitrary claims accepted as verified, forging identities or roles.CVSS 6.9CVE-2026-138379 | flare-redact before 1.13.1 contains a redaction bypass vulnerability that leaks secrets because the redact() object walker masks sensitive keys only when values are strings. Numbers, objects, arrays and binary data under keys such as password, cvv, pin, cookie or authorization pass through unchanged, exposing secrets in clear text to logger, Sentry, gateway and Fluent Bit sinks.CVSS 6.9CVE-2026-138380 | MediaInfoLib before 26.10 contains a heap-based buffer over-read vulnerability in File_Ogg::Data_Parse() that allows attackers to read beyond heap buffers via crafted Ogg segment sizes. Attackers can supply an Ogg file whose segment sizes exceed the page payload, wrapping the unsigned offset check and causing memcpy over-reads that crash the process or leak heap memory.CVSS 6.9CVE-2026-138381 | GNU LibreDWG 0.14 before 0.15 contains a heap use-after-free vulnerability in in_dxf.c new_object() where the OLE2FRAME oleclient pointer references freed memory after DXF import. Attackers can supply a DXF file with an OLE2FRAME entity to crash dxfwrite or similar applications and leak freed heap contents into exported output.CVSS 10.0CVE-2026-138227 | A vulnerability was found in D-Link R95 1.04B04Beta. This affects the function SetTimeSettings of the file /bin/ssi of the component DHMAPI. Performing a manipulation of the argument TZLocation results in os command injection. Remote exploitation of the attack is possible. The exploit has been made public and could be used.CVSS 10.0CVE-2026-138226 | A vulnerability has been found in D-Link R95 1.04B04Beta. Affected by this issue is the function SetSecureDNSSettings of the file /bin/ssi of the component DHMAPI SOAP interface. Such manipulation of the argument URI leads to os command injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Airflow Implicit Xcom vs Explicit Xcom

What is Airflow? Apache Airflow is an open-source orchestration tool used by data engineers for developing, scheduling, and monitoring batch-oriented…

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




What is Airflow?



Apache Airflow is an open-source orchestration tool used by data engineers for developing, scheduling, and monitoring batch-oriented workflows.






How it Works





  • Workflow as code: Airflow workflows are defined entirely in Python, resulting in what is commonly referred to as "Workflow as code".


  • DAGs: Directed Acyclic Graphs in Airflow are used to organise tasks in a specific order with clear dependencies, without looping back on themselves.


  • Automation: Airflow handles scheduling, automated retries if a task fails, and sends alerts if a pipeline breaks.


  • Web UI: It features a web-based UI to visualize, manage, and debug workflows.




from datetime import datetime, timedelta
from airflow import DAG
from airflow.operators.python import PythonOperator

def print_hello():
print("hello")

with DAG(
"simple_hello",
start_date=datetime(2026, 6, 17),
schedule=timedelta(minutes=5),
catchup=False,
) as dag:
hello_task = PythonOperator(
task_id="print_hello",
python_callable=print_hello,
)

hello_task









How Airflow is used with Python for Data Engineering



Airflow is the standard tool for data engineers for batch-oriented workflows. Ideal when you need tasks to run on a specific schedule, rely on the successful completion of previous tasks and require robust handling.



Airflow can be integrated with Databases like Snowflake, MySQL, and Postgres, Cloud providers like AWS and Google Cloud for more complex workflows.



For a workflow to execute as intended through various tasks and for tasks that depend on data from previous tasks, data has to be handled correctly by Airflow to avoid breaking the pipeline.






How data moves between tasks



Airflow gives you several ways to pass data between tasks. Picking the right one matters, the wrong choice will slow you down.






1. XCom (cross-communication)



XCom is Airflow's built-in way for tasks to talk to each other. By default, it stores data directly in Airflow's metadata database, which makes it fast to set up but a poor fit for anything large. Think status flags and file paths, not dataframes.



Implicit XCom. When a task's Python callable returns a value, Airflow automatically stores it under the return_value key, no extra code needed.




def extract():
return {"price": 300, "city": "Mombasa"}






Any downstream task can pull that value with xcom_pull(task_ids="extract").



Explicit XCom. Sometimes one return value isn't enough, or you want a custom key instead of return_value. That's what ti.xcom_push() and ti.xcom_pull() are for:




def extract(**context):
context["ti"].xcom_push(key="raw_price", value=3.42)

def transform(**context):
price = context["ti"].xcom_pull(key="raw_price", task_ids="extract")






TaskFlow API. The modern way to write Airflow DAGs. Decorate your functions with @task, and Airflow wires up the XCom push and pull for you based on function arguments and return values:




from airflow.decorators import task

@task
def extract():
return {"price": 3.42}

@task
def transform(data):
return data["price"] * 1.1

transform(extract())






No manual xcom_push or xcom_pull calls. It reads like normal Python, and it's the approach most new DAGs should start with.



One catch that isn't obvious at first: XCom data has to be JSON-serializable. Return a pandas DataFrame straight from a task and it'll fail silently or throw an unhelpful error. Convert it to df.to_dict("records") first, and if you're passing bytes, decode them to a string before pushing.






2. External object storage



For anything too big for the metadata database, don't push the data itself through XCom, push a pointer to it. One task uploads a file to S3 or GCS and returns the URI; the next task downloads it from that URI. The same pattern works with a shared NFS mount or a Kubernetes persistent volume if everything's running on the same cluster. XCom just carries the address, not the payload.






3. Database state changes



Sometimes the cleanest handoff isn't through Airflow at all, it's through the database. Task A runs SQL that creates a temporary table; task B runs SQL that reads from it. Or task A updates rows in an operational table, and task B picks up the new state on its next read. Airflow's job here is purely orchestration, it triggers the SQL, but the transformation happens entirely inside the warehouse.






4. Airflow global storage



Not every piece of shared data belongs to a single task run. Airflow Variables are key-value pairs stored in the metadata database and readable by any task in any DAG, useful for config values that don't change often. Connections and Hooks work the same way for credentials, defined once in the UI or an environment variable, then injected into tasks at runtime instead of hardcoded in your scripts.






5. Custom XCom backends



If you outgrow the default metadata-database backend but still want XCom's syntax, you can configure a custom backend that intercepts XCom writes and redirects them to S3, GCS, or wherever you'd rather store them. Your DAG code stays the same, xcom_push and xcom_pull work exactly as before, only the storage location changes underneath.






6. SubDAGs and TriggerDagRunOperator



For splitting work across DAGs rather than within one, SubDAGs let you nest a DAG inside a task of a parent DAG, though they've fallen out of favor because they tend to create scheduler bottlenecks. TriggerDagRunOperator is the more common approach now: a task in one DAG triggers a run of a completely separate DAG, optionally passing a config dict along with it. It's a cleaner way to decouple pipelines that still need to hand off to each other.






Most XCom bugs aren't about Airflow being complicated, they're about a wrong assumption slipping through quietly. A typo in task_ids. A DataFrame that isn't JSON-serializable. An os.getenv("USER") call that collides with your actual OS environment variable instead of the value you meant to set. None of these throw a loud error. They just make a downstream task pull None and fail somewhere that looks unrelated to the real cause.

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.

Cyber Threat Intelligence & Forensiek

ATT&CK-Navigator · IoC-Radar & Graaf

CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
3 Knoten · 2 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
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)

6 Cluster
25 Bronnen
CVE-2026-135550 | Mozilla Firefox Web Codecs memory corruption (Nessus ID 388625)
VulDB Updates 1 uur geleden
24 andere bronnen
VulDB Updates1 uur geledenCVE-2026-135551 | Mozilla Firefox up to 153.7/160 Layout use after free (Nessus ID 388625) VulDB Updates1 uur geledenCVE-2026-135552 | Mozilla Firefox up to 115.45/153.7/160 Canvas2D use after free (Nessus ID 388625) VulDB Updates1 uur geledenCVE-2026-135554 | Mozilla Firefox up to 115.45/153.7/160 Navigation use after free (Nessus ID 388625) VulDB Updates1 uur geledenCVE-2026-135556 | Mozilla Firefox up to 115.45/153.7/160 JIT memory corruption (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135540 | Mozilla Firefox up to 115.45/153.7/160 JIT memory corruption (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135539 | Mozilla Firefox up to 115.45/153.7/160 CSS Object Model use after free (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135542 | Mozilla Firefox up to 115.45/153.7/160 Layout buffer overflow (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135541 | Mozilla Firefox up to 115.45/153.7/160 XSLT use after free (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135544 | Mozilla Firefox up to 115.45/153.7/160 Navigation memory corruption (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135545 | Mozilla Firefox up to 153.7/160 Editor memory corruption (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135543 | Mozilla Firefox up to 115.45/153.7/160 Networking memory corruption (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135547 | Mozilla Firefox up to 115.45/153.7/160 Networking sandbox (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135549 | Mozilla Firefox up to 115.45/153.7/160 XSLT use after free (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135548 | Mozilla Firefox up to 115.45/153.7/160 Layout use after free (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135533 | Mozilla Firefox up to 115.45/153.7/160 Layout Tables off-by-one (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135536 | Mozilla Firefox up to 115.45/153.7/160 DOM Editor uninitialized pointer (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135535 | Mozilla Firefox up to 115.45/153.7/160 Skia input validation (Nessus ID 388625) VulDB Updates4 uur geledenCVE-2026-135537 | Mozilla Firefox up to 115.45/153.7/160 Layout Text/Fonts out-of-bounds (Nessus ID 388625) VulDB Updates5 uur geledenCVE-2026-135525 | Mozilla Firefox up to 115.45/153.7/160 WebRender use after free (Nessus ID 388625) VulDB Updates5 uur geledenCVE-2026-135526 | Mozilla Firefox up to 115.45/153.7/160 Networking use after free (Nessus ID 388625) VulDB Updates5 uur geledenCVE-2026-135527 | Mozilla Firefox up to 115.45/153.7/160 DOM/HTML use after free (Nessus ID 388625) VulDB Updates5 uur geledenCVE-2026-135528 | Mozilla Firefox up to 153.7/160 HTTP race condition (Nessus ID 388625) VulDB Updates5 uur geledenCVE-2026-135530 | Mozilla Firefox up to 115.45/153.7/160 HTTP sandbox (Nessus ID 388625) VulDB Updates5 uur geledenCVE-2026-135529 | Mozilla Firefox up to 153.7/160 Text sandbox (Nessus ID 388625)
17 Bronnen
Apple Cyber Monday Deals (2026): AirPods, iPads, MacBooks, and More
WIRED 22 min. geleden
16 andere bronnen
The Mac Observer30 min. geledenAqara W200 thermostat is $119.99 for Cyber Monday, $40 off and Apple Home ready Latest from TechRadar48 min. geledenCyber Monday mini PC deals 2026 live — top tiny desktops from GMKtec, Geekom, Minisforum, and more as the Black Friday sale continues The Mac Observer55 min. geledenSonos Beam Gen 2 is $339 for Cyber Monday, $160 off and $359 under two HomePods The Mac Observer1 uur geledenMagic Mouse in black drops to $79.99 for Cyber Monday, $19 under Apple’s $99 The Mac Observer1 uur geledenGarmin fenix 8 47mm drops $250 to $749.99 for Cyber Monday, $49 under Ultra 4 Latest from TechRadar2 uur geledenI've been waiting for a better deal on the Philips LatteGo 4400 — and Amazon has delivered a record-low price for Cyber Monday Latest from TechRadar2 uur geledenLooking to get a last-minute gaming gift before Cyber Monday is over? WIRED3 uur geledenLast Call for Black Friday iPad Deals (2026): Save Up to $100 Latest from Windows Central3 uur geledenWhy I bought a handheld over a gaming laptop on Cyber Monday Latest from TechRadar3 uur geledenI found the most capable PC under $300 for Cyber Monday — Origimagic's C7 Windows 11 Pro machine packs dual Thunderbolt 4, 2.5Gb LAN, a Core 3 100U, 16GB of RAM, and a 512GB SSD OS X Daily3 uur geledenCyber Monday Deals: $300 Off 16″ PROLED MacBook Pro, $100 Off AirPods Pro 3, $100 Off iPad Air, & More Latest from TechRadar4 uur geledenCyber Monday home office deals 2026 live — our top workspace picks from FlexiSpot, Dell, Anker, Logitech and more as Black Friday sale rolls on Latest from TechRadar4 uur geledenThe best Cyber Monday deals in the UK in 2026: top picks from Amazon, Argos, Ninja, Lego and more Latest from TechRadar4 uur geledenBlack Friday laptop deals 2026: the huge savings on MacBooks, Chromebooks and Windows 11 laptops still available from Apple, Dell, HP and many more Latest from TechRadar4 uur geledenCyber Monday Australia laptop deals for 2026: score up to 52% off Lenovo, Apple, Dell, HP and more Latest from TechRadar4 uur geledenAmazon Australia Cyber Monday deals
12 Bronnen
CVE-2026-116159 | ImageMagick up to 6.9.13-57/7.1.2-32 CDL Option memory leak (Nessus ID 388637)
VulDB Updates 1 uur geleden
11 andere bronnen
Soortgelijke bijdragen
🔍 Verwandte News

Auch interessante Nachrichten Airflow Implicit Xcom vs Explicit Xcom

Thematisch verwandte Begriffe: Airflow, Implicit, Xcom, Explicit · 6 Treffer

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 & onderwerpen
Widgets laden…
Volgende bericht