CVE-2020-36559: Path Traversal Vulnerability in go-aah/aah and aahframe.work

github.com/go-aah/aah Updated 02 Oct 2025

Summary

28/12/2022
Yes i
High
7.5

CVE-2020-36559: ahh vulnerable to Path Traversal. Affects github.com/go-aah/aah versions < 0.12.4. Fixed in 0.12.4. How to fix ↓

Also tracked for

The same CVE-2020-36559 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The go-aah/aah and aahframe.work packages are part of the Go ecosystem and provide a framework for building web applications. They offer various features and utilities to simplify the development process. However, these packages are vulnerable to a Path Traversal vulnerability, which allows an attacker to read files outside of the target directory that the server has permission to read.

Vulnerability Detail

The Path Traversal vulnerability in go-aah/aah and aahframe.work is due to improper sanitization of user input in the HTTPEngine.Handle function. By exploiting this vulnerability, an attacker can manipulate the input to traverse directories and access sensitive files on the server. This can lead to unauthorized disclosure of sensitive information and potential compromise of the application's security. The vulnerability has a CVSS score of 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

0.12.4

This is the first release that contains the fix.

go get github.com/go-aah/aah@v0.12.4

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

Workaround

If updating the packages is not immediately feasible, developers can implement a workaround by manually sanitizing user input to prevent path traversal attacks. This can be done by validating and restricting user input to ensure it only contains allowed characters and does not include any directory traversal sequences. Here's an example of how to sanitize user input in Go:

import "path/filepath"

func sanitizePath(input string) string {
    return filepath.Clean(input)
}

Conclusion

The Path Traversal vulnerability in go-aah/aah and aahframe.work exposes applications to the risk of unauthorized access to sensitive files. It is crucial for developers to update their packages to the latest version or apply the recommended workaround to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/go-aah/aah →

Share this vulnerability

FAQ

A Path Traversal vulnerability, also known as Directory Traversal, is a security flaw that allows an attacker to access files and directories outside of the intended scope. By manipulating input that specifies a file path, an attacker can traverse directories and potentially access sensitive information.

The Path Traversal vulnerability in go-aah/aah and aahframe.work can lead to unauthorized disclosure of sensitive information. An attacker can access files containing sensitive data, such as configuration files, user credentials, or other confidential information. This can result in further attacks, data breaches, or unauthorized access to the application or server.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using only the Gopkg.lock file. It does not require access to the code or installation, making it easy to assess the impact of this vulnerability.

Yes, a fix is available for this vulnerability. Developers should update their go-aah/aah and aahframe.work packages to version 0.12.4 or higher. This update includes proper sanitization of user input to prevent path traversal attacks.

If updating the packages is not immediately feasible, developers can implement a workaround by manually sanitizing user input to prevent path traversal attacks. This involves validating and restricting user input to ensure it does not contain any directory traversal sequences.

How To Fix

Minimum fixed version

0.12.4

This is the first release that contains the fix.

go get github.com/go-aah/aah@v0.12.4

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