Cloudanix VulnDB

CVE-2023-30414

Medium · 5.5

CVSS

5.5

EPSS

0.3%

Published

Apr 24, 2023

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in how the software handles certain operations can make programs crash or let attackers run their own code when untrusted data is processed.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Stack overflow in the vm_loop component allows uncontrolled stack growth leading to memory corruption and potential process termination or code execution.

Why it matters to the business

Applications built on the affected code may crash or be compromised when processing untrusted input, resulting in service outages and possible remote code execution on developer or server systems.

How an attack unfolds

An attacker supplies crafted input that reaches the vm_loop function, triggering repeated operations that exhaust the stack and corrupt adjacent memory; with public exploit code available, this can be leveraged for denial of service or further compromise.

How to fix it

Upgrade gogs/gogs (GIT) to commit 155cae1de8916fc3fde78f350763034b7422caee or later; rebuild and redeploy all instances using the affected component.

How to confirm the fix worked

Confirm the running binary or source tree contains commit 155cae1de8916fc3fde78f350763034b7422caee; re-test with known triggering inputs to verify the stack overflow no longer occurs.

Typical attack path

  1. Identify a reachable code path that invokes the vulnerable vm_loop component
  2. Craft input that causes excessive stack usage within the loop
  3. Trigger the overflow to corrupt the stack and gain control or crash the process
  4. Use the resulting corruption for code execution or denial of service

How to detect it

Review application and system logs for unexpected crashes or stack-related errors around the vm_loop component; inspect process dumps for signs of stack overflow; correlate with access logs showing unusual input patterns.

What your security team should do

  • Immediately upgrade all gogs/gogs (GIT) instances to the fixed commit
  • Scan source repositories and build pipelines for the vulnerable commit hash
  • Monitor for abnormal process crashes or high stack usage in services using the component
  • Apply compensating controls such as input size limits until patches are deployed

The record

Jerryscript commit 1a2c047 was discovered to contain a stack overflow via the component vm_loop at /jerry-core/vm/vm.c.

Affected packages

Ecosystem Package Introduced Fixed
Ubuntu:18.04:LTS iotjs 0 No fix
Ubuntu:22.04:LTS iotjs 0 No fix
Ubuntu:Pro:18.04:LTS iotjs 0 No fix

Related vulnerabilities