Skip to main content

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

CVE-2024-27280

Severity High
Score 7.8/10

Summary

A buffer-overread issue was discovered in StringIO versions through 3.0.1 and 3.0.2.pre1 through 3.0.2. The "ungetbyte" and "ungetc" methods on a StringIO can read past the end of a string, and a subsequent call to StringIO.gets may return the memory value.

  • LOW
  • LOCAL
  • HIGH
  • UNCHANGED
  • REQUIRED
  • NONE
  • HIGH
  • HIGH

CWE-120 - Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

The program copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow.

Advisory Timeline

  • Published