stb_vorbis is a single file MIT licensed library for processing ogg vorbis files. A crafted file may trigger out of bounds write in `f->vendor[len] = (char)'\0';`. The root cause is that if the len read in `start_decoder` is `-1` and `len + 1` becomes 0 when passed to `setup_malloc`. The `setup_malloc` behaves differently when `f->alloc.alloc_buffer` is pre-allocated. Instead of returning `NULL` as in `malloc` case it shifts the pre-allocated buffer by zero and returns the currently available memory block. This issue may lead to code execution.
                
            References
                    Configurations
                    History
                    21 Nov 2024, 08:27
| Type | Values Removed | Values Added | 
|---|---|---|
| References | () https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3652-L3658 - Third Party Advisory | |
| References | () https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3658 - Third Party Advisory | |
| References | () https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L950-L960 - Third Party Advisory | |
| References | () https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NMXKOKPP4BKTNUTF5KSRDQAWOUILQZNO/ - | |
| References | () https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QVABVF4GEM6BYD5L4L64RCRSXUHY6LGN/ - | |
| References | () https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UVQ7ONFH5GWLMXYEAJG32A3EUKUCEVCR/ - | |
| References | () https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/ - Third Party Advisory | |
| CVSS | 
        v2 :  v3 :  | 
    
        v2 : unknown
         v3 : 6.5  | 
04 Nov 2023, 06:15
| Type | Values Removed | Values Added | 
|---|---|---|
| References | 
        
        
  | 
03 Nov 2023, 23:15
| Type | Values Removed | Values Added | 
|---|---|---|
| References | 
        
        
  | 
27 Oct 2023, 21:45
| Type | Values Removed | Values Added | 
|---|---|---|
| CPE | cpe:2.3:a:nothings:stb_vorbis.c:1.22:*:*:*:*:*:*:* | |
| CWE | CWE-787 | |
| First Time | 
        
        Nothings
         Nothings stb Vorbis.c  | 
|
| CVSS | 
        v2 :  v3 :  | 
    
        v2 : unknown
         v3 : 7.8  | 
| References | (MISC) https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3652-L3658 - Third Party Advisory | |
| References | (MISC) https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3658 - Third Party Advisory | |
| References | (MISC) https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/ - Third Party Advisory | |
| References | (MISC) https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L950-L960 - Third Party Advisory | 
21 Oct 2023, 00:15
| Type | Values Removed | Values Added | 
|---|---|---|
| New CVE | 
Information
                Published : 2023-10-21 00:15
Updated : 2024-11-21 08:27
NVD link : CVE-2023-45675
Mitre link : CVE-2023-45675
CVE.ORG link : CVE-2023-45675
JSON object : View
Products Affected
                nothings
- stb_vorbis.c
 
CWE
                
                    
                        
                        CWE-787
                        
            Out-of-bounds Write
