CVE-2019-3557CWE-125

The implementations of streams for bz2 and php://output improperly implemented their readImpl functions, returning -1 consistently

published January 15, 2019

CVSS
โ€”
EPSS
2%
Percentile
77.2
In the wild
Unconfirmed
What it is

โš ๏ธ A careless implementation could lead to unintentional data exposure! Stream functions in HHVM are misbehaving due to a consistent return of -1, paving the way for an out-of-bounds read. ๐Ÿ” Think of it like a library where the librarian keeps pointing to empty shelves instead of providing the right book โ€” you'd end up searching in the wrong places! In this case, the stream isn't delivering the expected information, leading to potential data mishaps. An attacker could exploit this flaw to read data outside the intended bounds, which might give them access to sensitive information or disrupt application functionality. While the risk might not be currently exploited, the potential for unexpected behavior poses a concern for developers relying on HHVM.

Put simply

Think of it like a library where the librarian keeps pointing to empty shelves instead of providing the right book โ€” you'd end up searching in the wrong places! In this case, the stream isn't delivering the expected information, leading to potential data mishaps. This vulnerability arises from improperly implemented read functions in the streams for bz2 and php://output, causing stream_get_line to trigger out-of-bounds reads when operating on malformed streams.

What to do

An attacker could exploit this flaw to read data outside the intended bounds, which might give them access to sensitive information or disrupt application functionality. While the risk might not be currently exploited, the potential for unexpected behavior poses a concern for developers relying on HHVM. To remediate, ensure you're running on HHVM version 3.30 or later, and avoid using versions 3.27.4 and below. Regularly review your stream implementations and consider adding checks to validate data integrity. You've got this! With a quick update, you can keep your applications running smoothly and securely! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01711 ยท 77.2th percentile
Weakness
CWE-125 ยท Out-of-bounds Read
Published
2019-01-15T22:00Z
EPSS history
Timeline
  • 15 JAN 22:00Z
    The implementations of streams for bz2 and php://output improperly implemented their readImpl functions, returning -1 consistently
    cvelistv5