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

Build a Fax-to-JSON Pipeline in Python

Fax is still part of a lot of real business workflows. Healthcare, insurance, logistics, legal, finance, and back-office teams still receive forms, invoices,…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 3 Min. Lesezeit
Quelle: dev.to
Rubrik: Secure Programming

Fax is still part of a lot of real business workflows.



Healthcare, insurance, logistics, legal, finance, and back-office teams still receive forms, invoices, purchase orders, prescriptions, claims, and signed documents by fax. The problem is what happens after the fax arrives.



This Python example shows how to receive a Telnyx fax event and turn document text into structured JSON with Telnyx AI Inference:



https://github.com/team-telnyx/telnyx-code-examples/tree/main/fax-to-structured-data-pipeline-python






What We Are Building



The app is a small Flask API with these routes:




POST /webhooks/fax   # receive Telnyx fax events
POST /extract # extract structured data from document text
GET /faxes # list queued fax metadata
GET /extracted # list recent extraction results
GET /health # health check






The extraction route supports:




  • invoices

  • purchase orders

  • prescriptions

  • auto-detected document types



The AI call uses:




POST /v2/ai/chat/completions









Run It Locally






git clone https://github.com/team-telnyx/telnyx-code-examples.git
cd telnyx-code-examples/fax-to-structured-data-pipeline-python
cp .env.example .env
pip install -r requirements.txt
python app.py






Set these values in .env:




TELNYX_API_KEY=your_telnyx_api_key
TELNYX_PUBLIC_KEY=your_telnyx_public_key
AI_MODEL=moonshotai/Kimi-K2.6
HOST=127.0.0.1









Try the Extraction Endpoint



You do not need to send a live fax to test the extraction path. Send document text directly:




curl -X POST http://localhost:5000/extract \
-H "Content-Type: application/json" \
-d '{
"type": "invoice",
"text": "Invoice #INV-1042 from Acme Medical Supplies dated 2026-07-01. Due 2026-07-31. Bill to North Clinic. Item: Nitrile gloves, quantity 10, unit price 12.50, total 125.00. Item: Face masks, quantity 5, unit price 20.00, total 100.00. Subtotal 225.00. Tax 18.00. Total 243.00. Payment terms Net 30."
}'
| python3 -m json.tool






The app asks the model for invoice-shaped JSON:




{
"vendor": "Acme Medical Supplies",
"invoice_number": "INV-1042",
"date": "2026-07-01",
"due_date": "2026-07-31",
"line_items": [
{
"description": "Nitrile gloves",
"quantity": 10,
"unit_price": 12.5,
"total": 125
}
],
"subtotal": 225,
"tax": 18,
"total": 243,
"payment_terms": "Net 30"
}









Try Auto Detection



Use type: "auto" when you want the model to infer the document type:




curl -X POST http://localhost:5000/extract \
-H "Content-Type: application/json" \
-d '{
"type": "auto",
"text": "Purchase Order PO-7781. Vendor: Harbor Office Supply. Ship to: 500 Market St, San Francisco, CA. SKU CHAIR-22, ergonomic chair, quantity 12, unit price 199.00. Total 2388.00. Delivery requested 2026-07-20."
}'
| python3 -m json.tool









How the Fax Webhook Fits In



The live fax route is:




POST /webhooks/fax






The app verifies the Telnyx webhook signature before trusting the event. When it receives fax.received, it queues metadata like:




  • fax ID

  • sender

  • recipient

  • page count

  • media URL

  • status

  • timestamp



For local webhook testing, expose your app:




ngrok http 5000






Then set your Telnyx Fax Application webhook URL to:




https://<id>.ngrok.io/webhooks/fax









Production Notes



The demo keeps state in memory. For production, I would add:




  • media download from the fax media_url

  • OCR before extraction

  • persistent storage

  • schema validation per document type

  • retry handling

  • human review for regulated data

  • audit logs and retention policies

  • queue workers for high-volume intake



The example repo is also agent-readable. A coding agent can inspect the README, API reference, guide, environment file, and app code, then help you add OCR, storage, tests, queue workers, or stricter validation.






Resources



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 discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

Community Rating &amp; Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness
Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Related story clusters & sources (vector AI)

1 Cluster
2 sources
'King-sized' Black Friday deal: Save 79% off Paramount+
tsecurity.de 33 min. ago
1 more source
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten Build a Fax-to-JSON Pipeline in Python

Thematisch verwandte Begriffe: Build, FaxtoJSON, Pipeline, Python · 6 Treffer

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & Topics
Loading widgets…
Nächster Beitrag