Skip to content

object names with RIGHT-TO-LEFT OVERRIDE unicode character can be exploited

Low
harshavardhana published GHSA-jv3f-7m33-qp65 May 25, 2023

Package

gomod console (Go)

Affected versions

< v0.28.0

Patched versions

v0.28.0

Description

Impact

Unicode RIGHT-TO-LEFT OVERRIDE characters can be used to mask the original filename.

Reported-By

Thanks to the report from Mio Li [email protected]

Patches

commit 17e791afb90c9ad27c65f63c6be14f2f6a3a9d60
Author: Daniel Valdivia <[email protected]>
Date:   Tue May 23 08:47:12 2023 -0700

    Replace RIGHT-TO-LEFT OVERRIDE unicode (#2828)
    
    Signed-off-by: Daniel Valdivia <[email protected]>

Workarounds

Workarounds are to remove the concerned file and rewrite it properly with the
right file and extensions. Avoid using RTLO characters in your filenames.

Severity

Low

CVE ID

CVE-2023-33955

Weaknesses

No CWEs

Credits