Vulnerability in github.com/foxcpp/maddy: MD5 Hash Support

github.com/foxcpp/maddy Updated 02 Oct 2025

Summary

12/10/2021
LOW
Yes i
Low
3.0

GHSA-qh54-9vc5-m9fg: MD5 hash support in github.com/foxcpp/maddy. Affects github.com/foxcpp/maddy versions >= 0.5.0, < 0.5.2. Fixed in 0.5.2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

github.com/foxcpp/maddy is a Go package that provides email server functionality. It is used to handle email authentication and other related tasks. The package includes an auth.shadow module that interacts with the system's /etc/shadow file for user authentication. However, an outdated system configuration that allows the use of MD5 hashes in /etc/shadow can lead to a vulnerability in maddy.

Vulnerability Detail

The vulnerability affects maddy versions 0.5.1 and 0.5.0 when using the auth.shadow module on systems that still allow MD5 hashes in /etc/shadow. This vulnerability can be exploited by attackers to compromise user authentication and gain unauthorized access to the email server. The use of MD5 hashes is considered insecure due to their vulnerability to brute-force attacks and the availability of more secure hashing algorithms. The impact of this vulnerability is low, but it is still recommended to address it to ensure the security of the email server.

How To Fix

Minimum fixed version

0.5.2

This is the first release that contains the fix.

go get github.com/foxcpp/maddy@v0.5.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, it is important to ensure that MD5 hashes are not present in the /etc/shadow file. This can be achieved by updating the system configuration to disallow the use of MD5 hashes and migrating to more secure hashing algorithms for user passwords.

Conclusion

In conclusion, the vulnerability in github.com/foxcpp/maddy allows unauthorized access to the email server by exploiting the use of MD5 hashes in the system's /etc/shadow file. To mitigate this vulnerability, it is recommended to update to maddy version 0.5.2 or later and ensure that MD5 hashes are not present in the /etc/shadow file. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/foxcpp/maddy →

Share this vulnerability

FAQ

The impact of this vulnerability is low, but it can lead to unauthorized access to the email server and compromise user authentication.

The vulnerability affects maddy versions 0.5.1 and 0.5.0.

It is recommended to update to maddy version 0.5.2 or later to fix this vulnerability.

No, this vulnerability requires access to the system's /etc/shadow file.

MD5 hashes are considered insecure due to their vulnerability to brute-force attacks and the availability of more secure hashing algorithms.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/foxcpp/maddy.

How To Fix

Minimum fixed version

0.5.2

This is the first release that contains the fix.

go get github.com/foxcpp/maddy@v0.5.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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