CVE-2024-24784: golang/stdlib: Incorrect handling of comments in display names
Summary
CVE-2024-24784: The ParseAddressList function incorrectly handles comments (text within parentheses) within display names. Affects golang-1.15 versions 1.15.15-1 – 1.15.9-6. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The stdlib package in Go is a collection of standard libraries that provide fundamental functionality for Go programs. It includes various modules for networking, file handling, cryptography, and more. The net/mail module within stdlib is responsible for parsing and manipulating email addresses. However, a vulnerability has been discovered in the ParseAddressList function of the net/mail module, which incorrectly handles comments within display names.
Vulnerability Detail
The ParseAddressList function in the net/mail module of the stdlib package in Go incorrectly handles comments (text within parentheses) within display names. This deviation from conforming address parsers can lead to different trust decisions being made by programs using different parsers. Attackers can exploit this vulnerability to manipulate email addresses and potentially deceive email clients or servers. The impact of this vulnerability can vary depending on the specific implementation and usage of the affected code.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to apply the provided fix by updating to the patched version of the stdlib package.
Conclusion
The vulnerability in the net/mail module of the stdlib package in Go can lead to incorrect handling of comments within display names. This can result in different trust decisions being made by programs using different parsers. To mitigate this vulnerability, it is crucial to update to the fixed versions of the stdlib package (1.21.8 or 1.22.1). For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for golang-1.15 →
FAQ
The impact of this vulnerability can vary depending on the specific implementation and usage of the affected code. It could potentially allow attackers to manipulate email addresses and deceive email clients or servers.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in software.
Yes, the CVSS score for this vulnerability is 5.4. CVSS (Common Vulnerability Scoring System) is a standardized method for assessing the severity of vulnerabilities.
There are no known public exploits for this vulnerability at the time of this report. However, it is crucial to apply the provided fix to mitigate any potential risks.
You can find more information about this vulnerability in the National Vulnerability Database (NVD) entry: https://nvd.nist.gov/vuln/detail/CVE-2024-24784
Related vulnerabilities
Recent vulnerabilities recorded for golang-1.15.