- Reported
- 
        
      
- Issued
- 
        
        
        
        
      
- Package
- 
        
        
        compact_arena
          (crates.io)
        
        
      
- Type
- 
        
        Vulnerability
        
      
- Categories
- 
        
      
- Keywords
- 
        
          #uninitialized-memory
        
      
- Aliases
- 
        
      
- References
- 
        
      
- CVSS Score
- 9.8 
        CRITICAL
      
- CVSS Details
- 
        
          
            - Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality Impact
- High
- Integrity Impact
- High
- Availability Impact
- High
 
- CVSS Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Patched
- 
        
        
        
      
      - Affected Functions
- Version
- compact_arena::SmallArena::new
- 
        
      
Description
    Affected versions of this crate did not properly implement the generativity,
because the invariant lifetimes were not necessarily dropped.
This allows an attacker to mix up two arenas, using indices created from one
arena with another one. This might lead to an out-of-bounds read or write
access into the memory reserved for the arena.
The flaw was corrected by implementing generativity correctly in version 0.4.0.
    Advisory available under CC0-1.0
    license.