Improper Control of Generation of Code ('Code Injection') The advisory has been revoked - it doesn't affect any version of package github.com/prometheus/prometheus/web  (opens in a new tab)


Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Control of Generation of Code ('Code Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMPROMETHEUSPROMETHEUSWEB-6840346
  • published14 May 2024
  • disclosed13 May 2024
  • creditkeaidmmc

Introduced: 13 May 2024

CVE-2024-33386  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for github.com/prometheus/prometheus/web.

Amendment

This was deemed not a vulnerability.

Overview

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') through the query parameter. An attacker can execute commands or scripts of their choice by sending a specially crafted request.