CVE-2024-24784: golang/stdlib: Incorrect handling of comments in display names

golang-1.15 Updated 02 Oct 2025

Summary

05/03/2024
N/A
No i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback