CVE-2023-30414
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Apr 24, 2023
CISA due date
—
Cloudanix analysis
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.
- 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
- Identify a reachable code path that invokes the vulnerable vm_loop component
- Craft input that causes excessive stack usage within the loop
- Trigger the overflow to corrupt the stack and gain control or crash the process
- 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
- CVE-2024-33255 Jerryscript commit cefd391 was discovered to contain an Assertion Failure via… Also affects iotjs
- CVE-2024-33260 Jerryscript commit cefd391 was discovered to contain a segmentation violation via the… Also affects iotjs
- CVE-2024-33258 Jerryscript commit ff9ff8f was discovered to contain a segmentation violation via the… Also affects iotjs
- CVE-2024-33259 Jerryscript commit cefd391 was discovered to contain a segmentation violation via the… Also affects iotjs
- CVE-2023-36109 Buffer Overflow vulnerability in JerryScript version 3.0, allows remote attackers to… Also affects iotjs
- CVE-2023-38961 Buffer Overflwo vulnerability in JerryScript Project jerryscript v.3.0.0 allows a remote… Also affects iotjs
- CVE-2023-36201 An issue in JerryscriptProject jerryscript v.3.0.0 allows an attacker to obtain sensitive… Also affects iotjs
- CVE-2023-34867 Jerryscript 3.0 (commit 05dbbd1) was discovered to contain an Assertion Failure via the… Also affects iotjs