UBUNTU-CVE-2023-29401

See a problem?
Source
https://ubuntu.com/security/CVE-2023-29401
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-29401.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2023-29401
Related
Published
2023-06-08T21:15:00Z
Modified
2024-10-15T14:11:27Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:18.04:LTS / golang-github-gin-gonic-gin

Package

Name
golang-github-gin-gonic-gin
Purl
pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.2+dfsg1-2
1.2+dfsg1-2ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:20.04:LTS / golang-github-gin-gonic-gin

Package

Name
golang-github-gin-gonic-gin
Purl
pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.3.0+dfsg1-3

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:22.04:LTS / golang-github-gin-gonic-gin

Package

Name
golang-github-gin-gonic-gin
Purl
pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.6.3-4

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:24.10 / golang-github-gin-gonic-gin

Package

Name
golang-github-gin-gonic-gin
Purl
pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.8.1-2

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:24.04:LTS / golang-github-gin-gonic-gin

Package

Name
golang-github-gin-gonic-gin
Purl
pkg:deb/ubuntu/golang-github-gin-gonic-gin?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.8.1-1
1.8.1-2

Ecosystem specific

{
    "ubuntu_priority": "low"
}