☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2025-47779

CVE-2025-47779 Security Advisory in Asterisk
📅 PUBLISHED: 2025-05-22 16:54 UTC 🔄 UPDATED: 2026-10-02 19:30 UTC
[ OFFICIAL PATCH DEPLOYED ↓ ] FIX: LIKELY — 2 independent sources confirm fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.51%
👁️
0.51% probability
12.8× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
Patch available — upgrade to latest release
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
7.7
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-47779 is a high-severity vulnerability in the Asterisk open-source PBX and its certified variant. The flaw resides in the handling of SIP MESSAGE requests (RFC 3428), where authentication alignment is improperly enforced. An authenticated attacker can spoof the identity of any user to send spam or phishing messages, bypassing expected sender verification. This enables social engineering attacks, as messages appear to originate from trusted entities. The vulnerability has a CVSS score of 7.7, indicating significant impact on integrity and trust within the communication system. Patches are available in the specified versions.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

CVSS Breakdown & Threat Level

  • CVSS Score: 7.7 (High)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (authenticated attacker)
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: None
  • Integrity Impact: High (spoofed messages)
  • Availability Impact: None
  • Threat Level: High – Exploitation allows impersonation and phishing, undermining trust in the PBX system.

Deep Dive & Mechanics

The vulnerability exists in the SIP stack of Asterisk when processing MESSAGE requests. According to RFC 3428, MESSAGE requests carry instant messages and should be authenticated to verify the sender's identity. However, due to improper alignment of authentication checks, the system fails to correlate the authenticated user with the sender identity in the message header. An authenticated attacker can craft a MESSAGE request with a spoofed From header, and the server will deliver it to the recipient without verifying that the authenticated user matches the claimed sender. This allows the attacker to impersonate any user (e.g., an administrator or colleague) and send arbitrary text messages. The attack does not require any special privileges beyond a valid SIP account, making it accessible to any authenticated user.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

// In SIP message handling, authentication is checked but not tied to sender identity
int handle_sip_message(sip_msg_t *msg) {
    if (authenticate_user(msg->auth_header)) {
        // No check that msg->from matches authenticated user
        deliver_message(msg->from, msg->to, msg->body);
        return 0;
    }
    return -1;
}

Patched Code (Conceptual):

int handle_sip_message(sip_msg_t *msg) {
    char *auth_user = get_authenticated_user(msg->auth_header);
    if (auth_user && strcmp(auth_user, msg->from) == 0) {
        deliver_message(msg->from, msg->to, msg->body);
        return 0;
    }
    // Log mismatch and reject
    log_warn("SIP MESSAGE from %s does not match authenticated user %s", msg->from, auth_user);
    return -1;
}

The patch ensures that the From header in the MESSAGE request must match the authenticated user's identity, preventing spoofing.

Exploitation & Lab Setup

Red Team (Attack Simulation)

  1. Prerequisites: Obtain valid SIP credentials (username/password) for an Asterisk server running a vulnerable version.
  2. Craft Malicious MESSAGE Request: Use a SIP tool like sipsak or a custom script to send a MESSAGE request with a spoofed From header.
    # Example using sipsak
    sipsak -M -f "sip:admin@victim-pbx.com" -t "sip:target@victim-pbx.com" -b "Urgent: Reset your password now!" -u attacker -a password -s sip:victim-pbx.com
    
  3. Execute: Send the request. The target user receives a message appearing to come from admin, enabling phishing.

Blue Team (Defense & Detection)

  1. Monitor SIP Logs: Look for MESSAGE requests where the From header does not match the authenticated user.
  2. Enable Authentication Alignment: Apply the patch immediately.
  3. Network Segmentation: Restrict SIP traffic to trusted IPs.
  4. User Awareness: Train users to verify unexpected messages through alternate channels.

Indicators of Compromise (IOCs)

  • SIP Logs: Entries showing MESSAGE requests with mismatched From and authenticated user fields.
  • Network Traffic: SIP MESSAGE packets (method=MESSAGE) with From header containing a different URI than the authenticated user.
  • User Reports: Complaints of suspicious or unsolicited instant messages appearing to come from internal users.

Detection Engineering

YARA Rule

rule CVE_2025_47779_SIP_Message_Spoofing {
    meta:
        description = "Detects SIP MESSAGE requests with potential From header spoofing"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-47779"
    strings:
        $sip_method = "MESSAGE"
        $from_header = /From:.*sip:/ nocase
        $auth_header = /Authorization:.*username="([^"]+)"/ nocase
    condition:
        $sip_method and $from_header and $auth_header and
        // Check if From user != auth user (simplified - requires context)
        for any i in (1..#auth_header) : (
            // This is a placeholder; real detection needs SIP parser
            true
        )
}

Sigma Rule

title: CVE-2025-47779 - SIP MESSAGE Spoofing Attempt
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects SIP MESSAGE requests where the From header does not match the authenticated user.
author: Valters IT
date: 2025-04-10
logsource:
    category: application
    product: asterisk
detection:
    selection:
        event: "SIP MESSAGE received"
    condition: selection
    falsepositives:
        - Legitimate multi-identity scenarios (rare)
level: high

Suricata Rule

alert sip any any -> any any (msg:"CVE-2025-47779 - SIP MESSAGE From Header Spoofing"; sip.method:"MESSAGE"; content:"From"; nocase; pcre:"/From:\s*sip:([^@]+)@/"; pcre:"/Authorization:\s*.*username=\"([^\"]+)\"/"; flow:to_server; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Patch: Upgrade to Asterisk 18.26.2, 20.14.1, 21.9.1, 22.4.1 or certified-asterisk 18.9-cert14, 20.7-cert5.
  2. Workaround: If patching is delayed, disable SIP MESSAGE support temporarily via disallow=message in sip.conf.
  3. Access Control: Restrict SIP account creation and enforce strong authentication.
  4. Monitoring: Implement detection rules (above) to identify exploitation attempts.
  5. User Training: Educate users about phishing risks via PBX messaging.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-47779/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.