SCA: security update for github.com/gin-gonic/gin (GHSA-2c4m-59x9-fr2g)

medium Tenable Cloud Security Plugin ID 421694

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously
crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or
otherwise modify the Content-Disposition header. For example, a filename of "setup.bat";x=.txt" will
be sent as a file named "setup.bat". If the FileAttachment function is called with names provided by an
untrusted source, this may permit an attacker to cause a file to be served with a name different than
provided. Maliciously crafted attachment file name can modify the Content-Disposition header.
(CVE-2023-29401)

See Also

https://github.com/advisories/GHSA-2c4m-59x9-fr2g

Plugin Details

Severity: Medium

ID: 421694

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 3/28/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2023-29401

CVSS v3

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/12/2023

Vulnerability Publication Date: 5/12/2023

Reference Information

CVE: CVE-2023-29401

cwe: CWE-494