Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

GHSA-vpjr-h6fh-mw4p

Duplicate Advisory: EVE Freely Allocates Buffer on The Stack With Data From Socket
Back to all
CVE

GHSA-vpjr-h6fh-mw4p

Duplicate Advisory: EVE Freely Allocates Buffer on The Stack With Data From Socket

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-phcg-h58r-gmcq. This link is maintained to preserve external references.

Original Description

As noted in the “VTPM.md” file in the eve documentation, “VTPM is a server listening on port

8877 in EVE, exposing limited functionality of the TPM to the clients. 

VTPM allows clients to

execute tpm2-tools binaries from a list of hardcoded options”

The communication with this server is done using protobuf, and the data is comprised of 2

parts:

  1. Header
  2. Data

When a connection is made, the server is waiting for 4 bytes of data, which will be the header,

and these 4 bytes would be parsed as uint32 size of the actual data to come.

Then, in the function “handleRequest” this size is then used in order to allocate a payload on

the stack for the incoming data.

As this payload is allocated on the stack, this will allow overflowing the stack size allocated for

the relevant process with freely controlled data.

  • An attacker can crash the system. 
  • An attacker can gain control over the system, specifically on the “vtpm_server” process

which has very high privileges.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
-
C
H
U
0
-
3.1
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://nvd.nist.gov/vuln/detail/CVE-2023-43632, https://asrg.io/security-advisories/cve-2023-43632, https://asrg.io/security-advisories/freely-allocate-buffer-on-the-stack-with-data-from-socket

Severity

9

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
9
EPSS Probability
0%
EPSS Percentile
0%
Introduced Version
0
Fix Available
0.0.0-20230519072751-977f42b07fa9

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading